Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorBenjamin Berg <benjamin@sipsolutions.net>2008-01-27 17:47:56 (GMT)
committer Benjamin Berg <benjamin@sipsolutions.net>2008-01-27 17:47:56 (GMT)
commit438196b2b7f1e31ba9c95abbc070091978468c59 (patch)
treea43e91738f9318784a665766f964757f059cd27a /gtk
parente3865a5ef0d7c924d73693703fd46a38f8f82012 (diff)
Improved non-toolbox notebooks.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/engine/sugar-style.c3
-rw-r--r--gtk/theme/gtkrc.em53
2 files changed, 43 insertions, 13 deletions
diff --git a/gtk/engine/sugar-style.c b/gtk/engine/sugar-style.c
index 9702358..678ef6b 100644
--- a/gtk/engine/sugar-style.c
+++ b/gtk/engine/sugar-style.c
@@ -517,6 +517,9 @@ sugar_style_draw_box_gap (GtkStyle *style,
gap.size = gap_width;
sugar_draw_menu (cr, &info, &gap);
+ } else if (DETAIL ("notebook")) {
+ /* Just a plain fill. */
+ gtk_paint_flat_box (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
} else {
parent_class->draw_box_gap (style, window, state_type, shadow_type, area, widget, detail, x, y, width, height, gap_side, gap_x, gap_width);
}
diff --git a/gtk/theme/gtkrc.em b/gtk/theme/gtkrc.em
index c162c75..c4c12eb 100644
--- a/gtk/theme/gtkrc.em
+++ b/gtk/theme/gtkrc.em
@@ -208,10 +208,10 @@ style "groupbox-panel-child"
bg[INSENSITIVE] = $selection_grey
base[INSENSITIVE] = $selection_grey
- fg[NORMAL] = $white
+ fg[NORMAL] = $black
engine "sugar" {
- label_fg_color = $white
+ label_fg_color = $black
}
}
@@ -359,7 +359,7 @@ style "scale"
# "square" slider (really round of course)
# Same as indicator-size?
GtkRange::slider-width = $scale_slider_width
- GtkScale::slider-length = $scale_slider_width
+ GtkScale::slider-toolbox-notebooklength = $scale_slider_width
GtkRange::trough-border = 0
GtkRange::stepper-spacing = 0
GtkRange::trough-side-details = 1
@@ -411,14 +411,29 @@ style "frame"
bg[NORMAL] = $toolbar_grey
}
-style "notebook"
+style "notebook-tab"
+{
+ bg[ACTIVE] = $button_grey
+ fg[ACTIVE] = $white
+}
+
+style "notebook-panel"
{
GtkNotebook::tab-overlap = -2
+ GtkNotebook::tab-curvature = $default_padding
xthickness = 0
ythickness = 0
+
+ bg[NORMAL] = $selection_grey
+}
- bg[ACTIVE] = $button_grey
+style "toolbox-notebook"
+{
+ GtkNotebook::tab-overlap = -2
+
+ xthickness = 0
+ ythickness = 0
}
style "toolbutton"
@@ -650,13 +665,12 @@ widget_class "*<SugarAlert>*<GtkEventBox>" style "black-bg"
widget_class "*<SugarAlert>*<GtkLayout>" style "black-bg"
widget_class "*<SugarAlert>*" style "black-bg-child"
-# SugarToolbox
-#widget_class "*<SugarToolbox>" style "toolbox"
-#widget_class "*<SugarToolbox>*" style "toolbox-child"
-#widget_class "*<SugarToolbox>*<GtkEventBox>" style "toolbox"
-#widget_class "*<SugarToolbox>*<GtkLayout>" style "toolbox"
-widget_class "*<SugarToolbox>*" style "toolbox"
-widget_class "*<GtkToolbar>*" style "toolbox"
+
+# The notebook is very high, so that everything is overriden
+# Only the color of the tab labels needs to be modified inside the
+# notebooks in this style (and the widget itself).
+widget_class "*<GtkNotebook>*" style "notebook-tab"
+
# SugarPalette and Menu
widget_class "*<GtkMenu>" style "menu"
@@ -677,11 +691,25 @@ widget_class "<GtkWindow>*<SugarGroupBox>*" style "groupbox-panel-child"
widget_class "<GtkWindow>*<SugarGroupBox>*<GtkEventBox>" style "groupbox-panel"
widget_class "<GtkWindow>*<SugarGroupBox>*<GtkLayout>" style "groupbox-panel"
+widget_class "<GtkWindow>*<GtkNotebook>*" style "groupbox-panel-child"
+widget_class "<GtkWindow>*<GtkNotebook>" style "notebook-panel"
+widget_class "<GtkWindow>*<GtkNotebook>*<GtkEventBox>" style "groupbox-panel"
+widget_class "<GtkWindow>*<GtkNotebook>*<GtkLayout>" style "groupbox-panel"
+
+
widget_class "<SugarPalette>*<SugarGroupBox>*" style "groupbox-palette-child"
widget_class "<SugarPalette>*<SugarGroupBox>*<GtkEventBox>" style "groupbox-palette"
widget_class "<SugarPalette>*<SugarGroupBox>*<GtkLayout>" style "groupbox-palette"
+# SugarToolbox
+#widget_class "*<SugarToolbox>" style "toolbox"
+#widget_class "*<SugarToolbox>*" style "toolbox-child"
+#widget_class "*<SugarToolbox>*<GtkEventBox>" style "toolbox"
+#widget_class "*<SugarToolbox>*<GtkLayout>" style "toolbox"
+widget_class "*<SugarToolbox>*" style "toolbox"
+widget_class "*<GtkToolbar>*" style "toolbox"
+widget_class "*<SugarToolbox>.<GtkNotebook>" style "toolbox-notebook"
####################################################################
@@ -710,7 +738,6 @@ widget_class "*<GtkTextView>" style "textview"
# Misc widgets
-widget_class "*<GtkNotebook>" style "notebook"
widget_class "*<GtkHScrollbar>" style "hscrollbar"
widget_class "*<GtkVScrollbar>" style "vscrollbar"
widget_class "*<GtkHScale>" style "hscale"