Commit graph

362 commits

Author SHA1 Message Date
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
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
771c0e58c1
feat: add error messages to preview demo functions
* allow demo functions to fail if shell returns an error
2022-12-06 19:37:20 +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
tfuxu
dcc7c315e5
feat: rename utils/css.py to utils/css_parser.py and utils/custom_presets.py to utils/preset_downloader.py 2022-12-01 19:29:15 +01:00
Jonathan Lestrelin
976270150d
Parse firefox profiles.ini files to get paths of profiles. (#664)
# Parse firefox profiles.ini files to get paths of profiles

This parses firefox profiles.ini files to get the paths of the profiles
instead of just treating any subdir of the firefox dir as a profile.

This allows supporting profiles without a dot in their name which the
existing glob didn't match which can happen if they are named manually,
as well as profiles configured to be outside of the firefox directory
that were ignored and profiles that are symlinked (by adding a resolve()
on the path before the is_dir()).

There is also an additional try condition to avoid failing for the
remaining profiles if encountering a profile without the
customChrome.css, as it might be installed on some profiles only.

## Changelog

- Fixed theming Firefox profiles that don't have a dot in their name
- Fixed theming Firefox profiles that are outside of the Firefox dir
- Fixed theming Firefox profiles that are symlinks
- Fixed failing to theme remaining profiles after encountering one on
which the firefox-gnome-theme is not present

Please note that I have only tested on non-flatpak Firefox.

Signed-off-by: 0xMRTT <0xMRTT@proton.me>
Co-authored-by: 0xMRTT <0xMRTT@proton.me>
2022-11-30 07:13:57 +01:00
e5dc62cabb feat: bump 0.3.3 and add release notes 2022-11-29 19:23:08 +03:00
Martins Zeltins
f21081a6f5 Grammar fix 2022-11-25 19:01:15 +02:00
dfa96acb7f feat: logout message without logout action 2022-11-24 22:44:23 +03:00
6e4c0c7b79 fix: typos 2022-11-24 20:20:38 +03:00
8612ed1fd0 feat: improve "Details" tab of "About" window 2022-11-21 00:36:04 +03:00
3ee0da09e3 Revert "feat: improve "Details" tab of "About" window"
This reverts commit 2bd0944ed5.
2022-11-21 00:33:32 +03:00
2bd0944ed5 feat: improve "Details" tab of "About" window 2022-11-21 00:32:38 +03:00
5e36436528 feat: 0.3.2 release notes 2022-11-20 22:59:46 +03:00
ed047c1d47 feat: 0.3.2 release notes 2022-11-20 22:46:31 +03:00
ff8b903697 Revert "Revert "feat: update release notes""
This reverts commit c77673b64a.
2022-11-20 22:38:00 +03:00
374de8b968 Revert "Revert "Revert "feat: update release notes"""
This reverts commit c415151eed.
2022-11-20 22:36:28 +03:00
c415151eed Revert "Revert "feat: update release notes""
This reverts commit 1ebd0cbd7b.
2022-11-20 22:34:11 +03:00
1ebd0cbd7b Revert "feat: update release notes"
This reverts commit 85603f0e63.
2022-11-20 22:34:00 +03:00
85603f0e63 feat: update release notes 2022-11-20 21:01:20 +03:00
tfuxu
0fad4da087
feat: more readible exceptions in 'preset' module
* add .close() to file objects
* remove __name__ == '__main__' statement
2022-11-20 17:21:23 +01:00
tfuxu
83ef5db581
fix: save imported presets directly to 'user' repository 2022-11-20 17:12:36 +01:00
u1f98e
fc9b75d543 Fix renaming presets not changing the in file name 2022-11-19 20:11:57 -08:00
u1f98e
09ddffe39e Fix saving and renaming presets 2022-11-19 19:46:55 -08:00
u1f98e
8cdaea82c0 Remove some debug print statements 2022-11-19 19:05:39 -08:00
u1f98e
39cf8a0185 Use preset path instead of names to determine the preset file location 2022-11-19 19:02:16 -08:00
tfuxu
cd0918bef4
ux: add mnemonics to the rest of dialogs 2022-11-11 22:10:00 +01:00
Hari Rana
5edbd1f96c
Improve UI and UX (#648)
## Global description

This improves UX by allowing users to close through dialogs by pressing
Esc. I added mnemonics for the file picker, and set `save` as the
default response.

## Changelog

- Allow Esc shortcut to close dialogs
- Add mnemonics for dialogs
- Set `save` as default response

Signed-off-by: 0xMRTT <0xMRTT@proton.me>
Co-authored-by: tfuxu <73042332+tfuxu@users.noreply.github.com>
Co-authored-by: 0xMRTT <0xMRTT@proton.me>
2022-11-11 22:04:46 +01:00
tfuxu
07ecf60b06
fix: add LOCALE_DIR to constants.py meson config 2022-11-11 01:40:20 +01:00
11dac72d10 revert: bump: 0.3.2
This reverts commit 7ea65952c1.
2022-11-11 00:08:06 +03:00
7ea65952c1 bump: 0.3.2 2022-11-10 01:43:31 +03:00
tfuxu
9f25905130
docs: update source code structure explanation 2022-11-09 22:06:31 +01:00
tfuxu
9c8fa556f2
UX: add new toasts for exceptions in reset_color_scheme
* update toast text in reset_color_scheme and restore_color_scheme
2022-11-05 14:07:19 +01:00
Kian-Meng Ang
0f297aece3 docs: fix typos
Found via `codespell -S po,builddir`.
2022-11-05 09:37:58 +08:00
tfuxu
aa89bd0729 feat: move from cssutils to in-house solution
This commit replaces cssutils module with a GTK CSS "parser" based on regex expressions
2022-10-14 23:25:12 +02:00
tfuxu
e2512db571
Merge branch 'main' into patch-1 2022-10-13 23:36:58 +02:00
tfuxu
aa2b5a9125 feat: add indent to downloaded presets 2022-10-13 20:20:31 +02:00
tfuxu
174486a4c9 fix: change cssutils defaults to fix issues in CSS validation 2022-10-13 17:58:01 +02:00
tfuxu
0607561ff2
Remove to_slug_case function
Signed-off-by: tfuxu <73042332+tfuxu@users.noreply.github.com>
2022-10-11 20:13:45 +00:00
0xMRTT
b0c82c7a08
Merge branch 'main' into fix-rename
Signed-off-by: 0xMRTT <0xMRTT@tuta.io>
2022-10-11 20:06:10 +00:00
tfuxu
281e848ab1
fix: Use different variables for display name and filename 2022-10-11 22:02:32 +02:00
0xMRTT
263dcbfea3
feat: add plugin debug 2022-10-11 19:15:57 +02:00
0xMRTT
0b19a9e5a7
fix: #624 2022-10-11 19:13:53 +02:00
0xMRTT
9b6b87b326
feat: begin adding theme utility 2022-10-11 18:58:42 +02:00
0xMRTT
bcb1f72ba9
fix: remove shell.py because useless 2022-10-11 07:25:06 +02:00
tfuxu
07a8011e52 refactor: change views names to better describe what are they 2022-10-10 22:40:44 +02:00
tfuxu
42a681f8e8 refactor: tidy up some modules 2022-10-10 22:00:07 +02:00
tfuxu
292ea00401 feat: Add copyright notices to modules 2022-10-10 21:52:45 +02:00
tfuxu
9df749df2b refactor: tidy up some modules 2022-10-10 21:45:47 +02:00
tfuxu
16ca8d5a3b refactor: Move utilities from modules/ to utils/ 2022-10-10 21:30:39 +02:00
tfuxu
491942af5e refactor: Move ui Python modules to gradience/ui/ directory 2022-10-10 21:20:35 +02:00
ec2a5088d8 feat: fix odd Libadwaita, GTK 3 and GTK 4 names 2022-10-08 03:27:23 +03:00
35a88f96fe feat: update release notes 2022-10-07 20:14:55 +03:00
fdb32233ee feat: 0.3.1 release notes 2022-10-07 20:00:12 +03:00
0xMRTT
98dee96142
fix: typo errors #590 2022-10-07 18:52:03 +02:00
0xMRTT
12cafc9461
feat: update release notes in the app #590 2022-10-07 18:47:03 +02:00
0xMRTT
fef9b30b23
fix: revert for #614 2022-10-07 18:39:32 +02:00
0xMRTT
4097633823
fix: improve interactivity (not fixed) 2022-10-07 17:48:55 +02:00
0xMRTT
bd0b60730e
fix: remove btn_share #615 2022-10-07 17:36:12 +02:00
e819390b15 feat: add @not-my-segfault (Michal S.) 2022-10-05 22:23:35 +03:00
22afbf02d6 feat: add missing translators 2022-10-05 22:20:19 +03:00
0xMRTT
556fba976b
feat: add logout 2022-10-05 14:30:28 +02:00
e173230820 feat: remove you 2022-10-05 14:59:41 +03:00
11836ef3f3 fix: fix 2022-10-05 14:57:33 +03:00
316e1ea83b feat: replace download-symbolic with system icon 2022-10-05 14:56:09 +03:00
bc77f66e9f feat: sort contributors alphabetically 2022-10-05 14:14:15 +03:00
5ce6b4fa3a feat: add @libreajans (Sabri Ünal) as translator 2022-10-05 13:33:55 +03:00
1ebd44f092 Add @MarongHappy (JungHee Lee) as translator 2022-10-05 13:27:42 +03:00
7b9bb9462e fix: double line 2022-10-05 00:12:12 +03:00
66aa730b12 feat: change categories names and make them translatable 2022-10-05 00:04:56 +03:00
f93bc0ecb4 feat: add all other contributors 2022-10-04 23:59:36 +03:00
57f2480ee5 feat: sort contributors in alphabet order 2022-10-04 22:23:47 +03:00
cadd657ac3 feat: move @ArtyIF to the top 2022-10-04 22:14:18 +03:00
096f2721ac feat: add GradienceTeam/Community contributors
@0xMRTT
@daudix-UFO
@JoshM-Yoru
@tfuxu
@badlydrawnface
@subpop
@arslee07
@lopeztel
@ThatOneCalculator
@mskf1383
@crispyricepc
@TeryVeneno
@zehkira
@cmagnificent
@hericiumvevo
@salarua
@halfmexican
2022-10-04 22:11:42 +03:00
2652206bbc fix: change name of @halfmexican to José Hunter 2022-10-04 21:48:17 +03:00
b2b95be562 fix: add space 2022-10-04 21:42:18 +03:00
657803ff33 feat: add new contributors 2022-10-04 21:39:53 +03:00
ecda55264e feat: update contributors 2022-10-04 21:24:34 +03:00
b2729a7f69 fix: typo 2022-10-04 16:19:36 +03:00
0xMRTT
257591c2d1
fix: preset manager issue while rename 2022-10-03 19:21:48 +02:00
0xMRTT
67c5d7f633
fix: remove unused code
Signed-off-by: 0xMRTT <0xMRTT@tuta.io>
2022-10-03 19:05:55 +02:00
0xMRTT
e1647a13e9
Merge branch 'main' into libsoup 2022-10-03 19:04:51 +02:00
0xMRTT
c8b2895d2f
Merge branch 'main' into add-logout 2022-10-02 21:54:49 +02:00
0xMRTT
654fa0fd9a
feat: add logout 2022-10-02 21:52:30 +02:00
tfuxu
30a5891558 feat: rename PRESET_DIR to presets_dir, and make it more central 2022-10-02 03:57:29 +02:00
tfuxu
badee5681f feat: switch from aiohttp to Libsoup3 2022-10-02 03:55:42 +02:00
tfuxu
7307911923 feat: small style changes in presets window 2022-10-01 20:15:45 +02:00
tfuxu
c0d8f759d3 feat: create tooltip text for some widgets, and make more strings translatable 2022-10-01 18:01:15 +02:00
0xMRTT
9757cba3c2
fix: add header bar backdrop default #552
Signed-off-by: 0xMRTT <0xMRTT@tuta.io>
2022-09-30 21:12:32 +02:00
0xMRTT
d30251faae
fix: typo error
Signed-off-by: 0xMRTT <0xMRTT@tuta.io>
2022-09-30 18:57:06 +02:00
0xMRTT
3d30eba011
fix: typo error 2022-09-30 18:18:27 +02:00
7c38fe3b00 fix: remove those odd tags. files 2022-09-30 00:19:26 +03:00
729f689c7b fix: replace ... with 2022-09-29 21:46:43 +03:00
87e2141743 fix: remove odd "tag." files 2022-09-29 21:12:09 +03:00
0ce2f1230a feat: make all text follow [HIG Writing Style](https://developer.gnome.org/hig/guidelines/writing-style.html)
Translators, I'm sorry ^~^
2022-09-29 21:06:42 +03:00
0xMRTT
26464e489c
fix: update dropdown 2022-09-28 23:10:07 +02:00
0xMRTT
50b0c57dce
Merge branch 'main' into deepsource-transform-760e4251 2022-09-28 17:28:41 +02:00
0xMRTT
b1fbac3c44 fix: @apisu name 2022-09-28 16:25:42 +02:00
0xMRTT
f191f97ba7 feat: add badges 2022-09-28 16:12:20 +02:00
0xMRTT
dd71305a6a fix: revert sort 2022-09-28 15:56:33 +02:00
deepsource-autofix[bot]
a15d9037e5
Format code with black and autopep8
This commit fixes the style issues introduced in 3718d20 according to the output
from black and autopep8.

Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/f066f44b-24a2-4eb4-bca3-62525db0ade7/
2022-09-28 13:50:55 +00:00
0xMRTT
3718d20db0 fix: begin adding a share window feature 2022-09-28 15:50:37 +02:00
0xMRTT
a5b9f8a288 fix: show repo name as subtitle 2022-09-28 15:26:12 +02:00
0xMRTT
ec2f99e05d fix: sort presets 2022-09-28 15:21:20 +02:00
0xMRTT
20398eae8e fix: no pref dialog 2022-09-28 15:02:19 +02:00
deepsource-autofix[bot]
ac7c01cddf
Format code with black and autopep8
This commit fixes the style issues introduced in c1d34d6 according to the output
from black and autopep8.

Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/e09716f7-b874-44c9-9460-9429d37866ca/
2022-09-28 12:46:35 +00:00
0xMRTT
c1d34d62b5 fix: about dialog 2022-09-28 14:46:18 +02:00
0xMRTT
0d5b966856 fix: about dialog 2022-09-28 14:45:17 +02:00
0xMRTT
4bbbfd2d32 fix: about dialog 2022-09-28 14:40:19 +02:00
0xMRTT
133f1afef2 feat: add star icons 2022-09-28 14:18:15 +02:00
0xMRTT
e015401123 feat: add star button 2022-09-28 14:05:32 +02:00
0xMRTT
f767b68e09 fix: string ending error 2022-09-28 07:34:00 +02:00
c6e5546ac5 feat: add lyes saadi as dev 2022-09-27 23:30:49 +03:00
0xMRTT
0e8cd7d356
fix: no pref is modal
Signed-off-by: 0xMRTT <0xMRTT@tuta.io>
2022-09-27 21:23:36 +02:00
deepsource-autofix[bot]
3979808427
Format code with black and autopep8
This commit fixes the style issues introduced in cd8cbc0 according to the output
from black and autopep8.

Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/c8bdcb15-7f89-4ae1-9882-8c3205b91d3d/
2022-09-26 22:02:47 +00:00
0xMRTT
cd8cbc01d7
feat: add status page to preset manager 2022-09-27 00:02:19 +02:00
0xMRTT
3b229a088a
fix: add no preferences window 2022-09-26 23:33:06 +02:00
0xMRTT
f696550a46
fix: add missing import 2022-09-26 23:09:53 +02:00
0xMRTT
1d3dcb31f4
fix: add try for plugin call 2022-09-26 23:08:52 +02:00
0xMRTT
cc0659e29f
fix: remove dead code 2022-09-26 23:03:09 +02:00
0xMRTT
c07a9d534a
Format code with black and autopep8 (#518) 2022-09-26 23:02:01 +02:00
0xMRTT
cbfc250f7a
fix: remove dead code 2022-09-26 22:53:08 +02:00
deepsource-autofix[bot]
efc810e2d8
Format code with black and autopep8
This commit fixes the style issues introduced in 85d3f5b according to the output
from black and autopep8.

Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/61609f10-d9c1-48cc-84b7-22b5d4831637/
2022-09-26 20:49:50 +00:00
0xMRTT
85d3f5b3a7
fix: search dropdown (#406) 2022-09-26 22:49:29 +02:00
0xMRTT
3ef695b8ae
Merge branch 'main' into deepsource-transform-b59b056e 2022-09-26 10:02:23 +02:00
deepsource-autofix[bot]
1f5a1ec66a
Format code with black and autopep8
This commit fixes the style issues introduced in b5df25b according to the output
from black and autopep8.

Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/19e759d8-e6c2-4e6d-9dda-5d3bca3dcc35/
2022-09-26 08:00:05 +00:00
0xMRTT
fc27c94ac8
Merge branch 'main' into welcome-improvs 2022-09-26 09:59:44 +02:00
deepsource-autofix[bot]
a266e86468
Format code with black and autopep8
This commit fixes the style issues introduced in 639653b according to the output
from black and autopep8.

Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/8c7300b2-e800-4010-b18d-f991ebd6aa37/
2022-09-26 07:58:54 +00:00
tfuxu
cba66ede65 chore: slightly clean code inside welcome.py module 2022-09-26 00:16:04 +02:00
tfuxu
80ef245d93 feat: add set_interactive to disallow swipes on some pages 2022-09-25 23:57:50 +02:00
u1f98e
6ab60c0ca0 Fix deleting presets where the file name differs from the preset name 2022-09-25 14:22:55 -07:00
tfuxu
d2d6838b1b fix: use rel_ver instead of version constant 2022-09-25 23:13:44 +02:00
deepsource-autofix[bot]
7fefbb4edb
Format code with black and autopep8
This commit fixes the style issues introduced in a0febef according to the output
from black and autopep8.

Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/314961cb-8d36-495d-8d54-3e13b40e771a/
2022-09-25 20:45:25 +00:00
0xMRTT
a0febef08c
fix: only show welcome one time 2022-09-25 22:45:04 +02:00
tfuxu
b33c27703a remove BADGE_COLORS constant 2022-09-24 21:06:55 +02:00
tfuxu
78000c73ab feat: add f.close() in _download_preset
* convert more print() functions to buglog's
* remove __repl__ in preset.py
2022-09-24 20:53:53 +02:00
tfuxu
f0aec83c21 feat: remove most of the badge colors and use only black and white 2022-09-24 20:51:39 +02:00
tfuxu
b6e9ee9557 feat: add multi-threading to user presets fetching (presets manager) 2022-09-24 20:44:28 +02:00
0xMRTT
bb70ddeda6
Merge branch 'main' into deepsource-transform-2e094b1c 2022-09-23 22:52:12 +02:00
Lyes Saadi
8a3fa04bfe
Breaking translations temporarily to solve a bigger bug 2022-09-23 21:40:52 +02:00
Lyes Saadi
94a4eb495d
Oopsy, wrong variable 2022-09-23 21:31:41 +02:00
Lyes Saadi
f89a1d38fb
Fix another missing mkdir 2022-09-23 21:30:37 +02:00
Lyes Saadi
edc7d0a133
Solve the no such file or directory issue
Signed-off-by: Lyes Saadi <33597258+LyesSaadi@users.noreply.github.com>
2022-09-23 21:18:34 +02:00
deepsource-autofix[bot]
90760c3dcf
Format code with black and autopep8
This commit fixes the style issues introduced in 523d969 according to the output
from black and autopep8.

Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/841afc06-f1ac-4d2d-8811-c885c08cda80/
2022-09-23 17:52:32 +00:00
523d96967c
fix: strings 2022-09-23 19:51:59 +02:00
deepsource-autofix[bot]
db140ab28e
Format code with black and autopep8
This commit fixes the style issues introduced in aa70de8 according to the output
from black and autopep8.

Details: https://deepsource.io/gh/GradienceTeam/Gradience/transform/d4be5e89-e2d5-4806-876e-e19fa04150c9/
2022-09-23 17:41:49 +00:00