[gimp] themes: updates & bug fixes for KDE, Gnome



commit 75f81d15b176b3ed3a81b1f3949f9c68e554dfe0
Author: Benoit Touchette <draekko software+gimp gmail com>
Date:   Sun Jan 10 14:22:34 2016 -0500

    themes: updates & bug fixes for KDE, Gnome
    
    Fixed display issues for The-Dark-Side-of-Gimp under KDE (QtCurves &
    Oxygen-GTK) themes, and Gnome users (Ubuntu). Removed focus padding &
    lines to bring look closer to the Default theme. Updated button look
    to harmonize with possible future grey and light themes.

 themes/The-Dark-Side-of-Gimp/gtkrc                 |  389 ++++++++++++++++++--
 themes/The-Dark-Side-of-Gimp/ui/check2.png         |  Bin 265 -> 7436 bytes
 themes/The-Dark-Side-of-Gimp/ui/check3.png         |  Bin 247 -> 5978 bytes
 .../ui/gimp-button-insensitive.png                 |  Bin 334 -> 4068 bytes
 .../ui/gimp-button-normal.png                      |  Bin 375 -> 4066 bytes
 .../ui/gimp-button-prelight.png                    |  Bin 369 -> 4126 bytes
 .../ui/gimp-button-pressed.png                     |  Bin 377 -> 4523 bytes
 themes/The-Dark-Side-of-Gimp/ui/gimp-handle-h.png  |  Bin 4924 -> 4927 bytes
 themes/The-Dark-Side-of-Gimp/ui/gimp-handle-v.png  |  Bin 4907 -> 4911 bytes
 themes/The-Dark-Side-of-Gimp/ui/minus.png          |  Bin 241 -> 6041 bytes
 themes/The-Dark-Side-of-Gimp/ui/notebook.png       |  Bin 135 -> 3675 bytes
 themes/The-Dark-Side-of-Gimp/ui/option2.png        |  Bin 357 -> 8204 bytes
 themes/The-Dark-Side-of-Gimp/ui/option3.png        |  Bin 352 -> 7622 bytes
 themes/The-Dark-Side-of-Gimp/ui/plus.png           |  Bin 244 -> 6384 bytes
 themes/The-Dark-Side-of-Gimp/ui/shadow-null.png    |  Bin 0 -> 146 bytes
 15 files changed, 353 insertions(+), 36 deletions(-)
---
diff --git a/themes/The-Dark-Side-of-Gimp/gtkrc b/themes/The-Dark-Side-of-Gimp/gtkrc
index 52b3772..82c45a2 100644
--- a/themes/The-Dark-Side-of-Gimp/gtkrc
+++ b/themes/The-Dark-Side-of-Gimp/gtkrc
@@ -1,6 +1,7 @@
 ############################################################################
 #
 # The Dark Side of GIMP Theme
+# Version 0.1.2
 #
 # Copyright 2015, Benoit Touchette
 #
@@ -33,13 +34,34 @@
 # gap information from new CS6 II theme, Medhi Abhollahi
 #
 ############################################################################
+#
+# KDE:
+#
+# * For this theme to work under KDE users will need to disable either
+#   "Apply colors to non-QT applications" or "Apply KDE Colours to Non-KDE
+#   apps" depending on the version.
+#
+# Miscellaneous:
+#
+# * Fonts can be overridden by uncommenting the two font lines below
+#
+############################################################################
 
+gtk-menu-images = 1
+gtk-button-images = 0
 gtk-auto-mnemonics = 1
