From ff2aea4be23a043c1dc52eba85c1e8d6beadf73f Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 18 Jun 2013 18:56:01 +0200 Subject: [PATCH] Fixed bug #1029212 (caused by scrollbars) --- .../themes/Lubuntu-default/gtk-2.0/gtkrc | 37 ++- .../Lubuntu-default/gtk-2.0/scrollbar.rc | 297 ++---------------- 2 files changed, 59 insertions(+), 275 deletions(-) diff --git a/usr/share/themes/Lubuntu-default/gtk-2.0/gtkrc b/usr/share/themes/Lubuntu-default/gtk-2.0/gtkrc index 9f5262a..96de205 100644 --- a/usr/share/themes/Lubuntu-default/gtk-2.0/gtkrc +++ b/usr/share/themes/Lubuntu-default/gtk-2.0/gtkrc @@ -1,6 +1,5 @@ -# Box theme for Lubuntu 12.10 Quantal Quetzal -# Licensed as GPL2 / Open Source -# Created by 神癒礁湖 (Rafael Laguna) +# Default theme for Lubuntu, based on Radiance. +# Adapted by 神癒礁湖 (Rafael Laguna). GPL2 / Open Source licensed. gtk_color_scheme = "fg_color:#333333" gtk_color_scheme = "bg_color:#e0e0e0" @@ -87,14 +86,28 @@ style "default" { base[INSENSITIVE] = @selected_bg_color base[ACTIVE] = shade (0.9, @selected_bg_color) - engine "clearlooks" { - reliefstyle = 1 - menubarstyle = 0 - toolbarstyle = 1 - animation = FALSE - radius = 3.0 - style = GUMMY - hint = "use-hints" + engine "murrine" { + contrast = 0.6 + arrowstyle = 2 + reliefstyle = 3 + highlight_shade = 1.0 + glazestyle = 0 + default_button_color = shade (1.1, @selected_bg_color) + gradient_shades = {1.1, 1.0, 1.0, 0.9} + roundness = 4 + lightborder_shade = 1.26 + lightborderstyle = 1 + listviewstyle = 2 + progressbarstyle = 0 + menubaritemstyle = 1 + menubarstyle = 1 + menustyle = 0 + focusstyle = 3 + handlestyle = 1 + sliderstyle = 3 + scrollbarstyle = 0 + stepperstyle = 1 +# rgba = TRUE } } @@ -138,7 +151,7 @@ style "tooltips" { bg[NORMAL] = @tooltip_bg_color fg[NORMAL] = @tooltip_fg_color } -widget "gtk-tooltip*" style "tooltips" +widget "gtk-tooltip*" style "tooltips" widget_class "**" style "comboboxentry" widget_class "**" style "comboboxentry" diff --git a/usr/share/themes/Lubuntu-default/gtk-2.0/scrollbar.rc b/usr/share/themes/Lubuntu-default/gtk-2.0/scrollbar.rc index 8899a9a..8d8fe0a 100644 --- a/usr/share/themes/Lubuntu-default/gtk-2.0/scrollbar.rc +++ b/usr/share/themes/Lubuntu-default/gtk-2.0/scrollbar.rc @@ -2,271 +2,42 @@ # Scrollbar ######################################################################## -style "scrollbar" -{ - GtkRange::slider-width = 8 - GtkRange::stepper-size = 0 - GtkCheckButtonClass::indicator-size = 14 - GtkRadioButtonClass::indicator-size = 14 - - engine "pixmap" - { -### Trough ### - image - { - function = BOX - detail = "trough" - file = "images/null.png" - border = {6, 6, 18, 18} - stretch = TRUE - orientation = VERTICAL - } - - image - { - function = BOX - detail = "trough" - file = "images/null.png" - border = {18, 18, 6, 6} - stretch = TRUE - orientation = HORIZONTAL - } - -### Scrollbar ### - ## Normal - image - { - function = SLIDER - state = NORMAL - file = "images/scrollbar_horizontal.png" - border = {6, 6, 6, 6} - stretch = TRUE - orientation = HORIZONTAL - } - - image - { - function = SLIDER - state = NORMAL - file = "images/scrollbar_vertical.png" - border = {6, 6, 6, 6} - stretch = TRUE - orientation = VERTICAL - } - - ## Prelight - image - { - function = SLIDER - state = PRELIGHT - file = "images/scrollbar_horizontal-sel.png" - border = {6, 6, 6, 6} - stretch = TRUE - orientation = HORIZONTAL - } - - image - { - function = SLIDER - state = PRELIGHT - file = "images/scrollbar_vertical-sel.png" - border = {6, 6, 6, 6} - stretch = TRUE - orientation = VERTICAL - } - - ## Insensitive - image - { - function = SLIDER - state = INSENSITIVE - file = "images/scrollbar_horizontal.png" - border = {6, 6, 6, 6} - stretch = TRUE - orientation = HORIZONTAL - } - - image - { - function = SLIDER - state = INSENSITIVE - file = "images/scrollbar_vertical.png" - border = {6, 6, 6, 6} - stretch = TRUE - orientation = VERTICAL - } - - -### Arrow UP ### - -## Normal - image - { - function = ARROW - state = NORMAL - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = UP - } - -## Prelight - image - { - function = ARROW - state = PRELIGHT - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = UP - } - -## Insensitive - image - { - function = ARROW - state = INSENSITIVE - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = UP - } - -## Active - image - { - function = ARROW - state = ACTIVE - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = UP - } - -### Arrow DOWN ### - -## Normal - image - { - function = ARROW - state = NORMAL - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = DOWN - } - -## Prelight - image - { - function = ARROW - state = PRELIGHT - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = DOWN - } - -## Insensitive - image - { - function = ARROW - state = INSENSITIVE - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = DOWN - } - -## Active - image - { - function = ARROW - state = ACTIVE - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = DOWN - } - -### Arrow LEFT ### - -## Normal - image - { - function = ARROW - state = NORMAL - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = LEFT - } - -## Prelight - image - { - function = ARROW - state = PRELIGHT - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = LEFT - } - -## Insensitive - image - { - function = ARROW - state = INSENSITIVE - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = LEFT - } - -## Active - image - { - function = ARROW - state = ACTIVE - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = LEFT - } - -### Arrow RIGHT ### - -## Normal - image - { - function = ARROW - state = NORMAL - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = RIGHT - } - -## Prelight - image - { - function = ARROW - state = PRELIGHT - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = RIGHT - } - -## Insensitive - image - { - function = ARROW - state = INSENSITIVE - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = RIGHT - } +style "scrollbar" { + + GtkScrollbar ::has-backward-stepper = 0 + GtkScrollbar ::has-forward-stepper = 0 + GtkScrollbar ::min-slider-length = 30 + GtkScrollbar ::slider-width = 10 + GtkScrollbar ::trough-border = 1 + + xthickness = 2 + ythickness = 2 + + bg[SELECTED] = "#aaaaaa" + bg[ACTIVE] = "#b5b5b5" + + engine "murrine" { + roundness = 16 + gradient_shades = {1.0,1.0,1.0,1.0} + highlight_shade = 1.0 + glow_shade = 1.0 + reliefstyle = 0 + gradient_colors = FALSE + lightborder_shade = 1.0 + lightborderstyle = 0 + trough_shades = { 1.3, 1.3} + border_shades = { 2.0, 2.0} + contrast = 0.0 + colorize_scrollbar = TRUE + } +} -## Active - image - { - function = ARROW - state = ACTIVE - overlay_file = "images/null.png" - overlay_stretch = FALSE - arrow_direction = RIGHT - } - } +style "hscrollbar" { } +style "vscrollbar" { +} class "GtkScrollbar*" style "scrollbar" - +class "GtkHScrollbar" style "hscrollbar" +class "GtkVScrollbar" style "vscrollbar"