public static GColor GetGraphicsColor(XColor lightColor, XColor darkColor) { return(new GColor(Application.Current?.RequestedTheme == OSAppTheme.Light ? lightColor.ToHex() : darkColor.ToHex())); }
//initializes the highlight color private void InitHighlight() { highlight.EnableSolidColor = true; highlight.HexColor = highlightColor.ToHex(); }