Commit graph

6 commits

Author SHA1 Message Date
tfuxu
9f9a547634
backend/globals: move plugin dir variables to globals module
* change parent variable naming in about_window to make it similar to dialogs
    * misc refactoring changes
2023-01-03 15:07:41 +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
674848edaa
backend: include backend/theming modules in meson compilation 2022-12-10 14:58:49 +01:00
tfuxu
e834e55b11
backend/models: refactor Preset model object
This commit is the first in a series of commits that will introduce new CLI interface for Gradience. Currently we need to move some parts of code that reside mostly in frontend modules to their new backend modules, and this commit is the beggining of this whole ordeal.

* Refactor Preset model object, in order to make it more readable and to allow `new` function that directly takes new values for properties
* Move presets_dir from models/preset to new backend/globals module
* Create new utils/colors module (will be used in later commits)
* Update all modules that are affected by above changes
2022-12-08 12:43:12 +01:00
tfuxu
a8c83d1935
feat: introduce new backend/logger module
This commit introduces a new logger module and converts any log message that used buglog() to use one of five new functions from Logger class.
2022-12-04 00:00:18 +01:00
tfuxu
30a9fdb613
move modules to new backend/frontend directories 2022-12-02 22:52:47 +01:00