Commit Graph

19 Commits

Author SHA1 Message Date
Kalagmitan b00c601d0a refactor: enforce stricter type hints (#91)
LSP was screaming at me so I decided to just address it to get it off my
screen.

+ Fixed the type hints
:= Modified and added type hints for certain functions and variables in
most of the files in the utils/ folder (and some in the subcommands/
folder) for clarity and so pyright's type checker wouldn't cry.
:+ To resolve certain type issues, I had to add a bit more tiny
additional code such as, additional checks if a variable is None, a tiny
class in utils/material/generator.py to resolve the constructor usage
mismatch between what the DynamicScheme accepts and what the code
actually passes, and etc.
- Renamed certain functions and variables for clarity and also for some
to not collide with pre-existing definitions from well-known library
imports.
+ PIL has reorganized their code a bit, so the code is made to reflect
their new definitions.
= Reorganized the single import statement for "colourfulness" in
utils/wallpaper.py to be close to the top.
(I think that's it)

Side Effects?:
Everything should work the same as no logic change was done whatsover
(unless we consider the added if statements for type checking as a logic
change). I've tested it, everything seems to be in urdir.
2026-03-15 22:56:05 +11:00
2 * r + 2 * t 6e711ec289 fix: dynamic scheme import <3.0.0 compat 2026-03-03 01:04:33 +11:00
Soramane 011989e3ca fix: dynamic scheme import 2026-02-18 11:18:15 +11:00
2 * r + 2 * t d890f7c3af feat: add dynamic hard flavour
Someone requested idk who tho
2026-02-15 00:24:14 +11:00
2 * r + 2 * t fe8adde6c1 fix: compat for python-materialyoucolor < 3.0.0 2026-02-14 23:22:30 +11:00
2 * r + 2 * t bdc5f91009 fix: xxx_paletteKeyColor rename in myc 3.0.0
Fixes caelestia-dots/shell#1112
2026-02-10 21:33:19 +11:00
2 * r + 2 * t d727836cc9 theme: better qt theming
Switch to Darkly for default QT style
Use qt5ct-kde and qt6ct-kde
2025-08-15 15:53:39 +10:00
2 * r + 2 * t 500e801481 internal: lazy import stuff
Lazy import material generators
2025-06-24 23:30:28 +10:00
2 * r + 2 * t 2d05515b56 scheme: reduce chroma for neutral variant 2025-06-24 00:19:16 +10:00
2 * r + 2 * t 82f98a4f6a [!B] colours: better colours
Also remove multiple dynamic flavours
Add extended material (success colours)
2025-06-24 00:11:20 +10:00
2 * r + 2 * t dbfb925694 score: fix for low contrast wallpapers 2025-06-23 20:58:48 +10:00
2 * r + 2 * t 3416178ad4 wallpaper: fix print command 2025-06-17 13:29:25 +10:00
2 * r + 2 * t 8d86facd2f material: fix colour generation
score needs to take a string path
2025-06-15 16:16:49 +10:00
2 * r + 2 * t ec4bd7826a internal: fix file perms 2025-06-13 14:39:33 +10:00
2 * r + 2 * t 558a086bcd scheme: ensure enough colours 2025-06-12 21:57:09 +10:00
2 * r + 2 * t dc4b6733bf material: better mono scheme 2025-06-12 16:28:12 +10:00
2 * r + 2 * t bb2eec1d67 material: tone down chroma boost 2025-06-12 16:02:08 +10:00
2 * r + 2 * t 672ef4a2d9 scheme: impl random + fix single schemes 2025-06-12 16:00:43 +10:00
2 * r + 2 * t 194826efaa feat: generate dynamic schemes 2025-06-12 15:48:02 +10:00