[gimp/gtk3-port: 134/262] port gtkrc files to CSS (incompletely and stuff commented out)



commit 23eed59c965c291c8b1b428d889d89cbaa7bb5f6
Author: Michael Natterer <mitch gimp org>
Date:   Wed Dec 29 15:14:18 2010 +0100

    port gtkrc files to CSS (incompletely and stuff commented out)

 etc/Makefile.am           |    2 +-
 etc/gimp.css              |    9 ++++
 etc/gtkrc                 |   24 ----------
 libgimp/gimpui.c          |    1 -
 themes/Small/gimp.css     |   69 +++++++++++++++++++++++++++++
 themes/System/Makefile.am |    2 +-
 themes/System/gimp.css    |   69 +++++++++++++++++++++++++++++
 themes/System/gtkrc       |  107 ---------------------------------------------
 8 files changed, 149 insertions(+), 134 deletions(-)
---
diff --git a/etc/Makefile.am b/etc/Makefile.am
index 2e8af80..bb6b7f4 100644
--- a/etc/Makefile.am
+++ b/etc/Makefile.am
@@ -2,7 +2,7 @@
 
 gimpsysconf = \
        controllerrc    \
-       gtkrc           \
+       gimp.css        \
        menurc          \
        sessionrc       \
        templaterc      \
diff --git a/etc/gimp.css b/etc/gimp.css
new file mode 100644
index 0000000..01d1365
--- /dev/null
+++ b/etc/gimp.css
@@ -0,0 +1,9 @@
+/* You can add your own GIMP-specific GTK styles here */
+
+
+/* Adjust the size of previews in plug-in dialogs */
+/*
+GimpPreview {
+  -GimpPreview-size: 256;
+}
+*/
diff --git a/libgimp/gimpui.c b/libgimp/gimpui.c
index 5a33ffa..d433ae5 100644
--- a/libgimp/gimpui.c
+++ b/libgimp/gimpui.c
@@ -176,7 +176,6 @@ gimp_ui_init (const gchar *prog_name,
   [NSApp activateIgnoringOtherApps:YES];
 #endif
 
-  gimp_ui_fix_pixbuf_style ();
   gimp_ui_initialized = TRUE;
 }
 
diff --git a/themes/Small/gimp.css b/themes/Small/gimp.css
new file mode 100644
index 0000000..a8ceef6
--- /dev/null
+++ b/themes/Small/gimp.css
@@ -0,0 +1,69 @@
+/* GIMP theme css file */
+
+* {
+/*
+  stock["gtk-dialog-error"] =
+    {
+      { "images/stock-error-64.png", *, *, "gtk-dialog" }
+    }
+  stock["gtk-dialog-info"] =
+    {
+      { "images/stock-info-64.png", *, *, "gtk-dialog" }
+    }
+  stock["gtk-dialog-question"] =
+    {
+      { "images/stock-question-64.png", *, *, "gtk-dialog" }
+    }
+  stock["gtk-dialog-warning"] =
+    {
+      { "images/stock-warning-64.png", *, *, "gtk-dialog" }
+    }
+*/
+
+  -GtkPaned-handle-size:             5;
+  -GimpDockWindow-default-height:    240;
+  -GimpDock-font-scale:              0.8333;
+  -GimpMenuDock-minimal-width:       200;
+  -GimpDockWindow-menu-preview-size: small-toolbar;
+  -GimpToolPalette-tool-icon-size:   menu;
+  -GimpToolPalette-button-relief:    none;
+  -GimpDockbook-tab-border:          0;
+  -GimpDockbook-tab-icon-size:       menu;
+  -GimpColorNotebook-tab-border:     0;
+  -GimpColorNotebook-tab-icon-size:  menu;
+  -GimpDeviceEditor-handle-size:     12;
+  -GimpDockable-content-border:      1;
+  -GimpEditor-content-spacing:       1;
+  -GimpEditor-button-spacing:        1;
+  -GimpEditor-button-icon-size:      menu;
+  -GimpDataEditor-minimal-height:    64;
+  -GtkDialog-content-area-border:    0;
+  -GtkDialog-button-spacing:         6;
+  -GtkDialog-action-area-border:     12;
+  -GimpUnitComboBox-appears-as-list: 0;
+}
+
+GimpToolDialog {
+  -GtkDialog-action-area-border: 6;
+}
+
+GimpDockable {
+  -GimpFrame-label-bold:       0;
+  -GimpFrame-label-spacing:    0;
+  -GtkButton-focus-line-width: 1;
+  -GtkButton-focus-padding:    0;
+}
+
+GimpDisplayShell {
+  -GimpRuler-font-scale:          0.6444;
+  -GimpUnitComboBox-label-scale:  0.8333;
+  -GimpScaleComboBox-label-scale: 0.8333;
+  -GtkComboBox-arrow-size:        8;
+  -GtkButton-inner-border:        0 0 0 0;
+  -GtkButton-focus-line_width:    0;
+  -GtkButton-focus-padding:       0;
+}
+
+GimpOverlayFrame {
+  -GtkButton-focus-line-width: 1;
+}
diff --git a/themes/System/Makefile.am b/themes/System/Makefile.am
index cbfcc22..496ca98 100644
--- a/themes/System/Makefile.am
+++ b/themes/System/Makefile.am
@@ -2,6 +2,6 @@
 
 themedatadir = $(gimpdatadir)/themes/System
 
