Commit graph

4175 commits

Author SHA1 Message Date
db124a200a
Refactor shell theming module (#806)
## Description

This PR refactors a few operations to make the code handle edge cases
efficiently with marginal performance improvements.

## Type of change

- [ ] Bugfix (Change which fixes an issue)
- [ ] New feature (Change which adds new functionality)
- [x] Enhancement (Change which slightly improves existing code)
- [ ] Breaking change (This change will introduce incompatibility with
existing functionality)

## Changelog <!-- This is optional, but highly appreciated. -->

- Stores the comma separated string representation of valid versions for
later use in raising exceptions.
- Uses tuple for `async_data` in `ShellTheme` since its members are
immutable.
- Uses tuple decomposition to assign theme variant and preset from
`async_data` later.
- Replaces `Gio.File.make_directory_with_parents` with Python's builtin
`os.makedirs` with `exist_ok` as True to implicitly create directories
when nonexistent.
- Instead of relying on `KeyError`s when accessing dictionary values,
the `get` method is used to supply a default value.
- When a key might exist in one dictionary, the `get` method (which may
return `None`) is coupled with the nullish `or` operator to use the
value that is not `None`.
- Uses predefined `main_source` attribute as argument to the
`_compile_sass` function.
- Uses the walrus operator to scope a template match to the condition
when it is not `None`.
- Removes unnecessary implicit `.close()`s on file handles when using
context managers.

## Testing

- [x] I have tested my changes and verified that they work as expected
<!-- Make sure you did this step before marking your PR as ready for
merge. -->

### How to test the changes

<!-- Optional, it can speed up review process if you provide the
information on how to test your changes. -->
Just run `./local.sh`
2023-08-16 23:34:51 +02:00
tfuxu
7d2c082b30
Update UI definitions to Blueprint 0.8.0 syntax (#807)
Updates Blueprint UI definitions to 0.8.0 syntax, to get rid off those deprecation warnings.
2023-08-16 19:48:27 +00:00
tfuxu
0028a1599c
Merge branch 'main' into blueprint-update 2023-08-16 19:40:41 +00:00
tfuxu
f234ac39e6
Merge branch 'main' into refactor-shell 2023-08-16 17:21:54 +00:00
Philip Goto
2751d85759
translate: translated using Weblate (Dutch)
Currently translated at 93.9% (280 of 298 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/nl/
2023-08-16 09:53:25 +02:00
1d96348fde
feat: Update dependencies
Prepare for beta re-tag
2023-08-16 01:07:04 +03:00
tfuxu
50e38bc198
chore: update UI definitions to Blueprint 0.8.0 syntax
* update `blueprint-compiler` in release Flatpak manifest to 0.10.0
2023-08-15 23:58:35 +02:00
2482446faa Revert "feat: use adw 1.4 widgets"
This reverts commit f9069c28fc.
2023-08-15 23:30:23 +02:00
f9069c28fc feat: use adw 1.4 widgets 2023-08-15 22:33:53 +02:00
0c5947ec43 fix: indent lol 2023-08-15 22:11:07 +02:00
be6f252c5c feat: set legacy theme to adw-gtk3 2023-08-15 22:10:03 +02:00
dd09facffe fix: cons in Quick Settings items not using foreground color for accent-colored elements 2023-08-15 21:53:11 +02:00
da37b65d60
Merge branch 'main' into refactor-shell 2023-08-15 21:45:17 +02:00
1e596c6def fix: background theming in QS 2023-08-15 21:27:16 +02:00
28ea9fa92a feat: move plugins to submodules 2023-08-15 21:10:36 +02:00
Himadri Bhattacharjee
eafe746b66 fix: use predefined attribuite for main SCSS theme source 2023-08-15 09:22:48 +05:30
Himadri Bhattacharjee
dd82ace409 fix: dict is not callable 2023-08-15 08:35:48 +05:30
Himadri Bhattacharjee
925b9931d2 refactor 2023-08-15 08:29:54 +05:30
32614c5434
Update README.md
Signed-off-by: David Lapshin <ddaudix@gmail.com>
2023-08-13 07:03:12 +03:00
Said Isazada
ef7f7a3880
translate: translated using Weblate (Azerbaijani)
Currently translated at 6.3% (19 of 298 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/az/
2023-08-08 02:45:46 +02:00
Said Isazada
4265f7678c
translate: added translation using Weblate (Azerbaijani) 2023-08-08 00:18:08 +02:00
Jiri Grönroos
8c1f282138
translate: translated using Weblate (Finnish)
Currently translated at 74.1% (221 of 298 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/fi/
2023-07-25 19:05:47 +02:00
e5871a08f7
Update README.md
Signed-off-by: David Lapshin <ddaudix@gmail.com>
2023-07-23 23:41:34 +03:00
97d8797369
Update README.md
Signed-off-by: David Lapshin <ddaudix@gmail.com>
2023-07-23 23:41:13 +03:00
e885346516
Update README.md
Signed-off-by: David Lapshin <ddaudix@gmail.com>
2023-07-23 23:39:53 +03:00
ab2b7fbec6
Update README.md
Signed-off-by: David Lapshin <ddaudix@gmail.com>
2023-07-23 23:39:32 +03:00
26b02d006e
feat: Use new GitHub warning syntax
Signed-off-by: David Lapshin <ddaudix@gmail.com>
2023-07-23 23:38:38 +03:00
Vitor Henrique
7e27a9fa1c
translate: translated using Weblate (Portuguese (Brazil))
Currently translated at 79.1% (236 of 298 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/pt_BR/
2023-07-20 02:08:40 +02:00
1ab4e87440
feat: Update text 2023-07-13 21:51:32 +03:00
5182992e01 sub: update 2023-07-13 14:25:21 +02:00
46f71614d3 git: add plugins sub 2023-07-13 14:21:33 +02:00
c90c7ea2f5 fix: remove plugins 2023-07-13 14:21:33 +02:00
94a8863dfc bump: sub commit 2023-07-13 14:21:33 +02:00
f2a656daea git: add plugins sub 2023-07-13 14:21:33 +02:00
yangyangdaji
36b91fe6db
translate: translated using Weblate (Romanian)
Currently translated at 56.7% (169 of 298 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ro/
2023-07-13 04:27:40 +02:00
yangyangdaji
c8448337f9
translate: translated using Weblate (Indonesian)
Currently translated at 29.1% (87 of 298 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/id/
2023-07-13 04:27:40 +02:00
yangyangdaji
f52a4be713
translate: translated using Weblate (Korean)
Currently translated at 56.3% (168 of 298 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/ko/
2023-07-13 04:27:40 +02:00
yangyangdaji
c099c2b179
translate: translated using Weblate (Finnish)
Currently translated at 62.7% (187 of 298 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/fi/
2023-07-13 04:27:39 +02:00
yangyangdaji
b45546400e
translate: translated using Weblate (Croatian)
Currently translated at 68.4% (204 of 298 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/hr/
2023-07-13 04:27:39 +02:00
yangyangdaji
995bd59c06
translate: translated using Weblate (Italian)
Currently translated at 65.4% (195 of 298 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/it/
2023-07-13 04:27:39 +02:00
yangyangdaji
7d921ca5af
translate: translated using Weblate (Polish)
Currently translated at 68.1% (203 of 298 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/pl/
2023-07-13 04:27:38 +02:00
yangyangdaji
041d1524cd
translate: translated using Weblate (Spanish)
Currently translated at 68.4% (204 of 298 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/es/
2023-07-13 04:27:38 +02:00
yangyangdaji
1a4dca7608
translate: translated using Weblate (Dutch)
Currently translated at 93.6% (279 of 298 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/nl/
2023-07-13 04:27:38 +02:00
yangyangdaji
a6825076a8
translate: translated using Weblate (Portuguese (Brazil))
Currently translated at 72.4% (216 of 298 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/pt_BR/
2023-07-13 04:27:37 +02:00
Vitor Henrique
dc0f2d8fce
translate: translated using Weblate (Portuguese (Brazil))
Currently translated at 72.4% (216 of 298 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/pt_BR/
2023-07-13 04:27:37 +02:00
faedf58331
docs: Replace -origin with -nightly 2023-07-13 03:42:54 +03:00
ac6aa9cbe7
docs: Install nightly from origin remote 2023-07-13 03:37:47 +03:00
a473183f2c
docs: Specify that it's a Flatpak remote 2023-07-13 03:34:54 +03:00
aca2acdbef
docs: Improve nightly guide 2023-07-13 03:33:49 +03:00
889beb3a77
fix: nightly repo guide
Signed-off-by: 0xMRTT <0xMRTT@proton.me>
2023-07-13 01:01:37 +02:00