Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Auto-comp list selection color
MortenMacFly:
--- Quote from: jens on January 11, 2013, 04:15:40 pm ---I have to work on moving all our XP stuff to win8.
--- End quote ---
Oh dear - sounds like no fun. On my private PC I upgraded to Win8 but after a while I re-installed the Win7 backup. What annoys me most on Win8 is that you can't have Windows next or each other anymore. It should be named "Window" and not "Windows" any longer... I read that somewhere in an article when searching for a solution and think this is funny, but true.
Alpha:
From the four colors:
* highlight-background-focused (orange)
* highlighted-text-focused (white)
* highlight-background-no_focus (light gray)
* highlighted-text-no_focus (black)The auto-comp box currently uses highlight-background-no_focus (light gray) and highlighted-text-focused (white), which is why it is completely unreadable. If we make no attempt to give the box the "focused" color set, it becomes readable:
--- Code: ---Index: src/sdk/wxscintilla/src/PlatWX.cpp
===================================================================
--- src/sdk/wxscintilla/src/PlatWX.cpp (revision 8782)
+++ src/sdk/wxscintilla/src/PlatWX.cpp (working copy)
@@ -951,7 +951,7 @@
// can't receive focus then we have to pull a fast one and temporarily
// parent the listctrl on the STC window and then call SetFocus and
// then reparent it back to the popup.
- lv->SetFocus();
+ //lv->SetFocus();
lv->Reparent(this);
#ifdef __WXMSW__
lv->Show();
--- End code ---
This, of course, is not the desired appearance, but I guess it implies that highlight-background-* and highlighted-text-* are set differently, and (possibly) other themes work because mismatched sets of these are still readable in those themes.
I do not currently have wx29 on Linux, and have not tested it yet.
MortenMacFly:
--- Quote from: Alpha on January 11, 2013, 10:00:58 pm ---If we make no attempt to give the box the "focused" color set, it becomes readable:
--- End quote ---
Well but is it working then, does it auto-complete if I press the shortcut? Otherwise thats not an option I'm afraid.
Jenna:
--- Quote from: MortenMacFly on January 11, 2013, 03:59:49 pm ---
--- Quote from: jens on January 11, 2013, 07:20:32 am ---It seems to be either a wxGTK-isssue or a theme-error.
--- End quote ---
Can you try with wx29? This would maybe show that its a wxGTX 28 error... there has much work been done by the "wxTeam" to support GTK better in wx29 to my knowledge...
--- End quote ---
It's the same with wx2.9.
Alpha:
--- Quote from: MortenMacFly on January 12, 2013, 12:45:58 pm ---
--- Quote from: Alpha on January 11, 2013, 10:00:58 pm ---If we make no attempt to give the box the "focused" color set, it becomes readable:
--- End quote ---
Well but is it working then, does it auto-complete if I press the shortcut? Otherwise thats not an option I'm afraid.
--- End quote ---
Yes (at least on my testing on Linux). From what I understand of the auto-comp box is that it never actually has focus; commands are intercepted by the parent stc, and act from there.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version