[Sugar-devel] [PATCH] Theme the LinkInfo label that is displayed in Browse at the bottom left

Simon Schampijer simon at schampijer.de
Fri Mar 16 05:30:20 EDT 2012


Set the color of the label and the background of it's parent the
overlay. Labels don't create their own window to render themselves
into. Instead, they draw themselves directly onto their parents
window, so we have to set the background-color of the parent in order
to set the labels' background color [1].

The patch does adjust the Browse entry names to be consistent.

[1] http://developer.gnome.org/gtk-faq/stable/x810.html

Signed-off-by: Simon Schampijer <simon at schampijer.de>
---
 gtk3/theme/gtk-widgets.css.em |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
index 8c038cb..efbf638 100644
--- a/gtk3/theme/gtk-widgets.css.em
+++ b/gtk3/theme/gtk-widgets.css.em
@@ -294,24 +294,34 @@ SugarPaletteWindowWidget GtkToggleButton.button:active {
     background-color: @selection_grey;
 }
 
-/* Browser notebook */
+/* Browse notebook */
 
-BrowserNotebook.notebook tab {
+BrowseNotebook.notebook tab {
     background-color: @selection_grey;
 }
 
-BrowserNotebook.notebook tab .button {
+BrowseNotebook.notebook tab .button {
     border-radius: $(toolbutton_padding)px;
 }
 
-BrowserNotebook.notebook tab:active {
+BrowseNotebook.notebook tab:active {
     background-color: @toolbar_grey;
 }
 
-BrowserNotebook.notebook tab:active *:active {
+BrowseNotebook.notebook tab:active *:active {
     color: @white;
 }
 
+BrowseLinkInfo {
+    color: @white;
+}
+
+BrowseTabPage {
+    background-color: @black;
+}
+
+
+
 /* Control panel */
 
 SugarSectionView {
-- 
1.7.7.6



More information about the Sugar-devel mailing list