Update some values.
This commit is contained in:
parent
f210199642
commit
8a0a15edda
|
@ -110,9 +110,9 @@ pub const BatteryWidget = struct {
|
|||
|
||||
if (capacity > 80) {
|
||||
power_colour = "green";
|
||||
} else if (capacity > 60) {
|
||||
} else if (capacity > 70) {
|
||||
power_colour = "yellow";
|
||||
} else if (capacity > 40) {
|
||||
} else if (capacity > 30) {
|
||||
power_colour = "orange";
|
||||
} else {
|
||||
power_colour = "red";
|
||||
|
|
|
@ -169,11 +169,14 @@ pub const WeatherWidget = struct {
|
|||
var tempColour: []const u8 = "green";
|
||||
if (temp >= 20) {
|
||||
tempColour = "red";
|
||||
} else if (temp == 19) {
|
||||
} else if (temp >= 16) {
|
||||
tempColour = "orange";
|
||||
} else if (temp == 18) {
|
||||
} else if (temp >= 12) {
|
||||
tempColour = "yellow";
|
||||
} else {
|
||||
tempColour = "green";
|
||||
}
|
||||
|
||||
var i = Info{
|
||||
.name = self.name,
|
||||
.full_text = try std.fmt.allocPrint(arenacator, "{} {}{}{} {}", .{
|
||||
|
|
Loading…
Reference in a new issue