[Mono-list] Concerns about system colors?
Dan.Maser at inin.com
Fri Apr 20 16:23:25 EDT 2007
Thanks, I'll move my question to the winforms list!
From: Sebastien Pouliot [mailto:sebastien.pouliot at gmail.com]
Sent: Friday, April 20, 2007 3:21 PM
To: Maser, Dan
Cc: mono-list at lists.ximian.com
Subject: Re: [Mono-list] Concerns about system colors?
System colors depends on a lot of things.
If you're talking about a SWF application then the "active theme"
updates System.Drawing color tables with it's own color information.
However I'm not quite sure where the default theme gets it's colors. You
should ask this on the mono-winforms-list.
Otherwise (non SWF apps) System.Drawing use some default hard-coded
values that looks like a "default" windows system.
On Fri, 2007-04-20 at 15:50 -0400, Maser, Dan wrote:
> 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
> 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
> Thanks in advance for your time.
> Dan Maser
> Mono-list maillist - Mono-list at lists.ximian.com
More information about the Mono-list