feat: A few UI tweaks

This commit is contained in:
Daudix_UFO 2023-05-13 01:37:13 +03:00
parent 8d5c55723d
commit 7a64aa9b71
No known key found for this signature in database
GPG Key ID: 93ECF15D3053D81C
3 changed files with 9 additions and 3 deletions

View File

@ -17,7 +17,7 @@
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Ask</property>
<property name="title" translatable="yes" context="shortcut window">Imagine</property>
<property name="action-name">app.ask</property>
</object>
</child>

View File

@ -55,6 +55,8 @@ template ImaginerWindow : Adw.ApplicationWindow {
}
Adw.PreferencesGroup {
margin-start: 24;
margin-end: 24;
Adw.EntryRow prompt {
title: _("Prompt");
@ -68,6 +70,8 @@ template ImaginerWindow : Adw.ApplicationWindow {
Adw.PreferencesGroup {
title: _("Options");
margin-start: 24;
margin-end: 24;
Adw.ActionRow {
title: _("Save Location");

View File

@ -79,7 +79,9 @@ class ImaginerProvider:
popover.set_child(vbox)
about_button = Gtk.MenuButton()
about_button.set_icon_name("dialog-information-symbolic")
about_button.set_icon_name("help-about-symbolic")
about_button.set_tooltip_text("About provider")
about_button.add_css_class("flat")
about_button.set_valign(Gtk.Align.CENTER)
about_button.set_popover(popover)
return about_button
@ -92,7 +94,7 @@ class ImaginerProvider:
def how_to_get_a_token(self):
about_button = Gtk.Button()
about_button.set_icon_name("dialog-information-symbolic")
about_button.set_tooltip_text("How to get a token?")
about_button.set_tooltip_text("How to get a token")
about_button.add_css_class("flat")
about_button.set_valign(Gtk.Align.CENTER)
about_button.connect("clicked", self.open_documentation)