On Monday 01 June 2009 10:24, Graeme Geldenhuys wrote: > Hi, > > Relating to the bug report that mentions that clForm should rather be > the default color for a TCustomForm instead of clBtnFace. > > http://bugs.freepascal.org/view.php?id=13577 > > I fully agree with the bug report - clForm backs a lot more sense that > clBtnFace. But that made be think a bit more... > > > When do we use clForm, clWindow, clBackground and clBtnFace. > > What is the difference between clForm and clWindow? Isn't a TForm > also a Window? Then again, couldn't clForm and clWindow be removed > and we simply use clBackground? If not, where am I supposed to use > clBackground then?
clWindow = mostly edit controls, comboboxes, and scrollviews. clForm,clBackground = same colors, general widgets color (TCustomForm, TPanel etc ..) clBtnFace = all kind of buttons ... under qt it's clear clWindow = QPaletteBase (QLineEdit, QComboBox, QTextEdit). clForm,clBackground = QPaletteWindow (GENERAL WIDGET COLOR. QWidget, QLabel -> TStaticText, QFrame etc ...) clBtnFace = QPaletteButton (generally all types of buttons -> QPushButton, QCheckBox, QRadioButton etc .....). definitelly clBtnFace is wrong as default for general widgets (in CLX clBackground is default color for such widgets). One more thing. There are GTK2 related colors bugs #7555,#9945 (also I cannot rework some things under Qt palettes) because of this unclear situation. > > These pre-defined colors are quite confusing when you think about it. yes , they are confusing because they are incorrect. _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
