- commit
- bc39970dbcd2af8a4f6e1f129f130efd79cb6a37
- parent
- eacfd4734fba86bfe298c32bd8196a551f5d2bda
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2022-06-23 08:16
alternative switch style
Diffstat
| M | gtk-3.0/widgets/button.css | 22 | ++++++++++++++-------- |
1 files changed, 14 insertions, 8 deletions
diff --git a/gtk-3.0/widgets/button.css b/gtk-3.0/widgets/button.css
@@ -1,5 +1,4 @@ 1 1 button,2 -1 switch slider,3 2 scale slider { 4 3 border-radius: 3px; 5 4 padding: 0.5em; @@ -18,8 +17,6 @@ button.flat { 18 17 19 18 button:hover, 20 19 button:focus,21 -1 switch:hover slider,22 -1 switch:focus slider,23 20 scale:hover slider, 24 21 scale:focus slider { 25 22 background-image: linear-gradient(to bottom, @@ -45,7 +42,6 @@ button:checked { 45 42 } 46 43 47 44 button:disabled,48 -1 switch:disabled slider,49 45 scale:disabled slider { 50 46 background: @bg_color; 51 47 color: @fg_color; @@ -152,8 +148,9 @@ combobox button { 152 148 153 149 switch { 154 150 border-width: 1px;155 -1 font-weight: bold;156 -1 border-radius: 3px;-1 151 border-radius: 1000px; -1 152 background-color: @base_color; -1 153 color: @text_color; 157 154 } 158 155 159 156 switch:checked { @@ -162,6 +159,15 @@ switch:checked { 162 159 } 163 160 164 161 switch slider {165 -1 margin: -1px;166 -1 padding: 0;-1 162 margin: 0.4em; -1 163 min-width: 1em; -1 164 min-height: 1em; -1 165 border-radius: 50%; -1 166 background: currentColor; -1 167 } -1 168 -1 169 /* hide on/off icons */ -1 170 switch image, -1 171 switch image:disabled:disabled { -1 172 color: transparent; 167 173 }