Hello, I’m developing a script that changes the color of the interface for the user.
But I can’t find the command that changes the part in red that I marked in the image.
# -*- coding: utf-8 -*-
import rhinoscriptsyntax as rs
import Rhino as r
import System.Collections.Generic
def main():
green = System.Drawing.Color.LightGreen
black = System.Drawing.Color.Black
white = System.Drawing.Color.White
default = System.Drawing.Color.FromArgb(157,163,170)
op_user = rs.GetString("Select the color for the interface", strings = ["Default","Black","Green"])
if op_user == "Default":
r.ApplicationSettings.AppearanceSettings.CommandPromptBackgroundColor = white
r.ApplicationSettings.AppearanceSettings.CommandPromptTextColor = black
r.ApplicationSettings.AppearanceSettings.ViewportBackgroundColor = default
elif op_user == "Dark":
r.ApplicationSettings.AppearanceSettings.CommandPromptBackgroundColor = black
r.ApplicationSettings.AppearanceSettings.CommandPromptTextColor = white
r.ApplicationSettings.AppearanceSettings.ViewportBackgroundColor = black
elif op_user == "Green":
r.ApplicationSettings.AppearanceSettings.CommandPromptBackgroundColor = green
r.ApplicationSettings.AppearanceSettings.CommandPromptTextColor = black
r.ApplicationSettings.AppearanceSettings.ViewportBackgroundColor = black
else:
print("No appearance chosen")
if __name__ == '__main__':
main()