Hi, With my desktop color scheme the selection background in the query editor has exactly the same color as the window background. This makes the selected and unselected text undistinguishable. I created this patch to set the highlight colors to match the desktop's highlight colors.
Comment's are welcome.
From 3c98ec86e424b4c9b534dd55489d65c9c155d9de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedek=20L=C3=A1szl=C3=B3?= <[email protected]> Date: Wed, 28 Jul 2010 06:46:44 +0200 Subject: [PATCH] Use system default highlight colors in SQLBox controls --- pgadmin/ctl/ctlSQLBox.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/pgadmin/ctl/ctlSQLBox.cpp b/pgadmin/ctl/ctlSQLBox.cpp index 9e81cce..1a91dc3 100644 --- a/pgadmin/ctl/ctlSQLBox.cpp +++ b/pgadmin/ctl/ctlSQLBox.cpp @@ -96,6 +96,9 @@ void ctlSQLBox::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, cons StyleSetForeground(wxSTC_STYLE_DEFAULT, frColor); StyleSetFont(wxSTC_STYLE_DEFAULT, fntSQLBox); + SetSelBackground(true, wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT)); + SetSelForeground(true, wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT)); + SetMarginWidth(1, 0); SetTabWidth(settings->GetIndentSpaces()); SetUseTabs(!settings->GetSpacesForTabs()); -- 1.7.1
signature.asc
Description: OpenPGP digital signature
