Skip to content

Commit 46dc7bc

Browse files
authored
Styles/Controls: make active/checked .text-button flat (#856)
1 parent f405703 commit 46dc7bc

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

lib/Styles/Common/_controls.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
}
2323

2424
// used to show a button is being clicked or is in an "active" state
25-
@mixin control-active-depressed {
25+
@mixin control-active {
26+
background: bg-color(3);
2627
box-shadow:
2728
highlight("bottom"),
2829
inset-shadow("");
29-
background-color: bg-color(3);
3030

3131
&:disabled {
3232
box-shadow:
@@ -36,7 +36,7 @@
3636
}
3737

3838
// used to show a check or radio button is "active"
39-
@mixin control-active-checked {
39+
@mixin control-checked {
4040
color: $SILVER_100;
4141
background-color: #{'@accent_color'};
4242

lib/Styles/Gtk/Button.scss

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@ button {
2626
@include control;
2727
@include border-interactive-roundrect;
2828

29-
&:checked, &:active {
30-
@include control-active-depressed;
31-
}
32-
33-
&:hover {
34-
filter: brightness(105%);
29+
&:active,
30+
&:checked {
31+
@include control-active;
3532
}
3633

3734
&:active {
@@ -41,6 +38,10 @@ button {
4138
&:disabled {
4239
@include control-disabled;
4340
}
41+
42+
&:hover {
43+
filter: brightness(105%);
44+
}
4445
}
4546

4647
// Stopgap since we can't do angled buttons in GtkCSS, and generating all

lib/Styles/Gtk/CheckButton.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ checkbutton {
1313
}
1414

1515
&:active {
16-
@include control-active-depressed;
16+
@include control-active;
1717
filter: brightness(95%);
1818
}
1919

2020
&:checked {
2121
-gtk-icon-source: -gtk-icontheme("check-checked-symbolic");
22-
@include control-active-checked;
22+
@include control-checked;
2323
}
2424

2525
&:indeterminate {

0 commit comments

Comments
 (0)