big upgrades to upgrade system

This commit is contained in:
2025-10-05 11:11:54 -07:00
parent 0edb4b50d2
commit 537bdf1ad7
20 changed files with 3310 additions and 97 deletions

6
app/pylocal/util.py Normal file
View File

@@ -0,0 +1,6 @@
def hex_to_rgb(hex: str):
hex = hex.lstrip("#")
return tuple(int(hex[i:i+2], 16) for i in (0, 2, 4))
def rgb_to_hex(r: int, g: int, b: int):
return f"#{int(r):0>2x}{int(g):0>2x}{int(b):0>2x}"