Skip to content

Commit 8083a96

Browse files
ragazentakhurshid-alam
authored andcommitted
Update xfce4-notifyd specific gtk3 style. Fixes #677.
* Separate #XfceNotifyWindow spesific style * Move #XfceNotifyWindow code to apps/_xfce.scss
1 parent 0b32082 commit 8083a96

4 files changed

Lines changed: 33 additions & 6 deletions

File tree

src/gtk-3.0/scss/apps/_xfce.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,17 @@
2323

2424
.menu { -gtk-image-effect: none; }
2525
}
26+
27+
#XfceNotifyWindow {
28+
background-color: $osd_bg;
29+
color: $osd_fg;
30+
border-radius: $roundness;
31+
border: 1px solid border_normal($osd_bg);
32+
33+
GtkLabel {
34+
&#summary {
35+
font-weight: bold;
36+
}
37+
}
38+
}
2639
}

src/gtk-3.0/scss/widgets/_osd.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
@include exports("osd") {
99
GtkOverlay.osd { background-color: transparent; }
1010

11-
.osd,
12-
#XfceNotifyWindow {
11+
.osd {
1312
&.background {
1413
background-color: alpha($osd_bg, .8);
1514
color: $osd_fg;

src/gtk-3.20/scss/apps/_xfce.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,21 @@
2727
text-shadow: none;
2828
}
2929
}
30+
31+
#XfceNotifyWindow {
32+
.osd {
33+
background-color: $osd_bg;
34+
color: $osd_fg;
35+
border-radius: $roundness;
36+
border: 1px solid border_normal($osd_bg);
37+
}
38+
39+
&.osd {
40+
label {
41+
&#summary {
42+
font-weight: bold;
43+
}
44+
}
45+
}
46+
}
3047
}

src/gtk-3.20/scss/widgets/_osd.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
}
2424
}
2525

26-
button.osd,
27-
#XfceNotifyWindow button {
26+
button.osd {
2827
@include button($osd_bg, $osd_fg);
2928

3029
&.image-button {
@@ -73,8 +72,7 @@
7372
}
7473
}
7574

76-
.osd,
77-
#XfceNotifyWindow {
75+
.osd {
7876
background-color: $osd_bg;
7977
color: $osd_fg;
8078

0 commit comments

Comments
 (0)