diff options
Diffstat (limited to 'gtk/theme/gtkrc.em')
-rw-r--r-- | gtk/theme/gtkrc.em | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/gtk/theme/gtkrc.em b/gtk/theme/gtkrc.em index f7b7129..69dccd9 100644 --- a/gtk/theme/gtkrc.em +++ b/gtk/theme/gtkrc.em @@ -131,6 +131,10 @@ style "default" GtkExpander::expander-spacing = 2 # XXX GtkTreeView::expander-size = 24 + + # we have to disable focus border for GtkTreeView, see #1261 + GtkTreeView::interior-focus = 1 + GtkTreeView::focus-line-width = 0 GtkArrow::arrow-size = 1.0 @@ -145,6 +149,11 @@ style "default" GtkButtonBox::child-internal-pad-x = 0 GtkButtonBox::child-internal-pad-y = 0 + # The following line hints to gecko (and possibly other appliations) + # that the entry should be drawn transparently on the canvas. + # Without this, gecko will fill in the background of the entry. + GtkEntry::honors-transparent-bg-hint = 1 + engine "sugar" { line_width = $line_width thick_line_width = $thick_line_width @@ -267,8 +276,8 @@ style "menu" ${# This is just the exact reverse of what is going on inside GTK+ ...} GtkMenu::scroll-arrow-vlength = $(my_floor(subcell_size/0.7 + 2*thickness)) - GtkMenu::horizontal-padding = 0 - GtkMenu::vertical-padding = 0 + GtkMenu::horizontal-padding = $thickness + GtkMenu::vertical-padding = $thickness # This means the outline of the submenu overlaps with a palette. # However in the case of two normal menus, they are next to each other. # It is not possible to be smarter about this, because the style comes from @@ -276,12 +285,21 @@ style "menu" GtkMenu::horizontal-offset = 0 GtkMenu::vertical-offset = 0 + xthickness = 0 + ythickness = 0 +} + +style "palette" = "menu" +{ xthickness = $thickness ythickness = $thickness } style "palette-menu" = "menu" { + GtkMenu::horizontal-padding = 0 + GtkMenu::vertical-padding = 0 + xthickness = 0 ythickness = $subcell_size } @@ -755,9 +773,9 @@ widget_class "*<GtkNotebook>.<GtkBox>.<GtkLabel>" style "notebook-tab" # SugarPalette and Menu widget_class "*<GtkMenu>" style "menu" -widget_class "<SugarPalette>" style "menu" -widget_class "<SugarPalette>.*" style "menu-child" -widget_class "<SugarPalette>*<GtkMenu>" style "palette-menu" +widget_class "<SugarPaletteWindow>" style "palette" +widget_class "<SugarPaletteWindow>.*" style "menu-child" +widget_class "<SugarPaletteWindow>*<GtkMenu>" style "palette-menu" widget_class "*<GtkMenuShell>.*" style "menu-child" # SugarFrameWindow @@ -774,7 +792,7 @@ widget_class "<GtkWindow>*<GtkNotebook>*" style "groupbox-panel-child" widget_class "<GtkWindow>*<GtkNotebook>" style "notebook-panel" -widget_class "<SugarPalette>*<SugarGroupBox>*" style "groupbox-palette-child" +widget_class "<SugarPaletteWindow>*<SugarGroupBox>*" style "groupbox-palette-child" # SugarToolbox |