feat: changed text, removed style.css

This commit is contained in:
David Lapshin 2022-08-25 16:28:38 +03:00
parent e354d8b5f6
commit b40bcfb08c
8 changed files with 13 additions and 35 deletions

View file

@ -54,7 +54,7 @@ class GradienceExplorePresetRow(Adw.ActionRow):
download_preset(to_slug_case(self.name), self.url)
except Exception:
self.toast_overlay.add_toast(
Adw.Toast(title=_("Scheme could not be downloaded!"))
Adw.Toast(title=_("Preset could not be downloaded"))
)
else:
self.app.load_preset_from_file(os.path.join(
@ -65,7 +65,7 @@ class GradienceExplorePresetRow(Adw.ActionRow):
))
self.toast_overlay.add_toast(
Adw.Toast(title=_("Scheme successfully downloaded!"))
Adw.Toast(title=_("Preset downloaded"))
)
buglog("Apply and download compeleted")
@ -76,11 +76,11 @@ class GradienceExplorePresetRow(Adw.ActionRow):
download_preset(to_slug_case(self.name), self.url)
except Exception:
self.toast_overlay.add_toast(
Adw.Toast(title=_("Scheme could not be downloaded!"))
Adw.Toast(title=_("Preset could not be downloaded"))
)
else:
self.toast_overlay.add_toast(
Adw.Toast(title=_("Scheme successfully downloaded!"))
Adw.Toast(title=_("Preset downloaded"))
)
self.win.reload_pref_group()
buglog("Download compeleted")

View file

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/com/github/GradienceTeam/Gradience">
<file>style.css</file>
<file>presets/adwaita.json</file>
<file>presets/adwaita-dark.json</file>
<file>presets/pretty-purple.json</file>

View file

@ -511,7 +511,7 @@ class GradienceApplication(Adw.Application):
file.write(json.dumps(object_to_write, indent=4))
self.clear_dirty()
self.win.toast_overlay.add_toast(
Adw.Toast(title=_("Scheme successfully saved!"))
Adw.Toast(title=_("Preset saved"))
)
def apply_color_scheme(self, widget, response):
@ -575,7 +575,7 @@ class GradienceApplication(Adw.Application):
) as file:
file.write(gtk3_css)
self.win.toast_overlay.add_toast(
Adw.Toast(title=_("Scheme set successfully!"))
Adw.Toast(title=_("Preset set sucessfully"))
)
def reset_color_scheme(self, widget, response):
@ -608,7 +608,7 @@ class GradienceApplication(Adw.Application):
except Exception:
pass
self.win.toast_overlay.add_toast(
Adw.Toast(title=_("Reset successfully!")))
Adw.Toast(title=_("Preset reseted")))
def show_about_window(self, *_args):
about = Adw.AboutWindow(

View file

@ -114,6 +114,6 @@ class GradiencePresetRow(Adw.ActionRow):
file.write(json.dumps(object_to_write, indent=4))
self.app.clear_dirty()
self.toast_overlay.add_toast(
Adw.Toast(title=_("Scheme successfully renamed!"))
Adw.Toast(title=_("Preset renamed"))
)
self.old_name = self.name

View file

@ -71,7 +71,7 @@ class GradiencePresetWindow(Adw.Window):
self.connect_signals()
self.delete_toast = Adw.Toast(title=_("Scheme successfully deleted!"))
self.delete_toast = Adw.Toast(title=_("Preset removed"))
# self.delete_toast.set_action_name("on_undo_button_clicked")
self.delete_preset = True
self.delete_toast.set_button_label(_("Undo"))
@ -120,7 +120,7 @@ class GradiencePresetWindow(Adw.Window):
)
else:
self.toast_overlay.add_toast(
Adw.Toast(title=_("Succesfuly deleted preset"))
Adw.Toast(title=_("Preset removed"))
)
finally:
self.reload_pref_group()
@ -166,7 +166,7 @@ class GradiencePresetWindow(Adw.Window):
preset_file
))
self.toast_overlay.add_toast(
Adw.Toast(title=_("Succesfuly imported preset"))
Adw.Toast(title=_("Preset imported"))
)
else:
self.toast_overlay.add_toast(Adw.Toast(

View file

@ -1,21 +0,0 @@
/*
* Change the look of Adwaita, with ease
* Copyright (C) 2022 Gradience Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
**/
.custom-css-view {
padding: 12px;
}

View file

@ -131,7 +131,7 @@ menu main-menu {
menu preview-menu {
section {
item {
label: _("Try Adwaita Demo");
label: _("Adwaita Demo");
action: "app.show_adwaita_demo";
}
item {

View file

@ -245,7 +245,7 @@ class GradienceMainWindow(Adw.ApplicationWindow):
)
if not self.first_apply:
self.toast_overlay.add_toast(
Adw.Toast(title=_("Palette generated with success!"))
Adw.Toast(title=_("Palette generated"))
)
else:
self.toast_overlay.add_toast(