Commit graph

11 commits

Author SHA1 Message Date
tfuxu
2c5f9925e1
backend/theming: enforce hex format in Monet generated variables
Unless alpha parameter is specified.
2023-01-05 21:07:30 +01:00
tfuxu
d5fa02b2a6
linting: fix a majority of coding errors pointed by pylint 2022-12-27 21:28:58 +01:00
tfuxu
38e790c595
codebase: update some logger messages to utilize new exc option 2022-12-26 22:26:14 +01:00
tfuxu
67fe7edddb
backend/theming: fix get_presets_list function misbehaving with full_list param
Fix get_presets_list function in preset_utils module returning preset list only from first directory when enabled using full_list parameter.
2022-12-25 18:40:03 +01:00
tfuxu
dfb6104e1e
app: improve exception handling, remove duplicate code
* modify `get_presets_list` function from theming/preset_utils module
2022-12-22 01:11:19 +01:00
tfuxu
8f37888d03
backend/utils: add new utility function: argb_to_color_code
This function is supposed to deprecate current `rgba_from_argb` function.

Other changes:
* fix some debug messages using print instead of logging.debug
* add datadir as a constant
2022-12-21 15:44:44 +01:00
tfuxu
d3df5c37da
backend: change the structure of log messages, and move preset listing function to backend
* add ability to name modules in logger object,
* slightly clean PresetDownloader class and return exceptions on error encounters
2022-12-17 18:42:29 +01:00
tfuxu
7c1a29561d
frontend/cli: add rudimentary logic code for apply, download and flatpak_theming commands 2022-12-11 13:23:12 +01:00
tfuxu
527a9dc90f
backend: seperate JSON encoding in Preset module to a new function
* add more checks in new_preset_from_monet function
* return full Preset object instead of dict data
* remove some unused code
2022-12-10 15:21:13 +01:00
tfuxu
e1e244db72
backend/theming: move apply, restore and reset preset functions to backend 2022-12-09 00:12:02 +01:00
tfuxu
22f476f766
backend: create new modules for preset generation utilities 2022-12-08 14:05:38 +01:00