diff -ruN a//src/LibraryWindow.vala b//src/LibraryWindow.vala --- a//src/LibraryWindow.vala 2010-09-11 03:55:55.000000000 +0500 +++ b//src/LibraryWindow.vala 2011-01-31 22:49:49.155812733 +0500 @@ -83,6 +83,8 @@ // special Yorba-selected sidebar background color for standard themes (humanity, // clearlooks, etc.); dark themes use the theme's native background color public static Gdk.Color SIDEBAR_STANDARD_BG_COLOR = parse_color("#EEE"); + + // Max brightness value to trigger SIDEBAR_STANDARD_BG_COLOR public const uint16 STANDARD_COMPONENT_MINIMUM = 0xf00; private string import_dir = Environment.get_home_dir(); @@ -1359,9 +1361,9 @@ Gtk.Settings settings = Gtk.Settings.get_default(); HashTable color_table = settings.color_hash; - Gdk.Color? base_color = color_table.lookup("bg_color"); - if (base_color != null && (base_color.red > STANDARD_COMPONENT_MINIMUM || - base_color.green > STANDARD_COMPONENT_MINIMUM || + Gdk.Color? base_color = color_table.lookup("base_color"); + if (base_color != null && (base_color.red > STANDARD_COMPONENT_MINIMUM && + base_color.green > STANDARD_COMPONENT_MINIMUM && base_color.blue > STANDARD_COMPONENT_MINIMUM)) { // if the current theme is a standard theme (as opposed to a dark theme), then // use the specially-selected Yorba muted background color for the sidebar.