Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

Tags: GradienceTeam/Gradience

Tags

0.8.0-beta1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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`

0.4.1-patch1

Verified

This commit was signed with the committer’s verified signature.
chore: update some paths to contain information about 0.4.1 release

0.4.1

Verified

This commit was signed with the committer’s verified signature.
weblate Weblate (bot)
translate: update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/

0.4.0

Verified

This commit was signed with the committer’s verified signature.
weblate Weblate (bot)
translate: update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/

0.3.3

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
feat: fix name

0.3.2

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
feat: update release notes (#659)

# 0.3.2 release notes

Description of what changed in this release

## Changelog

- Added 0.3.2 release notes

## Screenshot

If applicable

0.3.1

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
ci: generate .pot file

0.3.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: preset directory issues (#494)

Written on github's editor, and not tested yet 😅 !

0.2.2

Verified

This commit was signed with the committer’s verified signature. The key has expired.
0xMRTT 0xMRTT
fix: disable plugins

0.2.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
release: 0.2.1 (#296)

Please tag 0.2.1 afterward.