Commit Graph

14 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 1cd8cae2d9 paths: fix custom path envs
Specify whole path instead of end
2025-08-16 18:07:29 +10:00
2 * r + 2 * t 386ccf3729 paths: allow configuring via env vars
Closes #39
2025-08-13 16:10:40 +10:00
2 * r + 2 * t 50646cd565 paths: use xdg user paths
Closes #35
2025-08-04 16:48:15 +10:00
2 * r + 2 * t fed8cc5800 theme: add config for progs to theme 2025-08-04 16:43:55 +10:00
Elio Torquet 06a7102490 theme: add template system (#36)
* user template system

* fix when templates dir doesnt exist

Also color -> colour

---------

Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
2025-08-04 15:14:10 +10:00
2 * r + 2 * t b805f8d677 feat: impl recording subcommand 2025-06-14 02:11:10 +10:00
2 * r + 2 * t 796d538b16 feat: impl screenshot command 2025-06-13 00:42:46 +10:00
2 * r + 2 * t a97de9d430 wallpaper: cache smart mode 2025-06-12 21:51:59 +10:00
2 * r + 2 * t c043a14ca2 feat: impl wallpaper 2025-06-12 21:35:05 +10:00
2 * r + 2 * t a53a2568ec scheme: fix not saving atomically
Causes programs which rely on the save file (e.g. the shell) to fail occasionally as they try to read while the cli is writing
2025-06-12 16:49:01 +10:00
2 * r + 2 * t 194826efaa feat: generate dynamic schemes 2025-06-12 15:48:02 +10:00
2 * r + 2 * t 6f7beecdc6 feat: theme discord 2025-06-11 21:42:13 +10:00
2 * r + 2 * t dc855e1b01 internal: refactor scheme
Also use a single file to store scheme data
2025-06-11 17:37:04 +10:00