feat: Tweak preferences a bit

This commit is contained in:
Daudix_UFO 2023-05-12 22:13:34 +03:00
parent c83ebef74c
commit fc5614a048
No known key found for this signature in database
GPG Key ID: 93ECF15D3053D81C
2 changed files with 7 additions and 5 deletions

View File

@ -21,8 +21,8 @@ template Preferences : Adw.PreferencesWindow {
}
Adw.ActionRow {
title: _("Use text view");
subtitle: _("If the text view is used, you will lose formatting");
title: _("Use plain text for output");
subtitle: _("The plain text without formatting will be used");
activatable-widget: use_text_view_switch;
Gtk.Switch use_text_view_switch {
valign: center;

View File

@ -77,7 +77,9 @@ class BavarderProvider:
popover.set_child(vbox)
about_button = Gtk.MenuButton()
about_button.set_icon_name("info-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
@ -89,8 +91,8 @@ class BavarderProvider:
def how_to_get_a_token(self):
about_button = Gtk.Button()
about_button.set_icon_name("info-symbolic")
about_button.set_tooltip_text("How to get a token?")
about_button.set_icon_name("dialog-information-symbolic")
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)