-gtk-primary-button-warps-slider = 1
+#gtk-primary-button-warps-slider = 1
+gtk-toolbar-style = GTK_TOOLBAR_ICONS
+gtk-application-prefer-dark-theme = true
+
+#gtk-font-name = "Sans 11"
+
+# KDE hack to match gtk/gnome defaults
+gtk-button-images = 0
 
 style "tdsog-default-style"
 {
-  font_name = "Sans 11"
+#  font_name = "Sans 11"
 
   color["clr1"] = "#EEEEEE"
   color["clr2"] = "#DDDDDD"
@@ -81,7 +103,7 @@ style "tdsog-default-style"
   GtkScrollbar::has_secondary_backward_stepper = 0
   GtkScrollbar::has_secondary_forward_stepper = 0
 
-  GtkPaned::handle-size = 0
+  GtkPaned::handle-size = 2
   GimpDockWindow::default-height = 240
   GimpDock::font-scale = 0.8333
   GimpMenuDock::minimal-width = 200
@@ -104,12 +126,25 @@ style "tdsog-default-style"
   GtkDialog::action-area-border = 12
   GimpUnitComboBox::appears-as-list = 0
   GtkComboBox::appears-as-list = 0
+  GtkButton::focus-line_width = 0
+  GtkButton::focus-padding = 0
 
-  GtkScrollbar::trough-border = 0
   GtkRange::trough-border = 0
   GtkRange::slider-width = 15
   GtkRange::stepper-size = 0
 
+  GtkScale::slider-length = 14
+  GtkScale::slider-width  = 14
+  GtkScale::trough-border = 0
+  GtkScale::trough-side-details = 1
+
+  GtkVScale::slider_length = 14
+  GtkVScale::slider_width = 14
+
+  GtkHScale::slider_length = 14
+  GtkHScale::slider_width = 14
+
+  GtkScrollbar::trough-border = 0
   GtkScrollbar::activate-slider = 1
   GtkScrollbar::has-backward-stepper = 0
   GtkScrollbar::has-forward-stepper = 0
@@ -117,11 +152,6 @@ style "tdsog-default-style"
   GtkScrolledWindow::scrollbar-spacing = 0
   GtkScrolledWindow::scrollbars-within-bevel = 0
 
-  GtkVScale::slider_length = 19
-  GtkVScale::slider_width = 19
-  GtkHScale::slider_length = 19
-  GtkHScale::slider_width = 19
-
   GtkTreeView::expander-size = 13
   GtkExpander::expander-size = 13
 
@@ -138,7 +168,10 @@ style "tdsog-default-style"
 
   GtkWidget::tooltip-radius = 2
   GtkWidget::tooltip-alpha = 235
-  GtkWidget::new-tooltip-style = 1 #for compatibility
+  GtkWidget::new-tooltip-style = 1
+
+  GtkWindow::resize-grip-height = 0
+  GtkWindow::resize-grip-width = 0
 
   engine "pixmap"
     {
@@ -172,18 +205,8 @@ style "tdsog-default-style"
 
       image
         {
-          function = RESIZE_GRIP
-          state = NORMAL
-          detail = "statusbar"
-          overlay_file = "ui/null.png"
-          overlay_border = { 0,0,0,0 }
-          overlay_stretch = FALSE
-        }
-
-      image
-        {
           function = SHADOW_GAP
-          file = "ui/null.png"
+          file = "ui/shadow-null.png"
           border = { 4, 4, 4, 4 }
           stretch = TRUE
         }
@@ -400,7 +423,7 @@ style "tdsog-tooltips-style" = "tdsog-default-style"
   fg[NORMAL] = "#CBCBCB"
 }
 
-widget "gtk-tooltip" style "tdsog-tooltips-style"
+widget "gtk-tooltip*" style "tdsog-tooltips-style"
 
 ###########################################################
 
@@ -427,6 +450,42 @@ style "tdsog-treeview" = "tdsog-default-style"
       image
         {
           function = FLAT_BOX
+          state = ACTIVE
+          file = "ui/null.png"
+          border = {1,1,1,1}
+          stretch = TRUE
+        }
+
+      image
+        {
+          function = FLAT_BOX
+          state = PRELIGHT
+          file = "ui/null.png"
+          border = {1,1,1,1}
+          stretch = TRUE
+        }
+
+      image
+        {
+          function = FLAT_BOX
+          state = NORMAL
+          file = "ui/null.png"
+          border = {1,1,1,1}
+          stretch = TRUE
+        }
+
+      image
+        {
+          function = FLAT_BOX
+          state = INSENSITIVE
+          file = "ui/null.png"
+          border = {1,1,1,1}
+          stretch = TRUE
+        }
+
+      image
+        {
+          function = FLAT_BOX
           state = SELECTED
           file = "ui/menuitem.png"
           border = {1,1,1,1}
@@ -721,7 +780,7 @@ style "tdsog-menu-bar" = "tdsog-default-style"
   xthickness = 4
   ythickness = 2
 
-  fg[NORMAL] = "#CBCBCB"
+  fg[NORMAL] = "#EEEEEE"
 
   engine "pixmap"
     {
@@ -748,10 +807,10 @@ style "menu_item"
 
   bg[NORMAL] = "#484848"
 
-  fg[NORMAL] = "#CBCBCB"
-  fg[PRELIGHT] = "#CBCBCB"
-  fg[ACTIVE] = "#CBCBCB"
-  fg[SELECTED] = "#FFFFFF"
+  fg[NORMAL] = "#FFF"
+  fg[PRELIGHT] = "#FFF"
+  fg[ACTIVE] = "#FFF"
+  fg[SELECTED] = "#FFF"
   fg[INSENSITIVE] = "#C1C1C1"
 
   engine "pixmap"
@@ -835,10 +894,10 @@ style "tdsog-item"
 
   bg[NORMAL] = "#484848"
 
-  fg[NORMAL] = "#CBCBCB"
-  fg[PRELIGHT] = "#CBCBCB"
-  fg[ACTIVE] = "#CBCBCB"
-  fg[SELECTED] = "#FFFFFF"
+  fg[NORMAL] = "#FFF"
+  fg[PRELIGHT] = "#FFF"
+  fg[ACTIVE] = "#FFF"
+  fg[SELECTED] = "#FFF"
   fg[INSENSITIVE] = "#C1C1C1"
 
   engine "pixmap"
@@ -909,7 +968,7 @@ style "tdsog-entry" = "tdsog-default-style"
         {
           function = SHADOW
           detail = "entry"
-          file = "ui/null.png"
+          file = "ui/shadow-null.png"
           border = { 4, 4, 4, 4 }
           stretch = TRUE
         }
@@ -1110,7 +1169,7 @@ style "tdsog-scroll-bar"
         {
           function = BOX
           recolorable = TRUE
-          file = "ui/transparent.png"
+          file = "ui/null.png"
           border = {0,0,0,0}
           stretch = TRUE
         }
@@ -1739,7 +1798,7 @@ style "tdsog-range-style"
       image
         {
           function = BOX
-          file = "ui/null.png"
+          file = "ui/transparent.png"
           border = { 3, 3, 3, 3 }
           stretch = TRUE
         }
@@ -1999,6 +2058,16 @@ style "tdsog-toolbar-style"
 
       image
         {
+          function = BOX_GAP
+          recolorable = TRUE
+          detail = "handlebox_bin"
+          file = "ui/gimp-handle-h.png"
+          border = { 4, 3, 4, 3 }
+          stretch = FALSE
+        }
+
+      image
+        {
           function = HANDLE
           overlay_file = "ui/gimp-handle-h.png"
           overlay_stretch = FALSE
@@ -2034,7 +2103,7 @@ style "tdsog-toolbar-style"
 }
 
 class "GtkToolbar" style "tdsog-toolbar-style"
-class "*HandleBox" style "tdsog-toolbar-style"
+class "*HandleBox*" style "tdsog-toolbar-style"
 
 ###########################################################
 
@@ -2163,6 +2232,8 @@ style "tdsog-combobox-style"
 
 widget_class "*<GtkComboBox>" style "tdsog-combobox-style"
 
+###########################################################
+
 style "tdsog-combobox-style1"
 {
   xthickness = 0
@@ -2192,7 +2263,253 @@ style "tdsog-button-style"
   fg[INSENSITIVE] = "#CBCBCB"
 }
 
-widget_class "*GtkButton*" style "tdsog-button-style"
+widget_class "*<GtkButton>*" style "tdsog-button-style"
+
+###########################################################
+
+style "kde_hack_1"
+{
+  color["clr1"] = "#EEEEEE"
+  color["clr2"] = "#DDDDDD"
+  color["clr3"] = "#C1C1C1"
+  color["clr4"] = "#222222"
+  color["clr5"] = "#111111"
+  color["clr6"] = "#828282"
+  color["clr7"] = "#3b3b3b"
+  color["clr8"] = "#222222"
+  color["clr9"] = "#4D4D4D"
+
+  fg[NORMAL] = @clr1
+  fg[PRELIGHT] = @clr1
+  fg[ACTIVE] = @clr1
+  fg[SELECTED] = @clr2
+  fg[INSENSITIVE] = @clr3
+
+  bg[NORMAL] = @clr4
+
+  base[NORMAL] = @clr6
+  base[PRELIGHT] = @clr7
+  base[ACTIVE] = @clr7
+  base[SELECTED] = @clr7
+  base[INSENSITIVE] = @clr8
+
+  text[NORMAL] = @clr1
+  text[PRELIGHT] = @clr1
+  text[ACTIVE] = @clr1
+  text[SELECTED] = @clr1
+  text[INSENSITIVE] = @clr9
+}
+
+widget_class "*<GtkNotebook>*" style "kde_hack_1"
+
+###########################################################
+
+style "kde_hack_2"
+{
+  bg[NORMAL] = "#222" #Sets canvas BG
+}
+
+widget "*GimpDisplayShell.*" style "kde_hack_2"
+
+###########################################################
+
+style "kde_hack_3"
+{
+  bg[NORMAL] = "#222"
+}
+
+class "GtkFrame" style "kde_hack_3"
+widget_class "*<GimpDisplay>*" style "kde_hack_3"
+
+###########################################################
+
+style "kde_hack_4"
+{
+  engine "pixmap"
+    {
+      image
+        {
+          function = OPTION
+          shadow = OUT
+          recolorable = TRUE
+          overlay_file = "ui/option1.png"
+          overlay_stretch = FALSE
+        }
+
+      image
+        {
+          function = OPTION
+          shadow = IN
+          recolorable = TRUE
+          overlay_file = "ui/option2.png"
+          overlay_stretch = FALSE
+        }
+
+      image
+        {
+          function = OPTION
+          shadow = ETCHED_IN
+          recolorable = TRUE
+          overlay_file = "ui/option3.png"
+          overlay_stretch = FALSE
+        }
+
+      image
+        {
+          function = CHECK
+          shadow = OUT
+          recolorable = TRUE
+          overlay_file = "ui/check1.png"
+          overlay_border = { 0, 0, 0, 0 }
+          overlay_stretch = FALSE
+        }
+
+      image
+        {
+          function = CHECK
+          shadow = IN
+          recolorable = TRUE
+          overlay_file = "ui/check2.png"
+          overlay_border = { 0, 0, 0, 0 }
+          overlay_stretch = FALSE
+        }
+
+      image
+        {
+          function = CHECK
+          shadow = ETCHED_IN
+          recolorable = TRUE
+          overlay_file = "ui/check3.png"
+          overlay_border = { 0, 0, 0, 0 }
+          overlay_stretch = FALSE
+        }
+    }
+}
+
+widget_class "*<GtkWidget>*" style "kde_hack_4"
+
+###########################################################
+
+# KDE Hack 5
+widget_class "*<GtkToolbar>*" style "tdsog-toolbar-style"
+
+###########################################################
+
+style "kde_hack_6"
+{
+  engine "pixmap"
+    {
+      # This image is used to draw the headers of columns
+      # in list views when they are not selected.
+      image
+        {
+          function = BOX
+          recolorable = TRUE
+          state = NORMAL
+          file = "ui/list_header.png"
+          border = { 2, 2, 2, 2 }
+          stretch = TRUE
+        }
+
+      # This image is used to draw the column headers in
+      # list views when they are clicked.
+      image
+        {
+          function = BOX
+          recolorable = TRUE
+          state = PRELIGHT
+          file = "ui/list_header.png"
+          border = { 2, 2, 2, 2 }
+          stretch = TRUE
+        }
+
+      image
+        {
+          function = BOX
+          recolorable = TRUE
+          state = ACTIVE
+          file = "ui/list_header-pressed.png"
+          border = { 2, 2, 2, 2}
+          stretch = TRUE
+        }
+
+      image
+        {
+          function = BOX
+          recolorable = TRUE
+          state = SELECTED
+          file = "ui/list_header.png"
+          border = { 2, 2, 2, 2 }
+          stretch = TRUE
+        }
+    }
+}
+
+widget_class "*<GtkTreeView>*<GtkButton>*" style "kde_hack_6"
+
+###########################################################
+
+# KDE & oxygen-gtk fix for BG
+style "tdsog-oxygen-default-style" = "tdsog-default-style"
+{
+}
+
+class "*" style "tdsog-oxygen-default-style"
+
+###########################################################
+
+style "tdsog-gtkscale-style"
+{
+  engine "pixmap"
+    {
+      image
+        {
+          function = SLIDER
+          recolorable = TRUE
+          file = "ui/bar-h.png"
+          border = { 2,2,2,2 }
+          stretch = TRUE
+          orientation = HORIZONTAL
+        }
+
+      image
+        {
+          function = SLIDER
+          recolorable = TRUE
+          file = "ui/bar-v.png"
+          border = { 2,2,2,2 }
+          stretch = TRUE
+          orientation = VERTICAL
+        }
+
+      image
+        {
+          function = BOX
+          recolorable = TRUE
+          file = "ui/slider-h.png"
+          border = {0,0,0,0}
+          stretch = TRUE
+          orientation = HORIZONTAL
+        }
+
+      image
+        {
+          function = BOX
+          recolorable = TRUE
+          file = "ui/slider-v.png"
+          border = {0,0,0,0}
+          stretch = TRUE
+          orientation = VERTICAL
+        }
+    }
+}
+
+class "GtkScale" style "tdsog-gtkscale-style"
+class "GtkVScale" style "tdsog-gtkscale-style"
+class "GtkHScale" style "tdsog-gtkscale-style"
+widget_class "*<GtkScale>*" style "tdsog-gtkscale-style"
+widget_class "*<GtkVScale>*" style "tdsog-gtkscale-style"
+widget_class "*<GtkHScale>*" style "tdsog-gtkscale-style"
 
 ###########################################################
 
diff --git a/themes/The-Dark-Side-of-Gimp/ui/check2.png b/themes/The-Dark-Side-of-Gimp/ui/check2.png
index 19497cf..e533d1e 100644
Binary files a/themes/The-Dark-Side-of-Gimp/ui/check2.png and b/themes/The-Dark-Side-of-Gimp/ui/check2.png 
differ
diff --git a/themes/The-Dark-Side-of-Gimp/ui/check3.png b/themes/The-Dark-Side-of-Gimp/ui/check3.png
index 4c8f518..29c9167 100644
Binary files a/themes/The-Dark-Side-of-Gimp/ui/check3.png and b/themes/The-Dark-Side-of-Gimp/ui/check3.png 
differ
diff --git a/themes/The-Dark-Side-of-Gimp/ui/gimp-button-insensitive.png 
b/themes/The-Dark-Side-of-Gimp/ui/gimp-button-insensitive.png
index 1ad7c6e..487e99f 100644
Binary files a/themes/The-Dark-Side-of-Gimp/ui/gimp-button-insensitive.png and 
b/themes/The-Dark-Side-of-Gimp/ui/gimp-button-insensitive.png differ
diff --git a/themes/The-Dark-Side-of-Gimp/ui/gimp-button-normal.png 
b/themes/The-Dark-Side-of-Gimp/ui/gimp-button-normal.png
index 7683841..f4cb29d 100644
Binary files a/themes/The-Dark-Side-of-Gimp/ui/gimp-button-normal.png and 
b/themes/The-Dark-Side-of-Gimp/ui/gimp-button-normal.png differ
diff --git a/themes/The-Dark-Side-of-Gimp/ui/gimp-button-prelight.png 
b/themes/The-Dark-Side-of-Gimp/ui/gimp-button-prelight.png
index f170a3a..cd5f427 100644
Binary files a/themes/The-Dark-Side-of-Gimp/ui/gimp-button-prelight.png and 
b/themes/The-Dark-Side-of-Gimp/ui/gimp-button-prelight.png differ
diff --git a/themes/The-Dark-Side-of-Gimp/ui/gimp-button-pressed.png 
b/themes/The-Dark-Side-of-Gimp/ui/gimp-button-pressed.png
index fd0aa56..673117d 100644
Binary files a/themes/The-Dark-Side-of-Gimp/ui/gimp-button-pressed.png and 
b/themes/The-Dark-Side-of-Gimp/ui/gimp-button-pressed.png differ
diff --git a/themes/The-Dark-Side-of-Gimp/ui/gimp-handle-h.png 
b/themes/The-Dark-Side-of-Gimp/ui/gimp-handle-h.png
index 9ef6149..6e9f5a3 100644
Binary files a/themes/The-Dark-Side-of-Gimp/ui/gimp-handle-h.png and 
b/themes/The-Dark-Side-of-Gimp/ui/gimp-handle-h.png differ
diff --git a/themes/The-Dark-Side-of-Gimp/ui/gimp-handle-v.png 
b/themes/The-Dark-Side-of-Gimp/ui/gimp-handle-v.png
index e54014c..f7d6d66 100644
Binary files a/themes/The-Dark-Side-of-Gimp/ui/gimp-handle-v.png and 
b/themes/The-Dark-Side-of-Gimp/ui/gimp-handle-v.png differ
diff --git a/themes/The-Dark-Side-of-Gimp/ui/minus.png b/themes/The-Dark-Side-of-Gimp/ui/minus.png
index d1a1962..5c26241 100644
Binary files a/themes/The-Dark-Side-of-Gimp/ui/minus.png and b/themes/The-Dark-Side-of-Gimp/ui/minus.png 
differ
diff --git a/themes/The-Dark-Side-of-Gimp/ui/notebook.png b/themes/The-Dark-Side-of-Gimp/ui/notebook.png
index d75158a..9b685f5 100644
Binary files a/themes/The-Dark-Side-of-Gimp/ui/notebook.png and 
b/themes/The-Dark-Side-of-Gimp/ui/notebook.png differ
diff --git a/themes/The-Dark-Side-of-Gimp/ui/option2.png b/themes/The-Dark-Side-of-Gimp/ui/option2.png
index 0320068..be2c065 100644
Binary files a/themes/The-Dark-Side-of-Gimp/ui/option2.png and b/themes/The-Dark-Side-of-Gimp/ui/option2.png 
differ
diff --git a/themes/The-Dark-Side-of-Gimp/ui/option3.png b/themes/The-Dark-Side-of-Gimp/ui/option3.png
index 17f28a0..820b25e 100644
Binary files a/themes/The-Dark-Side-of-Gimp/ui/option3.png and b/themes/The-Dark-Side-of-Gimp/ui/option3.png 
differ
diff --git a/themes/The-Dark-Side-of-Gimp/ui/plus.png b/themes/The-Dark-Side-of-Gimp/ui/plus.png
index 8c63524..8c691c7 100644
Binary files a/themes/The-Dark-Side-of-Gimp/ui/plus.png and b/themes/The-Dark-Side-of-Gimp/ui/plus.png differ
diff --git a/themes/The-Dark-Side-of-Gimp/ui/shadow-null.png b/themes/The-Dark-Side-of-Gimp/ui/shadow-null.png
new file mode 100644
index 0000000..7efe5d7
Binary files /dev/null and b/themes/The-Dark-Side-of-Gimp/ui/shadow-null.png differ


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]