Commit graph

2842 commits

Author SHA1 Message Date
tfuxu
8d224634f5
Use preset_path instead of building path from preset's name and repo (#658)
The repo refactor unfortunately reintroduced the above bug, certain
preset names (like "Classic" and "classic-light.json", or "Kate" and
"kate-light.json") that did not match the actual file paths from the
downloaded files would result in being unable to apply or delete them.
To fix this, Presets should only load and remember the path they were
loaded from, rather than building one each time with the preset and repo
name.

The preset and repo name can still be used when creating a new file from
a resource or from scratch, but after that the path should be used to
ensure we have the right file.
2022-11-20 17:37:00 +01: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
tfuxu
df5a074911
Merge branch 'main' into main
Signed-off-by: tfuxu <73042332+tfuxu@users.noreply.github.com>
2022-11-20 14:22:12 +01:00
Gradience Bot
d0031cf96b ci: generate .pot file 2022-11-20 12:26:04 +00:00
Hosted Weblate
2f719d0991
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/
2022-11-20 13:14:24 +01:00
Gradience Bot
5b44fc7d96 ci: generate .pot file 2022-11-20 12:14:19 +00:00
u1f98e
fc9b75d543 Fix renaming presets not changing the in file name 2022-11-19 20:11:57 -08:00
u1f98e
fada8a40c6 Merge branch 'main' of https://github.com/u1f98e/Gradience 2022-11-19 19:47:38 -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
Anonymous
adfb8fb8e8
translate: translated using Weblate (Turkish)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/tr/
2022-11-20 03:47:43 +01:00
Gradience Bot
b3f2c01e95 ci: generate .pot file 2022-11-20 01:20:53 +00:00
Hosted Weblate
ff39dbc480
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/
2022-11-20 01:50:24 +01:00
Gradience Bot
40dc7ff571 ci: generate .pot file 2022-11-20 00:50:19 +00:00
Sabri Ünal
da9d183a5c
translate: translated using Weblate (Turkish)
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/tr/
2022-11-19 20:48:33 +01:00
Sabri Ünal
493789990f
translate: translated using Weblate (Turkish)
Currently translated at 93.0% (227 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/tr/
2022-11-19 18:47:54 +01:00
Anonymous
36fd46de08
translate: translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/zh_Hans/
2022-11-19 14:48:09 +01:00
Anonymous
1f34ce3998
translate: translated using Weblate (Dutch)
Currently translated at 65.5% (160 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/nl/
2022-11-19 14:48:09 +01:00
Hosted Weblate
614176de5a
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/
2022-11-19 13:14:34 +01:00
Gradience Bot
5912d2b12f ci: generate .pot file 2022-11-19 12:14:28 +00:00
yangyangdaji
9f0e5d9fa9
translate: translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (244 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/zh_Hans/
2022-11-19 12:47:55 +01:00
Philip Goto
12b954cfb0
translate: translated using Weblate (Dutch)
Currently translated at 65.5% (160 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/nl/
2022-11-19 12:47:54 +01:00
yangyangdaji
c3414b0579
translate: translated using Weblate (Chinese (Simplified))
Currently translated at 93.0% (227 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/zh_Hans/
2022-11-19 09:47:53 +01:00
Hosted Weblate
93bb2456a5
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/
2022-11-19 01:47:48 +01:00
Gradience Bot
a5bbe4bcc8 ci: generate .pot file 2022-11-19 00:47:43 +00:00
Hosted Weblate
00f0b68ae3
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/
2022-11-18 15:51:26 +01:00
Gradience Bot
901627ad5d ci: generate .pot file 2022-11-18 14:51:21 +00:00
770b51cb41
Update translation.yml
Signed-off-by: David Lapshin <ddaudix@gmail.com>
2022-11-18 17:50:50 +03:00
Anonymous
58c536eb6c
translate: translated using Weblate (Ukrainian)
Currently translated at 0.8% (2 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/uk/
2022-11-18 15:48:13 +01:00
Anonymous
ef1c37a653
translate: translated using Weblate (Croatian)
Currently translated at 91.3% (223 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/hr/
2022-11-18 15:48:13 +01:00
Anonymous
2f46d02375
translate: translated using Weblate (Dutch)
Currently translated at 63.1% (154 of 244 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/nl/
2022-11-18 15:48:13 +01:00
Hosted Weblate
b87ef4e63a
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/
2022-11-18 15:46:51 +01:00
Gradience Bot
1ea42d5fcc ci: generate .pot file 2022-11-18 14:46:45 +00:00
fb77024e72
Update translation.yml
Signed-off-by: David Lapshin <ddaudix@gmail.com>
2022-11-18 17:46:06 +03:00
Philip Goto
18a7008269
translate: translated using Weblate (Dutch)
Currently translated at 69.1% (168 of 243 strings)

Translation: Gradience/Gradience
Translate-URL: https://hosted.weblate.org/projects/GradienceTeam/gradience/nl/
2022-11-16 18:47:07 +01:00
dependabot[bot]
8bb9d3f4d9
build(deps): bump actions/dependency-review-action from 2 to 3 (#655)
Bumps
[actions/dependency-review-action](https://github.com/actions/dependency-review-action)
from 2 to 3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/dependency-review-action/releases">actions/dependency-review-action's
releases</a>.</em></p>
<blockquote>
<h2>3.0.0</h2>
<h2>Breaking Changes</h2>
<p>By default the action now expects <a
href="https://spdx.org/licenses/">SPDX-compliant licenses</a>
everywhere. If you were previously using license names in the allow or
deny lists make sure they're valid!</p>
<h2>What's Changed</h2>
<h3>Support for external configuration files</h3>
<p>You can now specify a <a
href="https://github.com/actions/dependency-review-action/#configuration-file">configuration
file external to your repository</a>. This allows organizations to have
a single configuration file for all their repos.</p>
<h3>Broader license support</h3>
<p>We've added support for a much broader set of project licenses by
using GitHub's <a
href="https://docs.github.com/en/rest/licenses">Licenses API</a>.</p>
<h3>SPDX Compliance</h3>
<p>All of our license-related code now expects <a
href="https://spdx.org/licenses/">SPDX-compliant licenses or
expressions</a>. This allows us to standardize on a license naming
scheme that already supports <code>OR</code>/<code>AND</code>
expressions.</p>
<h3>Disable individual checks</h3>
<p>You can now use the boolean options <code>license-check</code> and
<code>vulnerability-check</code> to disable either one of the checks.
More information in <a
href="https://github.com/actions/dependency-review-action/#configuration-options">our
configuration options</a>.</p>
<h2>Thanks</h2>
<p>Contributors for this release include:</p>
<ul>
<li><a
href="https://github.com/cnagadya"><code>@​cnagadya</code></a></li>
<li><a
href="https://github.com/courtneycl"><code>@​courtneycl</code></a></li>
<li><a
href="https://github.com/ericcornelissen"><code>@​ericcornelissen</code></a></li>
<li><a
href="https://github.com/elireisman"><code>@​elireisman</code></a></li>
<li><a href="https://github.com/hmaurer"><code>@​hmaurer</code></a></li>
</ul>
<p>Thanks everyone!
<strong>Full Changelog</strong>: <a
href="https://github.com/actions/dependency-review-action/compare/v2...v3.0.0">https://github.com/actions/dependency-review-action/compare/v2...v3.0.0</a></p>
<h2>2.5.1</h2>
<p>Adding some quality-of-life improvements to the local development
experience. You can now pass a flag to the <code>scripts/scan_pr</code>
script using the <code>-c/--config-file</code> flags to use an external
configuration file:</p>
<p>Example:</p>
<pre><code> scripts/scan_pr
https://github.com/actions/dependency-review-action/pull/294
</code></pre>
<h2>2.5.0</h2>
<p>Fallback on GitHub Licenses API data for missing Dependency Review
API Licenses. This should improve our license coverage.</p>
<h2>2.4.1</h2>
<p>This patch release fixes the bugs below:</p>
<ul>
<li>Display the dependency name instead of the manifest name in the
detailed list of dependents.</li>
<li>Fix an issue where undefined GHSAs would remove filter out all
changes.</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="30d5821115"><code>30d5821</code></a>
Bumping version number</li>
<li><a
href="6e42c3395a"><code>6e42c33</code></a>
Remove defaults from the recently added fields.</li>
<li><a
href="a3074cd699"><code>a3074cd</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/actions/dependency-review-action/issues/327">#327</a>
from actions/adding-extra-options</li>
<li><a
href="51a29d6960"><code>51a29d6</code></a>
Updating action.yml to include <code>*-check</code> config</li>
<li><a
href="235a221cf4"><code>235a221</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/actions/dependency-review-action/issues/324">#324</a>
from actions/readme-update</li>
<li><a
href="9b3a7f61dd"><code>9b3a7f6</code></a>
Minor README tweaks.</li>
<li><a
href="a4761312ac"><code>a476131</code></a>
Add <code>pull_request</code> to the list of events that don't need
refs.</li>
<li><a
href="28c7c8c314"><code>28c7c8c</code></a>
Set the correct default for license-check in README.</li>
<li><a
href="9da0fd4871"><code>9da0fd4</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/actions/dependency-review-action/issues/325">#325</a>
from actions/dependabot/npm_and_yarn/eslint-plugin-je...</li>
<li><a
href="fe45fd6645"><code>fe45fd6</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/actions/dependency-review-action/issues/326">#326</a>
from actions/dependabot/npm_and_yarn/esbuild-register...</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/dependency-review-action/compare/v2...v3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/dependency-review-action&package-manager=github_actions&previous-version=2&new-version=3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-14 20:44:29 +01: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
5fb9df60dd
feat: update local.sh 2022-11-11 01:46:07 +01:00
tfuxu
e7975d79a2
meson: remove depracation warnings in newer Meson versions 2022-11-11 01:42:00 +01:00
tfuxu
07ecf60b06
fix: add LOCALE_DIR to constants.py meson config 2022-11-11 01:40:20 +01:00
87da4f9fb0 bump: 0.3.2 2022-11-11 00:10:01 +03:00
11dac72d10 revert: bump: 0.3.2
This reverts commit 7ea65952c1.
2022-11-11 00:08:06 +03:00
b7de1af87f
Update pypi-dependencies.json (#649)
This is an auto-generated PR with the generation of
`pypi-dependencies.json`.
2022-11-10 21:17:51 +02:00
AdwCustomizer
154afdda40 ci: update Flatpak pypi dependencies 2022-11-10 19:16:51 +00:00
5413ddf3f0 feat: improve AppStream metadata 2022-11-10 05:16:43 +03:00
777c1e599b feat: 0.3.2 release notes 2022-11-10 05:08:18 +03:00
7ea65952c1 bump: 0.3.2 2022-11-10 01:43:31 +03:00