GNOME Bugzilla – Bug 611875
Keyboard layout panel indicator ignores theme font color settings
Last modified: 2010-03-26 17:49:06 UTC
Created attachment 155288 [details] Screenshot - Keyboard layout indicator font color This bug has been reported here: https://bugs.edge.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/513152 The font color of the active layout in the keyboard layout indicator is always black which makes it unreadable on dark desktop themes like stock DarkRoom or New Wave or Ambience (new dark theme in Ubuntu lucid). Please see attached screenshot. Thanks
This is real bug, I must admit. I am trying to find the way to get the detault font name, size and color from gtk
The font name and size is now taken from the system (unless overriden), thanks to gconf. Now I have to find how to get the proper color.
Done. Please check in git.
Unfortunately, problem is still present even after the latest update. Please also notice, that indicator font size has changed and is smaller than system theme set one.
Andrei, could you please attach some screenshot? Is there anything special about your configuration?
Created attachment 156805 [details] Dark grey text on dark background
Sergey, with your latest change the font-color of the keyboard-indicator changed from black to dark-gray in the Ubuntu Ambiance theme. This is with libgnomekbd 2.29.92-0ubuntu2. Maybe color of panel font is not available in gconf, only in gtkrc files?
All fine now with 2.29.92-0ubuntu3. White text on dark background.
Created attachment 156845 [details] Wrong font size screenshot
Sergey, indeed the font color issue is fixed with the latest patch in Ubuntu. Thanks! Although, the font size issue I mentioned before is still present. It might be not related to this bug, but I first encountered it with the git sync. Attached is a screenshot for your attention. Basically, it is quite obvious that indicator font size is smaller in comparison to menu font size and other notification area applets. It can be best noticed with larger font sizes. As can be seen on the screenshot, when I set my application font size to 14 to test it, indicator font size is close to 10, as if it is being scaled or adjusted somewhere else. Also, when font smoothing is turned off in appearance settings (rendering set to Monochrome), indicator font is not affected by this and still looks smooth.
You are right, with large fonts it is clear. What I do not understand is why. If I set app font size 16, calling cairo_set_font_size( ..., 16) still creates font size smaller than the actual main menu font size. Odd... Yes, the smoothing does not get tracked. Perhaps I'll do that.
Should there be a separate bug to track the font size? Either that, or this bug should be reopened :)
*** This bug has been marked as a duplicate of bug 612371 ***