feat: A few UI tweaks
This commit is contained in:
parent
8d5c55723d
commit
7a64aa9b71
|
@ -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>
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user