LiquidGUI [1.1.0.1]

- Added support for minimum and maximum temperatures.
- Corrected typo in Calibri font name.
- UI tweaks.
This commit is contained in:
2024-07-13 21:30:28 +01:00
parent 5fab490885
commit 11b812cd37
5 changed files with 50 additions and 16 deletions
+20
View File
@@ -0,0 +1,20 @@
class MinMaxCurrent:
def __init__(self):
self.min = 0
self.max = 0
self.cur = 0
def builder(self, _cur: int, _unit: str):
self.cur = _cur
if 0 in [self.max, self.min]:
self.max = _cur
self.min = _cur
if self.cur > self.max:
self.max = _cur
if self.cur < self.min:
self.min = _cur
return f"Current: {self.cur}{_unit}\n(Min: {self.min}{_unit} / Max: {self.max}{_unit})"