1
0
Fork 0

Update some values.

This commit is contained in:
namedkitten 2020-07-10 20:07:25 +01:00
parent f210199642
commit 8a0a15edda
2 changed files with 7 additions and 4 deletions

View file

@ -110,9 +110,9 @@ pub const BatteryWidget = struct {
if (capacity > 80) { if (capacity > 80) {
power_colour = "green"; power_colour = "green";
} else if (capacity > 60) { } else if (capacity > 70) {
power_colour = "yellow"; power_colour = "yellow";
} else if (capacity > 40) { } else if (capacity > 30) {
power_colour = "orange"; power_colour = "orange";
} else { } else {
power_colour = "red"; power_colour = "red";

View file

@ -169,11 +169,14 @@ pub const WeatherWidget = struct {
var tempColour: []const u8 = "green"; var tempColour: []const u8 = "green";
if (temp >= 20) { if (temp >= 20) {
tempColour = "red"; tempColour = "red";
} else if (temp == 19) { } else if (temp >= 16) {
tempColour = "orange"; tempColour = "orange";
} else if (temp == 18) { } else if (temp >= 12) {
tempColour = "yellow"; tempColour = "yellow";
} else {
tempColour = "green";
} }
var i = Info{ var i = Info{
.name = self.name, .name = self.name,
.full_text = try std.fmt.allocPrint(arenacator, "{} {}{}{} {}", .{ .full_text = try std.fmt.allocPrint(arenacator, "{} {}{}{} {}", .{