add toast for apply

This commit is contained in:
0xMRTT 2022-08-10 17:09:29 +02:00
parent 90b1ca1231
commit e7c0abaffe
No known key found for this signature in database
GPG key ID: AC9E06BF3DECB6FB

View file

@ -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":