feat: more tooltips
This commit is contained in:
parent
72c4998ff7
commit
cd5ca6375c
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue