Merge branch 'main' into deepsource-transform-2e094b1c

This commit is contained in:
0xMRTT 2022-09-23 22:52:12 +02:00 committed by GitHub
commit bb70ddeda6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 21 deletions

View file

@ -38,11 +38,11 @@
<releases> <releases>
<release version="0.3.0" date="2022-09-16" type="stable"> <release version="0.3.0" date="2022-09-16" type="stable">
<description> <description>
<p>Gradience 0.3.0 is a major update with many new features and improvements. here is some of them:</p> <p>Gradience 0.3.0 is a major update with many new features and improvements. Here are some of them:</p>
<ul> <ul>
<li>Added plugins support, this allows creating plugins for customizing other apps</li> <li>Added plugins support, this allows the creation of plugins to customize other apps</li>
<li>Added support for custom repos, this allows creating own selection of presets</li> <li>Added support for custom preset repos, this allows users to host a collection of presets on their own infrastructure</li>
<li>Preset Manager performance are significantly enhanced, presets are downloading much faster and app don't freeze on preset removal</li> <li>Preset Manager performance are significantly enhanced, it downloads presets faster and the app doesn't freeze on preset removal</li>
<li>Added search to Preset Manager</li> <li>Added search to Preset Manager</li>
<li>Preset Manager is attached to the main window</li> <li>Preset Manager is attached to the main window</li>
<li>Added Quick Preset Switcher back, with it you can switch presets with less clicks</li> <li>Added Quick Preset Switcher back, with it you can switch presets with less clicks</li>

View file

@ -190,6 +190,9 @@ class GradienceApplication(Adw.Application):
buglog("file") buglog("file")
# keep compatiblity with old presets # keep compatiblity with old presets
if repo.name.endswith(".json"): if repo.name.endswith(".json"):
if not os.path.isdir(os.path.join(PRESET_DIR, "user")):
os.mkdir(os.path.join(PRESET_DIR, "user"))
os.rename(repo, os.path.join( os.rename(repo, os.path.join(
PRESET_DIR, "user", repo.name)) PRESET_DIR, "user", repo.name))

View file

@ -62,12 +62,8 @@ class GradiencePresetWindow(Adw.Window):
custom_presets = {} custom_presets = {}
official_repositories = { official_repositories = {
_( "Official": "https://github.com/GradienceTeam/Community/raw/next/official.json",
"Official" "Curated": "https://github.com/GradienceTeam/Community/raw/next/curated.json",
): "https://github.com/GradienceTeam/Community/raw/next/official.json",
_(
"Curated"
): "https://github.com/GradienceTeam/Community/raw/next/curated.json",
} }
search_results_list = [] search_results_list = []
@ -343,6 +339,9 @@ class GradiencePresetWindow(Adw.Window):
buglog("file") buglog("file")
# keep compatiblity with old presets # keep compatiblity with old presets
if repo.name.endswith(".json"): if repo.name.endswith(".json"):
if not os.path.isdir(os.path.join(preset_directory, "user")):
os.mkdir(os.path.join(preset_directory, "user"))
os.rename(repo, os.path.join( os.rename(repo, os.path.join(
preset_directory, "user", repo.name)) preset_directory, "user", repo.name))

View file

@ -132,8 +132,8 @@ class GradienceMainWindow(Adw.ApplicationWindow):
self.monet_pref_group.set_title(_("Monet Engine")) self.monet_pref_group.set_title(_("Monet Engine"))
self.monet_pref_group.set_description( self.monet_pref_group.set_description(
_( _(
"Monet is an engine that generates a Material Design 3 \ "Monet is an engine that generates a Material Design 3 "
palette from an image's color." "palette from an image's color."
) )
) )
@ -269,10 +269,10 @@ class GradienceMainWindow(Adw.ApplicationWindow):
palette_pref_group.set_title(_("Palette Colors")) palette_pref_group.set_title(_("Palette Colors"))
palette_pref_group.set_description( palette_pref_group.set_description(
_( _(
'Named palette colors used by some applications. Default \ "Named palette colors used by some applications. Default "
colors follow the \ "colors follow the "
<a href="https://developer.gnome.org/hig/reference/palette.html">\ '<a href="https://developer.gnome.org/hig/reference/palette.html">'
GNOME Human Interface Guidelines</a>.' "GNOME Human Interface Guidelines</a>."
) )
) )
for color in settings_schema["palette"]: for color in settings_schema["palette"]:

View file

@ -14,8 +14,8 @@ msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-09-23 17:01+0000\n" "POT-Creation-Date: 2022-09-23 17:01+0000\n"
"PO-Revision-Date: 2022-09-23 20:06+0300\n" "PO-Revision-Date: 2022-09-23 19:19+0000\n"
"Last-Translator: David Lapshin <ddaudix@gmail.com>\n" "Last-Translator: Daudix UFO <ddaudix@gmail.com>\n"
"Language-Team: Russian <https://hosted.weblate.org/projects/GradienceTeam/" "Language-Team: Russian <https://hosted.weblate.org/projects/GradienceTeam/"
"gradience/ru/>\n" "gradience/ru/>\n"
"Language: ru\n" "Language: ru\n"
@ -25,7 +25,7 @@ msgstr ""
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" "%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n"
"%100>=11 && n%100<=14)? 2 : 3);\n" "%100>=11 && n%100<=14)? 2 : 3);\n"
"X-Generator: Poedit 3.1.1\n" "X-Generator: Weblate 4.14.1\n"
#: data/com.github.GradienceTeam.Gradience.desktop.in.in:3 #: data/com.github.GradienceTeam.Gradience.desktop.in.in:3
#: data/com.github.GradienceTeam.Gradience.appdata.xml.in.in:5 #: data/com.github.GradienceTeam.Gradience.appdata.xml.in.in:5
@ -409,7 +409,7 @@ msgstr "Кастомизация устаревших приложений"
#: data/ui/welcome.blp:114 #: data/ui/welcome.blp:114
msgid "Install adw-gtk3 theme for legacy apps theming" msgid "Install adw-gtk3 theme for legacy apps theming"
msgstr "Установить тему adw-gtk3 для кастомизации устаревших приложений." msgstr "Установить тему adw-gtk3 для кастомизации устаревших приложений"
#: data/ui/welcome.blp:119 #: data/ui/welcome.blp:119
msgid "System configuration" msgid "System configuration"
@ -682,7 +682,7 @@ msgstr ""
" <li>Ветка `Main` теперь защищена при помощи GitHub branch " " <li>Ветка `Main` теперь защищена при помощи GitHub branch "
"protection. Разработка будет идти в ветке `next`</li>\n" "protection. Разработка будет идти в ветке `next`</li>\n"
" </ul>\n" " </ul>\n"
" " " "
#: gradience/main.py:990 #: gradience/main.py:990
msgid "" msgid ""