Re: Syntax highlight colors in ctlSQLBox - Mailing list pgadmin-hackers

From Dave Page
Subject Re: Syntax highlight colors in ctlSQLBox
Date
Msg-id 46B5D2D3.1010100@postgresql.org
Whole thread Raw
In response to Syntax highlight colors in ctlSQLBox  (Krzysztof Smigrodzki <ksmigrod@gmail.com>)
List pgadmin-hackers
Krzysztof Smigrodzki wrote:
> Hello,
>
> On wxGTK under Linux (Ubuntu with Gnome), ctlSQLBox background is always
> white (#FFFFFF), despite me using other default background colour in
> Gnome.
>
> In my opinion the best solution to that problem would be user
> customisation of syntax highlight colours. For example one more tab on
> Options dialog.
>
> I volunteer to add this feature (for 1.10 release).
>
> Any comments, suggestions?

Sounds like a good idea. I will be rewriting th settings management for
the next version, so if you start now, please use code like:

settings->Write(wxT("Foo Color"), fooColor);

and

wxString fooColor = settings->Read(wxT("Foo Color"), defaultVal);

rather than creating accessor functions for each setting in the settings
class.

Thanks, Dave

pgadmin-hackers by date:

Previous
From: Krzysztof Smigrodzki
Date:
Subject: Syntax highlight colors in ctlSQLBox
Next
From: Dave Page
Date:
Subject: Re: wxWidgets alert at start