[gimp] themes: new Compact theme.



commit 64113d67bc397d9b5d699b5730d580a906971e06
Author: Jehan <jehan girinstud io>
Date:   Sun Aug 21 00:05:10 2022 +0200

    themes: new Compact theme.
    
    Something which is regularly asked is to use smaller icons. We used to
    have a "Small" theme in 2.8, which got away in 2.10 with icon sizing (cf
    issue #6121).
    
    This is a revival of such a theme (except I call it "Compact" because it
    feels more appropriate than "Small"). The theme is basically the same as
    "Default" (through an include), just tweaking some size related CSS
    rules.

 configure.ac                 |  3 ++-
 themes/Compact/Makefile.am   |  7 +++++++
 themes/Compact/gimp-dark.css | 16 ++++++++++++++++
 themes/Compact/gimp.css      | 15 +++++++++++++++
 themes/Compact/meson.build   |  3 +++
 themes/Makefile.am           |  2 +-
 themes/meson.build           |  1 +
 7 files changed, 45 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b6cb64056d..c0d8fe0d35 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3142,7 +3142,8 @@ icons/Legacy/Makefile
 icons/Symbolic/Makefile
 icons/hicolor/Makefile
 themes/Makefile
-themes/Light/Makefile
+themes/Compact/Makefile
+themes/Default/Makefile
 themes/System/Makefile
 data/Makefile
 data/brushes/Makefile
diff --git a/themes/Compact/Makefile.am b/themes/Compact/Makefile.am
new file mode 100644
index 0000000000..815f6a50e3
--- /dev/null
+++ b/themes/Compact/Makefile.am
@@ -0,0 +1,7 @@
+## Process this file with automake to produce Makefile.in
+
+themedatadir = $(gimpdatadir)/themes/Compact
+
+themedata_DATA = gimp.css gimp-dark.css
+
+EXTRA_DIST = $(themedata_DATA)
diff --git a/themes/Compact/gimp-dark.css b/themes/Compact/gimp-dark.css
new file mode 100644
index 0000000000..ebf56ec09c
--- /dev/null
+++ b/themes/Compact/gimp-dark.css
@@ -0,0 +1,16 @@
+/* Dark variant for the Compact theme for GIMP 3.0 */
+
+@import url("../Default/gimp-dark.css");
+
+* {
+  -GimpToolPalette-tool-icon-size: small-toolbar;
+}
+
+toolpalette button {
+  padding: 0px;
+}
+
+button, tab {
+  padding: 0px;
+}
+
diff --git a/themes/Compact/gimp.css b/themes/Compact/gimp.css
new file mode 100644
index 0000000000..8e63af5dcb
--- /dev/null
+++ b/themes/Compact/gimp.css
@@ -0,0 +1,15 @@
+/* Light variant for the Compact theme for GIMP 3.0 */
+
+@import url("../Default/gimp.css");
+
+* {
+  -GimpToolPalette-tool-icon-size: small-toolbar;
+}
+
+toolpalette button {
+  padding: 0px;
+}
+
+button, tab {
+  padding: 0px;
+}
diff --git a/themes/Compact/meson.build b/themes/Compact/meson.build
new file mode 100644
index 0000000000..69ca467f5f
--- /dev/null
+++ b/themes/Compact/meson.build
@@ -0,0 +1,3 @@
+install_data([ 'gimp.css', 'gimp-dark.css' ],
+             install_dir: gimpdatadir / 'themes' / 'Compact')
+
diff --git a/themes/Makefile.am b/themes/Makefile.am
index 384f4d0da6..ca2c79cfe9 100644
--- a/themes/Makefile.am
+++ b/themes/Makefile.am
@@ -1,3 +1,3 @@
 ## Process this file with automake to produce Makefile.in
 
-SUBDIRS = System Default
+SUBDIRS = System Default Compact
diff --git a/themes/meson.build b/themes/meson.build
index 5f1ab2bba1..254c634209 100644
--- a/themes/meson.build
+++ b/themes/meson.build
@@ -1,4 +1,5 @@
 subdir('Default')
+subdir('Compact')
 
 themes = [
   'System',


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