-themedata_DATA = gtkrc
+themedata_DATA = gimp.css
 
 EXTRA_DIST = $(themedata_DATA)
diff --git a/themes/System/gimp.css b/themes/System/gimp.css
new file mode 100644
index 0000000..cb6aa45
--- /dev/null
+++ b/themes/System/gimp.css
@@ -0,0 +1,69 @@
+/* GIMP theme css file */
+
+* {
+/*
+  stock["gtk-dialog-error"] =
+    {
+      { "images/stock-error-64.png", *, *, "gtk-dialog" }
+    }
+  stock["gtk-dialog-info"] =
+    {
+      { "images/stock-info-64.png", *, *, "gtk-dialog" }
+    }
+  stock["gtk-dialog-question"] =
+    {
+      { "images/stock-question-64.png", *, *, "gtk-dialog" }
+    }
+  stock["gtk-dialog-warning"] =
+    {
+      { "images/stock-warning-64.png", *, *, "gtk-dialog" }
+    }
+*/
+
+  -GtkPaned-handle-size:             6;
+  -GimpDockWindow-default-height:    300;
+  -GimpDock-font-scale:              0.8333;
+  -GimpMenuDock-minimal-width:       200;
+  -GimpDockWindow-menu-preview-size: button;
+  -GimpToolPalette-tool-icon-size:   button;
+  -GimpToolPalette-button-relief:    none;
+  -GimpDockbook-tab-border:          0;
+  -GimpDockbook-tab-icon-size:       button;
+  -GimpColorNotebook-tab-border:     0;
+  -GimpColorNotebook-tab-icon-size:  button;
+  -GimpDeviceEditor-handle-size:     12;
+  -GimpDockable-content-border:      2;
+  -GimpEditor-content-spacing:       2;
+  -GimpEditor-button-spacing:        2;
+  -GimpEditor-button-icon-size:      menu;
+  -GimpDataEditor-minimal-height:    96;
+  -GtkDialog-content-area-border:    0;
+  -GtkDialog-button-spacing:         6;
+  -GtkDialog-action-area-border:     12;
+  -GimpUnitComboBox-appears-as-list: 0;
+}
+
+GimpToolDialog {
+  -GtkDialog-action-area-border: 6;
+}
+
+GimpDockable {
+  -GimpFrame-label-bold:       0;
+  -GimpFrame-label-spacing:    2;
+  -GtkButton-focus-line-width: 1;
+  -GtkButton-focus-padding:    0;
+}
+
+GimpDisplayShell {
+  -GimpRuler-font-scale:          0.8333;
+  -GimpUnitComboBox-label-scale:  0.8333;
+  -GimpScaleComboBox-label-scale: 0.8333;
+  -GtkComboBox-arrow-size:        8;
+  -GtkButton-inner-border:        0 0 0 0;
+  -GtkButton-focus-line_width:    0;
+  -GtkButton-focus-padding:       0;
+}
+
+GimpOverlayFrame {
+  -GtkButton-focus-line-width: 1;
+}


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