Skip to content

Commit f5314f2

Browse files
committed
Gnome-shell v42: Improve notifications appearance
1 parent 08fc8a0 commit f5314f2

File tree

2 files changed

+36
-51
lines changed

2 files changed

+36
-51
lines changed

gnome-shell/v40/_common.scss

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ StScrollBar {
11281128
&:hover > StIcon,
11291129
&:focus > StIcon
11301130
&:active > StIcon{
1131-
color: $red;
1131+
color: $selected_fg_color;
11321132
background: transparent;
11331133
}
11341134
}
@@ -1147,21 +1147,13 @@ StScrollBar {
11471147

11481148
.message-close-button {
11491149
color: $fg_color;
1150-
}
1151-
.message-icon-bin {
1152-
padding: 10px 3px 10px 10px;
1153-
&:rtl { padding: 10px 10px 10px 3px; }
1154-
}
1155-
1156-
.message-icon-bin > StIcon {
1157-
icon-size: 16px;
1158-
-st-icon-style: symbolic;
1159-
}
1160-
1161-
.message-secondary-bin {
1162-
padding: 0 12px;
1150+
&:hover > StIcon,
1151+
&:focus > StIcon
1152+
&:active > StIcon{
1153+
color: $selected_fg_color;
1154+
background: transparent;
11631155
}
1164-
1156+
}
11651157
.message-secondary-bin > .event-time {
11661158
color: darken($fg_color, 15%);
11671159
font-size: 0.7em;
@@ -1183,10 +1175,6 @@ StScrollBar {
11831175
.message-content {
11841176
// color: darken($fg_color,20%);
11851177
padding: 10px;
1186-
*:hover > StIcon,
1187-
*:focus > StIcon, {
1188-
color: $red;
1189-
}
11901178
}
11911179

11921180
.message-media-control {
@@ -1724,12 +1712,16 @@ StScrollBar {
17241712
font-size: 11pt;
17251713
width: 34em;
17261714
margin: 5px;
1727-
border-radius: 7px;
1715+
border-radius: 12px;
17281716
color: $topbar_color;
17291717
background-color: lighten($base_color, 2%);
17301718
border: 1px solid $borders_color;
1731-
box-shadow: 0 1px 4px $borders_color;
1732-
&:hover, &:focus { background-color: lighten($base_color, 4%); }
1719+
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
1720+
&:hover, &:focus {
1721+
background-color: lighten($base_color, 4%);
1722+
border-radius: 12px;
1723+
box-shadow: none;
1724+
}
17331725
*{ color: #fefefe; }
17341726

17351727
.notification-icon { padding: 5px; }
@@ -1739,14 +1731,15 @@ StScrollBar {
17391731
background-color: darken($bg_color, 2%);
17401732
padding-top: 2px;
17411733
spacing: 1px;
1734+
border-radius: 0px 0px 12px 12px;
17421735
}
17431736
.notification-button {
1744-
padding: 5px;
1737+
padding: 7px;
17451738
background-color: transparentize($bg_color, 0.1);
17461739
box-shadow: none;
1747-
&:first-child { border-radius: 0 0 0 3px; }
1748-
&:last-child { border-radius: 0 0 3px 0; }
1749-
&:hover, &focus { background-color: darken($bg_color,2%); color: $selected_bg_color;}
1740+
&:first-child { border-radius: 0 0 0 12px; }
1741+
&:last-child { border-radius: 0 0 12px 0; }
1742+
&:hover, &focus { background-color: $selected_bg_color; color: $selected_fg_color;}
17501743
}
17511744
}
17521745
.summary-source-counter {

gnome-shell/v40/gnome-shell.css

Lines changed: 17 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)