gtk-theme-clearcodes

gtk3 theme with a focus on code simplicity
git clone https://git.ce9e.org/gtk-theme-clearcodes.git

commit
7f714b5f4188552a012e12cd42632a3adf84575b
parent
824b443638c041724bd955e3c23126a9563ec63d
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-05-23 04:48
adapt to gtk4 (only backwards-compatible changes)

Diffstat

M gtk-3.0/widgets/arrow.css 5 +++++
M gtk-3.0/widgets/button.css 8 ++++++++
M gtk-3.0/widgets/calendar.css 19 ++++++++++++++++---
M gtk-3.0/widgets/checkbox.css 4 ++++
M gtk-3.0/widgets/list.css 1 +
M gtk-3.0/widgets/menu.css 4 ++++
M gtk-3.0/widgets/scale.css 7 +++++++

7 files changed, 45 insertions, 3 deletions


diff --git a/gtk-3.0/widgets/arrow.css b/gtk-3.0/widgets/arrow.css

@@ -1,3 +1,4 @@
   -1     1 .expander,
    1     2 arrow {
    2     3     min-height: 14px;
    3     4     min-width: 14px;
@@ -9,6 +10,8 @@ arrow.top {
    9    10 
   10    11 arrow.bottom,
   11    12 combobox arrow,
   -1    13 expander:checked,
   -1    14 .expander:checked,
   12    15 expander arrow:checked {
   13    16     -gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
   14    17 }
@@ -19,6 +22,8 @@ menuitem arrow {
   19    22 }
   20    23 
   21    24 arrow.right,
   -1    25 expander,
   -1    26 .expander,
   22    27 expander arrow {
   23    28     -gtk-icon-source: -gtk-icontheme("pan-end-symbolic");
   24    29 }

diff --git a/gtk-3.0/widgets/button.css b/gtk-3.0/widgets/button.css

@@ -13,6 +13,7 @@ button.suggested-action {
   13    13     border-color: @selected_bg_color;
   14    14 }
   15    15 
   -1    16 .toolbar > button,
   16    17 button.flat {
   17    18     background: none;
   18    19     border-color: transparent;
@@ -29,6 +30,9 @@ button.suggested-action:hover {
   29    30     color: @selected_fg_color;
   30    31 }
   31    32 
   -1    33 .toolbar > button:hover,
   -1    34 .toolbar > button:active,
   -1    35 .toolbar > button:checked,
   32    36 button.flat:hover,
   33    37 button.flat:active,
   34    38 button.flat:checked {
@@ -130,12 +134,16 @@ button.link > label {
  130   134 spinbutton {
  131   135     border-width: 1px;
  132   136 }
   -1   137 spinbutton text,
  133   138 spinbutton entry {
   -1   139     padding: 3px;
  134   140     border-width: 0;
  135   141 }
   -1   142 spinbutton:not(.vertical) text,
  136   143 spinbutton:not(.vertical) entry {
  137   144     min-width: 2.5em;
  138   145 }
   -1   146 spinbutton.vertical text,
  139   147 spinbutton.vertical entry {
  140   148     min-height: 2.5em;
  141   149 }

diff --git a/gtk-3.0/widgets/calendar.css b/gtk-3.0/widgets/calendar.css

@@ -1,20 +1,33 @@
    1     1 calendar {
    2     2     border-width: 1px;
    3     3 }
    4    -1 
    5    -1 calendar.header {
   -1     4 calendar header,
   -1     5 calendar .header {
    6     6     background-color: @bg_color;
    7     7     color: @fg_color;
   -1     8     border-bottom-width: 1px;
   -1     9 }
   -1    10 
   -1    11 calendar header button,
   -1    12 calendar header button:hover,
   -1    13 calendar header button:active,
   -1    14 calendar header button:focus {
   -1    15     border: none;
   -1    16     background: none;
    8    17 }
    9    18 
   -1    19 calendar .day-number,
   10    20 calendar calendar {
   11    21     padding: 2px;
   12    22 }
   13    23 
   14    -1 calendar.highlight {
   -1    24 calendar.highlight,
   -1    25 calendar .highlight {
   15    26     color: mix(@fg_color, @bg_color, 0.3);
   16    27 }
   17    28 
   -1    29 calendar .day-name,
   -1    30 calendar .other-month,
   18    31 calendar:indeterminate {
   19    32     color: mix(@fg_color, @bg_color, 0.5);
   20    33 }

diff --git a/gtk-3.0/widgets/checkbox.css b/gtk-3.0/widgets/checkbox.css

@@ -17,11 +17,15 @@ check {
   17    17     border-color: currentColor;
   18    18 }
   19    19 
   -1    20 radio.left,
   -1    21 check.left,
   20    22 radio:not(:last-child),
   21    23 check:not(:last-child) {
   22    24     margin-right: 0.4em;
   23    25 }
   24    26 
   -1    27 radio.right,
   -1    28 check.right,
   25    29 radio:not(:first-child),
   26    30 check:not(:first-child) {
   27    31     margin-left: 0.4em;

diff --git a/gtk-3.0/widgets/list.css b/gtk-3.0/widgets/list.css

@@ -20,6 +20,7 @@ row {
   20    20     margin-right: 0.5em;
   21    21 }
   22    22 
   -1    23 stacksidebar,
   23    24 stacksidebar .frame {
   24    25     border-right-width: 1px;
   25    26 }

diff --git a/gtk-3.0/widgets/menu.css b/gtk-3.0/widgets/menu.css

@@ -11,6 +11,7 @@ actionbar {
   11    11     padding: 0.5em;
   12    12 }
   13    13 
   -1    14 statusbar,
   14    15 actionbar {
   15    16     border-top-width: 1px;
   16    17 }
@@ -25,6 +26,7 @@ menu {
   25    26     padding: 1px;
   26    27 }
   27    28 
   -1    29 menubar item,
   28    30 menuitem {
   29    31     padding: 0.2em 1em;
   30    32     min-height: 16px;  /* enough space for icon */
@@ -34,6 +36,8 @@ menu menuitem {
   34    36     padding: 0.2em 0.4em;
   35    37 }
   36    38 
   -1    39 menu item:hover,
   -1    40 menubar item:hover,
   37    41 menuitem:hover,
   38    42 menuitem:hover > *,
   39    43 combobox menuitem:hover * {

diff --git a/gtk-3.0/widgets/scale.css b/gtk-3.0/widgets/scale.css

@@ -15,6 +15,13 @@ scale highlight {
   15    15     background: @selected_bg_color;
   16    16 }
   17    17 
   -1    18 progressbar:not(.vertical) progress {
   -1    19     min-height: 0.5em;
   -1    20 }
   -1    21 progressbar.vertical progress {
   -1    22     min-width: 0.5em;
   -1    23 }
   -1    24 
   18    25 entry progress {
   19    26     border-bottom: 2px solid @selected_bg_color;
   20    27 }