Skip to content

Commit

Permalink
Update xfce4-notifyd specific gtk3 style. Fixes #677.
Browse files Browse the repository at this point in the history
* Separate #XfceNotifyWindow spesific style

* Move #XfceNotifyWindow code to apps/_xfce.scss
  • Loading branch information
ragazenta authored and khurshid-alam committed Jun 7, 2018
1 parent 0b32082 commit 8083a96
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 6 deletions.
13 changes: 13 additions & 0 deletions src/gtk-3.0/scss/apps/_xfce.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,17 @@

.menu { -gtk-image-effect: none; }
}

#XfceNotifyWindow {
background-color: $osd_bg;
color: $osd_fg;
border-radius: $roundness;
border: 1px solid border_normal($osd_bg);

GtkLabel {
&#summary {
font-weight: bold;
}
}
}
}
3 changes: 1 addition & 2 deletions src/gtk-3.0/scss/widgets/_osd.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
@include exports("osd") {
GtkOverlay.osd { background-color: transparent; }

.osd,
#XfceNotifyWindow {
.osd {
&.background {
background-color: alpha($osd_bg, .8);
color: $osd_fg;
Expand Down
17 changes: 17 additions & 0 deletions src/gtk-3.20/scss/apps/_xfce.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,21 @@
text-shadow: none;
}
}

#XfceNotifyWindow {
.osd {
background-color: $osd_bg;
color: $osd_fg;
border-radius: $roundness;
border: 1px solid border_normal($osd_bg);
}

&.osd {
label {
&#summary {
font-weight: bold;
}
}
}
}
}
6 changes: 2 additions & 4 deletions src/gtk-3.20/scss/widgets/_osd.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
}
}

button.osd,
#XfceNotifyWindow button {
button.osd {
@include button($osd_bg, $osd_fg);

&.image-button {
Expand Down Expand Up @@ -73,8 +72,7 @@
}
}

.osd,
#XfceNotifyWindow {
.osd {
background-color: $osd_bg;
color: $osd_fg;

Expand Down

0 comments on commit 8083a96

Please sign in to comment.