mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-10-04 08:47:54 +00:00
add toast for apply
This commit is contained in:
parent
90b1ca1231
commit
e7c0abaffe
1 changed files with 2 additions and 1 deletions
|
@ -393,7 +393,7 @@ class AdwcustomizerApplication(Adw.Application):
|
|||
}
|
||||
file.write(json.dumps(object_to_write, indent=4))
|
||||
self.clear_dirty()
|
||||
self.toast_overlay.add_toast(Adw.Toast(title=_("Scheme set successfully!")))
|
||||
self.toast_overlay.add_toast(Adw.Toast(title=_("Scheme successfully saved!")))
|
||||
|
||||
def apply_color_scheme(self, widget, response):
|
||||
if response == "apply":
|
||||
|
@ -417,6 +417,7 @@ class AdwcustomizerApplication(Adw.Application):
|
|||
os.path.join(gtk3_dir, "gtk.css"), "w", encoding="utf-8"
|
||||
) as file:
|
||||
file.write(gtk3_css)
|
||||
self.toast_overlay.add_toast(Adw.Toast(title=_("Scheme set successfully!")))
|
||||
|
||||
def reset_color_scheme(self, widget, response):
|
||||
if response == "reset":
|
||||
|
|
Loading…
Reference in a new issue