I am working an application that has a relationship to Google Calendar. I'd like my interface to match Google's, to an extent.
Within Google Calendar, when creating a custom calendar, one can specify a colour for it. You only specify one colour, which is used as the fill colour when you create an event within that calendar. However, that event also has a border, and the border colour seems to be automatically derived from the base fill colour.
Does anyone know how that border colour is decided upon? It's essentially just a darkening or desaturation, but I can't determine the exact change to match colours precisely.
Similarly, when an event is in the past, it the colour of both the fill and border become paler. Is there a way to determine what changes are made in that instance?