mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
slider: Remove border drawing code add hover style
- remove all the border drawing on sliders since they are unused - listen for hover and add hover style Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6274 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3320>
This commit is contained in:
parent
43596ffca6
commit
6fd0aac864
3 changed files with 22 additions and 61 deletions
|
|
@ -3,25 +3,25 @@
|
|||
$slider_size: $scalable_icon_size;
|
||||
|
||||
.slider {
|
||||
color: if($variant == 'light', $fg_color, darken($fg_color, 9%));
|
||||
|
||||
// slider trough
|
||||
-barlevel-height: 4px;
|
||||
-barlevel-background-color: transparentize($fg_color, 0.8); //background of the trough
|
||||
-barlevel-border-width: 2px;
|
||||
-barlevel-border-color: transparent; // trough border color
|
||||
-barlevel-background-color: transparentize($fg_color, 0.9);
|
||||
// fill style
|
||||
-barlevel-active-background-color: $selected_bg_color;
|
||||
-barlevel-active-border-color: transparent;
|
||||
// overfill style (red in this case)
|
||||
-barlevel-overdrive-color: $destructive_color;
|
||||
-barlevel-overdrive-border-color: transparent; //trough border when red;
|
||||
-barlevel-overdrive-separator-width:1px;
|
||||
// slider handler
|
||||
-slider-handle-radius: $slider_size * 0.5; // half the size of the size
|
||||
-slider-handle-border-width: 0;
|
||||
-slider-handle-border-color: transparent; // because 0 width
|
||||
|
||||
// hc style
|
||||
@if $contrast == 'high' {
|
||||
-barlevel-background-color: transparentize($fg_color, 0.6);
|
||||
}
|
||||
// hc style
|
||||
@if $contrast == 'high' {
|
||||
-barlevel-background-color: transparentize($fg_color, 0.6);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: if($variant == 'light', lighten($fg_color, 7%), $fg_color);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue