Skip to content

Commit 173e779

Browse files
authored
Add style for cloudy weather (#127)
1 parent 515376f commit 173e779

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

data/Application.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,23 @@ image:not(.weather-icon):dir(rtl) {
8989
0 1px 0 alpha(black, 0.4);
9090
}
9191

92+
.cloudy {
93+
background-color: @SILVER_700;
94+
background-image:
95+
linear-gradient(
96+
to bottom,
97+
alpha(white, 0),
98+
alpha(white, 0.3)
99+
);
100+
color: #fff;
101+
text-shadow:
102+
0 2px 4px alpha(@SILVER_900, 0.5),
103+
0 1px 0 alpha(@SILVER_900, 0.7);
104+
-gtk-icon-shadow:
105+
0 2px 4px alpha(@SILVER_900, 0.5),
106+
0 1px 0 alpha(@SILVER_900, 0.7);
107+
}
108+
92109
.showers {
93110
background-color: #68758e;
94111
background-image:

data/nimbus.metainfo.xml.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
<description>
5454
<p>Now with more info!</p>
5555
<ul>
56+
<li>Gray and cold looking when it's cloudy out ☁️</li>
5657
<li>See Wind, Visiblity, and Pressure thanks to @alexkdeveloper</li>
5758
<li>Get location in a privacy-respecting way</li>
5859
<li>Russian translation, thanks to @lenemter</li>

src/MainWindow.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ public class MainWindow : Gtk.ApplicationWindow {
144144
case "weather-few-clouds-night-symbolic":
145145
css_classes = {"night", "background", "csd"};
146146
break;
147-
case "weather-few-clouds-symbolic":
148147
case "weather-overcast-symbolic":
148+
css_classes = {"cloudy", "background", "csd"};
149149
case "weather-showers-symbolic":
150150
case "weather-showers-scattered-symbolic":
151151
css_classes = {"showers", "background", "csd"};

0 commit comments

Comments
 (0)