Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/Styles/Common/_controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
}

// used to show a button is being clicked or is in an "active" state
@mixin control-active-depressed {
@mixin control-active {
background: bg-color(3);
box-shadow:
highlight("bottom"),
inset-shadow("");
background-color: bg-color(3);

&:disabled {
box-shadow:
Expand All @@ -36,7 +36,7 @@
}

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

Expand Down
13 changes: 7 additions & 6 deletions lib/Styles/Gtk/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@ button {
@include control;
@include border-interactive-roundrect;

&:checked, &:active {
@include control-active-depressed;
}

&:hover {
filter: brightness(105%);
&:active,
&:checked {
@include control-active;
}

&:active {
Expand All @@ -41,6 +38,10 @@ button {
&:disabled {
@include control-disabled;
}

&:hover {
filter: brightness(105%);
}
}

// Stopgap since we can't do angled buttons in GtkCSS, and generating all
Expand Down
4 changes: 2 additions & 2 deletions lib/Styles/Gtk/CheckButton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ checkbutton {
}

&:active {
@include control-active-depressed;
@include control-active;
filter: brightness(95%);
}

&:checked {
-gtk-icon-source: -gtk-icontheme("check-checked-symbolic");
@include control-active-checked;
@include control-checked;
}

&:indeterminate {
Expand Down