![]() Even in a colorful mode (like a red-blue design) they will be chosen such that they contrast with the background.Īlso, this way you application fits into the style of all other applications. These are set by the style itself, meaning in a dark mode, they will be bright and in a bright mode they will be dark. For text you could for example use clHighlight, clBtnText, clGrayText, clMenuText, clWindowText, etc. There are a lot of theme dependent colors. ![]() You shouldn't use absolute colors at all, except they are configurable by the user, in which case you don't need to worry about dark theme (because the user can update it). But if it the components are configurable, just use these system colors and it should work out fine It's sadly something you can see in a lot of components, and I am also guilty of doing myself. In that case they will usually stick out, because most linux distros have their own themes, so something that looks good on for example Mint-Cinnamon (that uses absolute colors) might probably look pretty bad on Manjaro-Cinnamon. The only problem is when you start to draw things yourself, but rather than using the system colors (clHighlight, clBtnFace, etc.) which get assigned by the theme, the developer of the component thinks that absolute colors (clWhite, clBlack, etc.) are a better Idea. On linux this is a little bit more difficult, because it does not simply have a dark and a light theme like windows and macOS, but has fully customizable themes for different frameworks.įor example I could have fully custom made green-yellow theme in my GTK2 applications, red-blue theme in my GTK3 applications and violet-pink theme for my QT Applications.Įven more, you could add special themes for specific applications.īut as Lazarus on these platforms usually uses GTK or QT itself, it is more or less guaranteed that your application will fit into the system.
0 Comments
Leave a Reply. |