Skip to content

Commit ff98d44

Browse files
megaxkhurshid-alam
authored andcommitted
[Gtk-3.20] Redecorate osd toolbar & fix volume slider. Fixes #463
1 parent 03bb8b3 commit ff98d44

2 files changed

Lines changed: 21 additions & 29 deletions

File tree

gtk-3.20/scss/widgets/_osd.scss

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,25 @@
1818
}
1919
}
2020

21+
// stand-alone OSD toolbars
22+
toolbar.osd {
23+
-GtkToolbar-button-relief: normal;
24+
25+
padding: $spacing;
26+
border: 1px solid border_normal($osd_bg);
27+
border-radius: $roundness;
28+
background-color: $osd_bg;
29+
background-image: none;
30+
color: $osd_fg;
31+
32+
separator { color: shade($osd_bg, ($contrast + .1)); }
33+
34+
&.left,
35+
&.right,
36+
&.top,
37+
&.bottom { border-radius: 0; } // positional classes for `attached` osd toolbars
38+
}
39+
2140
.osd {
2241
background-color: $osd_bg;
2342
color: $osd_fg;
@@ -34,20 +53,6 @@
3453

3554
entry { @include entry($osd_base, $osd_text_color, $osd_borders_color); }
3655

37-
38-
toolbar {
39-
-GtkToolbar-button-relief: normal;
40-
41-
padding: $spacing;
42-
border: 1px solid border_normal($osd_bg);
43-
border-radius: $roundness;
44-
background-color: $osd_bg;
45-
background-image: none;
46-
color: $osd_fg;
47-
48-
separator { color: shade($osd_bg, ($contrast + .1)); }
49-
}
50-
5156
/* used by gnome-settings-daemon's media-keys OSD */
5257
trough { background-color: shade($osd_bg, .8); }
5358

@@ -61,7 +66,7 @@
6166
&:disabled { @include linear-gradient(shade($osd_bg, .9)); }
6267
}
6368

64-
trough {
69+
trough {
6570
border-color: shade($osd_bg, .8);
6671
background-color: shade($osd_bg, 1.08);
6772
background-image: none;

gtk-3.20/scss/widgets/_progress.scss

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,7 @@
147147

148148
min-height: 10px;
149149
min-width: 10px;
150-
151-
&.horizontal {
152-
padding: 6px 0;
153-
154-
trough { padding: 0 7px; }
155-
highlight, fill { margin: 0 -7px; }
156-
}
157-
158-
&.vertical {
159-
padding: 0 6px;
160-
161-
trough { padding: 7px 0; }
162-
highlight, fill { margin: -7px 0; }
163-
}
150+
padding: $spacing ($spacing * 2);
164151

165152
// The slider is inside the trough, negative margin to make it bigger
166153
slider {

0 commit comments

Comments
 (0)