> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:mono- > [EMAIL PROTECTED] On Behalf Of Maser, Dan > Sent: viernes, 20 de abril de 2007 22:27 > To: [email protected] > Subject: [Mono-winforms-list] Concerns about system colors? > > > > I wonder if I should raise concerns about the System colors in mono? > What I'm seeing is a little strange. My app code uses System colors > for everything and looks as expected in Win32 but on linux mono it > doesn't look natural. But it's not as clear what it *should* look > like either. > > The colors for most apps are set in the /usr/lib/X11/app-defaults > directory per application I suppose. So for example I see gnome > terminal windows that are black-on-white and highlight text > white-on-black. I have standard xterms that are black-on-grey and > highlight white-on-black. Both of these seem normal because the two > colors have a high contrast. However, my mono app has black-on-grey > (which is ok) but highlights white-on-gray. The white-on-grey > highlight looks pretty bad for two reasons: the white-on-grey isn't a > high enough contrast plus the highlight background and non-highlight > background are both grey which doesn't clearly indicate what's > highlighted. > > Sorry for the long-winded explanation. I guess what I'm wondering > foremost is if there's an some /usr/lib/X11/app-defaults resources > file I can specify that will set the system colors I like? If not, > can someone explain where the system colors come from? > > In case it helps my app draws its window as > not highlighted: SystemColors.WindowText on SystemColors.Window > highlighted: SystemColors.HighlightText on SystemColors.Highlight > > > I see that there's some colors hard coded into > mcs/class/System.Drawing/System.Drawing/KnownColors.cs. The relevant > colors for my case are: > > Window FF FF FF (this is black-on-white) > WindowText 00 00 00 > > Highlight 31 6A C5 (this is white-on-bluish) > HighlightText FF FF FF
I get these exact numbers on my machine (OpenSuse 10.2 with Gnome), however the Highlight color is changed within the method "ReadKDEColorsheme()" in System.Windows.Forms/X11DesktopColors.cs, you might want to have a look at that code (seems to be taking the color info from the file .kde/share/config/kdeglobals) Rolf > _______________________________________________ > Mono-winforms-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-winforms-list > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 269.5.5/769 - Release Date: > 19/04/2007 17:56 _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-winforms-list
