tfuxu
10496c3fdb
frontend/widgets: fix a lack of buffer clearing function for a TextView
2023-02-02 02:11:32 +01:00
tfuxu
3d2f16c4e2
frontend/main: rename show_exit_dialog to show_unsaved_dialog
...
* add new `discard` parameter to GradienceSaveDialog
* clean some placeholder functions in main module
2023-01-04 21:00:48 +01:00
tfuxu
4107c60c2b
frontend: move dialogs to external modules
...
* move action helper functions to new `utils/actions` helper module
2023-01-03 19:35:21 +01:00
tfuxu
fa12fa5560
frontend/views: move no_plugin_window to views
...
* directly define some properties in views
* general refactor in some frontend modules
2023-01-03 19:20:21 +01:00
tfuxu
bf341d7b82
frontend/main: use external globals where possible
2023-01-03 17:21:20 +01:00
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
a8f1bc8ab8
frontend: move About Window constructor to an external module
...
* frontend/main: add missing exception variable assignment
2023-01-01 21:15:36 +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
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
db7347cf18
frontend/cli: add more messages in CLI to make it more user-friendly
...
* finish `apply` command
* remove `frontend/settings_schema` module from imports in backend modules
2022-12-18 16:36:25 +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
b36669b40e
frontend/cli: add logic to import command, and finish download command
2022-12-11 18:42:46 +01:00
tfuxu
7f8e3ccc80
backend: convert preset_downloader module to class
...
* add more exception handling to backend/preset_downloader and backend/models/preset modules
2022-12-11 17:53:30 +01:00
tfuxu
24d34296de
backend/globals: move official Gradience preset repositories list to globals module
2022-12-11 12:57:30 +01:00
tfuxu
c74bd9bfe2
backend: allow functions in flatpak_override module to be used without specifying an Adw.ToastOverlay object
2022-12-11 12:53:18 +01:00
tfuxu
22f476f766
backend: create new modules for preset generation utilities
2022-12-08 14:05:38 +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
df73f3d006
misc: make code more readable
2022-12-02 23:37:41 +01:00
tfuxu
5e42501691
rename: change module name from utils.py to common.py
2022-12-02 23:21:55 +01:00
tfuxu
30a9fdb613
move modules to new backend/frontend directories
2022-12-02 22:52:47 +01:00