Skip to content

Commit 0612667

Browse files
megaxlots0logs
authored andcommitted
* Fixed button disabled. (#517)
1 parent d56f32f commit 0612667

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

gtk-3.0/scss/widgets/_button.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,19 @@
172172
box-shadow: none;
173173
}
174174

175+
&:insensitive:insensitive {
176+
@if (lightness($button_bg) > 50) {
177+
@include linear-gradient(shade($button_bg, .95));
178+
} @else {
179+
@include linear-gradient(alpha($button_bg, .3));
180+
}
181+
182+
color: mix($bg, $fg, .5);
183+
box-shadow: none;
184+
}
185+
}
186+
187+
&.flat {
175188
&:insensitive:insensitive {
176189
background-color: transparent;
177190
background-image: none;

gtk-3.20/scss/widgets/_button.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,19 @@
320320
box-shadow: none;
321321
}
322322

323+
&:disabled:disabled {
324+
@if (lightness($button_bg) > 50) {
325+
@include linear-gradient(shade($button_bg, .95));
326+
} @else {
327+
@include linear-gradient(alpha($button_bg, .3));
328+
}
329+
330+
color: mix($bg, $fg, .5);
331+
box-shadow: none;
332+
}
333+
}
334+
335+
&.flat {
323336
&:disabled:disabled {
324337
background-color: transparent;
325338
background-image: none;

0 commit comments

Comments
 (0)