scheme: better light/dark theme detection

This commit is contained in:
2 * r + 2 * t
2025-01-30 22:44:37 +11:00
parent 6119208935
commit 55da502880
6 changed files with 14 additions and 50 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/python3
import sys
from colorsys import rgb_to_hls
if __name__ == "__main__":
for arg in sys.argv[1:]:
print(rgb_to_hls(*tuple(int(arg[i:i+2], 16) for i in (0, 2, 4)))[1])