feat: more tooltips

This commit is contained in:
Evangelos Paterakis 2023-02-15 21:31:25 +02:00
parent 72c4998ff7
commit cd5ca6375c
No known key found for this signature in database
GPG Key ID: FE5185F095BFC8C9
3 changed files with 8 additions and 4 deletions

View File

@ -61,7 +61,6 @@ public class Tooth.AttachmentsPage : ComposerPage {
empty_state = new Adw.StatusPage () {
title = _("No Media"),
description = _("Drag files here or click the button below"),
vexpand = true,
icon_name = icon_name,
child = attach_button
@ -75,7 +74,8 @@ public class Tooth.AttachmentsPage : ComposerPage {
add_media_action_button = new Gtk.Button() {
icon_name = "tooth-plus-large-symbolic",
valign = Gtk.Align.CENTER,
halign = Gtk.Align.CENTER
halign = Gtk.Align.CENTER,
tooltip_text = _("Add Media")
};
add_media_action_button.add_css_class ("flat");
add_media_action_button.clicked.connect(show_file_selector);

View File

@ -19,6 +19,7 @@ public class Tooth.AttachmentsPageAttachment : Widgets.Attachment.Item {
};
button.child = pic;
badge.visible = false;
alt_btn.tooltip_text = _("Edit Alt Text");
alt_btn.disconnect(alt_btn_clicked_id);
alt_btn.clicked.connect(() => {
create_alt_text_input_window().show();
@ -29,7 +30,8 @@ public class Tooth.AttachmentsPageAttachment : Widgets.Attachment.Item {
var delete_button = new Gtk.Button() {
icon_name = "tooth-trash-symbolic",
valign = Gtk.Align.CENTER,
halign = Gtk.Align.CENTER
halign = Gtk.Align.CENTER,
tooltip_text = _("Remove Attachment")
};
badge_box.append(delete_button);
delete_button.add_css_class("error");

View File

@ -96,7 +96,9 @@ public class Tooth.Widgets.Attachment.Item : Adw.Bin {
badge = new Label ("");
badge.add_css_class ("heading");
alt_btn = new Button.with_label("ALT");
alt_btn = new Button.with_label("ALT") {
tooltip_text = _("View Alt Text")
};
alt_btn.add_css_class ("heading");
alt_btn.add_css_class ("flat");