Form colors
Posted: Fri Mar 06, 2015 9:38 pm
I'm looking to get the default color for the form background. In Windowz I can query the registry and find thos values. Where does Linux stire those color values and how do I retreive them?
Code: Select all
Procedure.l FindWindowBackgroundColor(Window)
If StartDrawing(WindowOutput(Window))
Color.l = Point(3, 3)
StopDrawing()
EndIf
ProcedureReturn Color
EndProcedureas an xfce user (which is gtk2-based), i can tell you that the current theme settings are store in ~/.gtkrc-2.0, which in my case refers to a preinstalled theme named "Clearlooks-Phenix" located in /usr/share/themes/Clearlooks-Phenix. If it were a custom theme, it could also be in ~/.themes/. From here, depending on which desktop environment you are running, you can go to the subfolder that your DE uses as UI library, like "gtk-2.0", "gtk-3.0", "metacity-1" etc. which all contain files related to theming and coloring, like gtkrc, css and xml documents. There is no overall standard to any of this.Where does Linux stire those color values and how do I retreive them?