Window color or Window text color


Hi,everyone!
I want to get the window color or window text color.But I can’t find in RhinoCommon.(Rhino.ApplicationSettings.AppearanceSettings)
I want to get the color and set to my UI;
Thank you very much;

private void RunScript(ref object Colors, ref object Labels)
{
  var labels = new List<string>
  {
    "Window color 1",
    "Window color 2",
    "Window color 3",
    "Window border",
    "Window text",
    "Active viewport title",
    "Inactive viewport title"
  };
  var colors = new List<Color>
  {
    AppearanceSettings.GetPaintColor(PaintColor.NormalStart),
    AppearanceSettings.GetPaintColor(PaintColor.NormalEnd),
    AppearanceSettings.GetPaintColor(PaintColor.HotStart),
    AppearanceSettings.GetPaintColor(PaintColor.NormalBorder),
    AppearanceSettings.GetPaintColor(PaintColor.TextEnabled),
    AppearanceSettings.GetPaintColor(PaintColor.ActiveViewportTitle),
    AppearanceSettings.GetPaintColor(PaintColor.InactiveViewportTitle)
  };
  Labels = labels;
  Colors = colors;
}

GetPaintColor.gh (3.7 KB)

1 Like

Thank you very much!