mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
theme: Support accent color
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2715>
This commit is contained in:
parent
0b888fc07f
commit
a93cfb94e4
23 changed files with 90 additions and 94 deletions
|
|
@ -11,7 +11,7 @@
|
|||
&:focus StBin {
|
||||
// Trick due to St limitations. It needs a background to draw a box-shadow
|
||||
background-color: rgba(0, 0, 0, 0.01);
|
||||
box-shadow: inset 0 0 0 2px transparentize($selected_bg_color, .65);
|
||||
box-shadow: inset 0 0 0 2px st-transparentize(-st-accent-color, .65);
|
||||
}
|
||||
|
||||
StIcon {
|
||||
|
|
@ -32,18 +32,18 @@
|
|||
}
|
||||
|
||||
&:checked StIcon {
|
||||
background-color: $selected_bg_color;
|
||||
color: $selected_fg_color;
|
||||
background-color: -st-accent-color;
|
||||
color: -st-accent-fg-color;
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
&:checked:hover StIcon {
|
||||
background-color: lighten($selected_bg_color, 5%);
|
||||
color: lighten($selected_fg_color, 5%);
|
||||
background-color: st-lighten(-st-accent-color, 5%);
|
||||
color: st-lighten(-st-accent-fg-color, 5%);
|
||||
}
|
||||
|
||||
&:checked:active StIcon {
|
||||
background-color: darken($selected_bg_color, 7%);
|
||||
color: darken($selected_fg_color, 7%);
|
||||
background-color: st-darken(-st-accent-color, 7%);
|
||||
color: st-darken(-st-accent-fg-color, 7%);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue