gtk-theme-clearcodes

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

commit
6167f9818cd11956484d0222670743f79cb1dbf1
parent
56e882a9147cf8202f1ab5f0dd60ebb9de502850
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-06-03 07:32
gtk4: spinbutton only contains text, not entry

Diffstat

M gtk-3.0/shared.css 2 ++
M gtk-3.0/widgets/button.css 8 ++++++++

2 files changed, 10 insertions, 0 deletions


diff --git a/gtk-3.0/shared.css b/gtk-3.0/shared.css

@@ -31,6 +31,7 @@ selection,
   31    31     color: @text_color;
   32    32 }
   33    33 
   -1    34 spinbutton text,
   34    35 entry {
   35    36     padding: 0.5em;
   36    37     border-width: 1px;
@@ -38,6 +39,7 @@ entry {
   38    39     background-color: @base_color;
   39    40     color: @text_color;
   40    41 }
   -1    42 spinbutton text:disabled,
   41    43 entry:disabled {
   42    44     background: shade(@base_color, 0.94);
   43    45 }

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

@@ -79,6 +79,7 @@ button.link > label {
   79    79 
   80    80 spinbutton:not(.vertical) > button:not(:nth-child(3)),  /* 2 undershoot elements before */
   81    81 spinbutton:not(.vertical) > entry:not(:nth-child(3)),  /* 2 undershoot elements before */
   -1    82 spinbutton:not(.vertical) > text:not(:first-child),
   82    83 .linked:not(.vertical) > button:not(:first-child),
   83    84 .linked:not(.vertical) > entry:not(:first-child),
   84    85 .linked:not(.vertical) > combobox:not(:first-child) button.combo {
@@ -87,6 +88,7 @@ spinbutton:not(.vertical) > entry:not(:nth-child(3)),  /* 2 undershoot elements 
   87    88 }
   88    89 spinbutton:not(.vertical) > button:not(:last-child),
   89    90 spinbutton:not(.vertical) > entry:not(:last-child),
   -1    91 spinbutton:not(.vertical) > text:not(:last-child),
   90    92 .linked:not(.vertical) > button:not(:last-child),
   91    93 .linked:not(.vertical) > entry:not(:last-child),
   92    94 .linked:not(.vertical) > combobox:not(:last-child) button.combo {
@@ -95,12 +97,14 @@ spinbutton:not(.vertical) > entry:not(:last-child),
   95    97 }
   96    98 spinbutton:not(.vertical) > button:not(:last-child),
   97    99 spinbutton:not(.vertical) > entry:not(:last-child),
   -1   100 spinbutton:not(.vertical) > text:not(:last-child),
   98   101 .linked:not(.vertical) > button:not(:last-child),
   99   102 .linked:not(.vertical) > entry:not(:last-child) {
  100   103     border-right-width: 0;
  101   104 }
  102   105 spinbutton:not(.vertical) > :focus + button,
  103   106 spinbutton:not(.vertical) > :focus + entry,
   -1   107 spinbutton:not(.vertical) > :focus + text,
  104   108 .linked:not(.vertical) > :focus + button,
  105   109 .linked:not(.vertical) > :focus + entry {
  106   110     border-left-color: @focus_color;
@@ -108,6 +112,7 @@ spinbutton:not(.vertical) > :focus + entry,
  108   112 
  109   113 spinbutton.vertical > button:not(:nth-child(3)),  /* 2 undershoot elements before */
  110   114 spinbutton.vertical > entry:not(:nth-child(3)),  /* 2 undershoot elements before */
   -1   115 spinbutton.vertical > text:not(:first-child),
  111   116 .linked.vertical > button:not(:first-child),
  112   117 .linked.vertical > entry:not(:first-child),
  113   118 .linked.vertical > combobox:not(:first-child) button.combo {
@@ -116,6 +121,7 @@ spinbutton.vertical > entry:not(:nth-child(3)),  /* 2 undershoot elements before
  116   121 }
  117   122 spinbutton.vertical > button:not(:last-child),
  118   123 spinbutton.vertical > entry:not(:last-child),
   -1   124 spinbutton.vertical > text:not(:last-child),
  119   125 .linked.vertical > button:not(:last-child),
  120   126 .linked.vertical > entry:not(:last-child),
  121   127 .linked.vertical > combobox:not(:last-child) button.combo {
@@ -124,12 +130,14 @@ spinbutton.vertical > entry:not(:last-child),
  124   130 }
  125   131 spinbutton.vertical > button:not(:last-child),
  126   132 spinbutton.vertical > entry:not(:last-child),
   -1   133 spinbutton.vertical > text:not(:last-child),
  127   134 .linked.vertical > button:not(:last-child),
  128   135 .linked.vertical > entry:not(:last-child) {
  129   136     border-bottom-width: 0;
  130   137 }
  131   138 spinbutton.vertical > :focus + button,
  132   139 spinbutton.vertical > :focus + entry,
   -1   140 spinbutton.vertical > :focus + text,
  133   141 .linked.vertical > :focus + button,
  134   142 .linked.vertical > :focus + entry {
  135   143     border-top-color: @focus_color;