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 () {
|
empty_state = new Adw.StatusPage () {
|
||||||
title = _("No Media"),
|
title = _("No Media"),
|
||||||
description = _("Drag files here or click the button below"),
|
|
||||||
vexpand = true,
|
vexpand = true,
|
||||||
icon_name = icon_name,
|
icon_name = icon_name,
|
||||||
child = attach_button
|
child = attach_button
|
||||||
|
@ -75,7 +74,8 @@ public class Tooth.AttachmentsPage : ComposerPage {
|
||||||
add_media_action_button = new Gtk.Button() {
|
add_media_action_button = new Gtk.Button() {
|
||||||
icon_name = "tooth-plus-large-symbolic",
|
icon_name = "tooth-plus-large-symbolic",
|
||||||
valign = Gtk.Align.CENTER,
|
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.add_css_class ("flat");
|
||||||
add_media_action_button.clicked.connect(show_file_selector);
|
add_media_action_button.clicked.connect(show_file_selector);
|
||||||
|
|
|
@ -19,6 +19,7 @@ public class Tooth.AttachmentsPageAttachment : Widgets.Attachment.Item {
|
||||||
};
|
};
|
||||||
button.child = pic;
|
button.child = pic;
|
||||||
badge.visible = false;
|
badge.visible = false;
|
||||||
|
alt_btn.tooltip_text = _("Edit Alt Text");
|
||||||
alt_btn.disconnect(alt_btn_clicked_id);
|
alt_btn.disconnect(alt_btn_clicked_id);
|
||||||
alt_btn.clicked.connect(() => {
|
alt_btn.clicked.connect(() => {
|
||||||
create_alt_text_input_window().show();
|
create_alt_text_input_window().show();
|
||||||
|
@ -29,7 +30,8 @@ public class Tooth.AttachmentsPageAttachment : Widgets.Attachment.Item {
|
||||||
var delete_button = new Gtk.Button() {
|
var delete_button = new Gtk.Button() {
|
||||||
icon_name = "tooth-trash-symbolic",
|
icon_name = "tooth-trash-symbolic",
|
||||||
valign = Gtk.Align.CENTER,
|
valign = Gtk.Align.CENTER,
|
||||||
halign = Gtk.Align.CENTER
|
halign = Gtk.Align.CENTER,
|
||||||
|
tooltip_text = _("Remove Attachment")
|
||||||
};
|
};
|
||||||
badge_box.append(delete_button);
|
badge_box.append(delete_button);
|
||||||
delete_button.add_css_class("error");
|
delete_button.add_css_class("error");
|
||||||
|
|
|
@ -96,7 +96,9 @@ public class Tooth.Widgets.Attachment.Item : Adw.Bin {
|
||||||
badge = new Label ("");
|
badge = new Label ("");
|
||||||
badge.add_css_class ("heading");
|
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 ("heading");
|
||||||
alt_btn.add_css_class ("flat");
|
alt_btn.add_css_class ("flat");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue