From 3a5f92ee5fadc1807368b4176a7db07a00c8e0ee Mon Sep 17 00:00:00 2001 From: Torikul Date: Sun, 21 Jul 2024 00:16:15 +0700 Subject: [PATCH] Style --- src/DownloadRow.vala | 5 ++++- src/GabutWindow.vala | 9 +++++++++ src/Preferences.vala | 6 ++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/DownloadRow.vala b/src/DownloadRow.vala index 9676b30..0224127 100644 --- a/src/DownloadRow.vala +++ b/src/DownloadRow.vala @@ -360,6 +360,7 @@ namespace Gabut { var openimage = new Gtk.Button () { focus_on_click = false, + has_frame = false, child = overlay, tooltip_text = _("Open Details") }; @@ -383,7 +384,8 @@ namespace Gabut { }; start_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.active") { - valign = Gtk.Align.CENTER + valign = Gtk.Align.CENTER, + has_frame = false }; start_button.clicked.connect (()=> { action_btn (); @@ -391,6 +393,7 @@ namespace Gabut { var remove_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.clear") { valign = Gtk.Align.CENTER, + has_frame = false, tooltip_text = _("Remove") }; remove_button.clicked.connect (remove_down); diff --git a/src/GabutWindow.vala b/src/GabutWindow.vala index ea65997..40b8afc 100644 --- a/src/GabutWindow.vala +++ b/src/GabutWindow.vala @@ -373,12 +373,14 @@ namespace Gabut { decoration_layout = ":close" }; var menu_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.settings") { + has_frame = false, tooltip_text = _("Settings") }; headerbar.pack_end (menu_button); menu_button.clicked.connect (menuprefernces); var search_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.find") { + has_frame = false, tooltip_text = _("Search") }; headerbar.pack_end (search_button); @@ -395,6 +397,7 @@ namespace Gabut { search_entry.text = ""; }); var host_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.gohome") { + has_frame = false, tooltip_text = _("Remote") }; headerbar.pack_end (host_button); @@ -402,23 +405,27 @@ namespace Gabut { var add_open = new Gtk.MenuButton () { child = new Gtk.Image.from_icon_name ("com.github.gabutakut.gabutdm.insertlink"), direction = Gtk.ArrowType.UP, + has_frame = false, popover = get_openmenu (), tooltip_text = _("Add/Open") }; headerbar.pack_start (add_open); var resumeall_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.active") { + has_frame = false, tooltip_text = _("Start All") }; headerbar.pack_start (resumeall_button); resumeall_button.clicked.connect (start_all); var stopall_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.pause") { + has_frame = false, tooltip_text = _("Pause All") }; headerbar.pack_start (stopall_button); stopall_button.clicked.connect (stop_all); var removeall_button = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.clear") { + has_frame = false, tooltip_text = _("Remove All") }; headerbar.pack_start (removeall_button); @@ -535,6 +542,7 @@ namespace Gabut { var property_button = new Gtk.MenuButton () { child = new Gtk.Image.from_icon_name ("com.github.gabutakut.gabutdm.menu"), direction = Gtk.ArrowType.UP, + has_frame = false, margin_start = 6, tooltip_text = _("Property") }; @@ -578,6 +586,7 @@ namespace Gabut { child = new Gtk.Image.from_icon_name ("com.github.gabutakut.gabutdm.opt"), popover = get_menu (), margin_end = 6, + has_frame = false, tooltip_text = _("Sort by") }; var actionbar = new Gtk.CenterBox () { diff --git a/src/Preferences.vala b/src/Preferences.vala index bd9ea7d..8e2974e 100644 --- a/src/Preferences.vala +++ b/src/Preferences.vala @@ -314,6 +314,7 @@ namespace Gabut { }; var load_tr = new Gtk.Button.from_icon_name ("document-open") { + has_frame = false, tooltip_text = _("Open Text Tracker") }; load_tr.clicked.connect (() => { @@ -335,6 +336,7 @@ namespace Gabut { }); var fformat_tr = new Gtk.Button.from_icon_name ("view-refresh") { + has_frame = false, tooltip_text = _("Fix to Tracker") }; fformat_tr.clicked.connect (() => { @@ -343,6 +345,7 @@ namespace Gabut { }); var clear_tr = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.clear") { + has_frame = false, tooltip_text = _("Clear Text Tracker") }; clear_tr.clicked.connect (() => { @@ -375,6 +378,7 @@ namespace Gabut { }; var load_etr = new Gtk.Button.from_icon_name ("document-open") { + has_frame = false, tooltip_text = _("Open Text Tracker") }; load_etr.clicked.connect (() => { @@ -395,6 +399,7 @@ namespace Gabut { }); }); var fformat_etr = new Gtk.Button.from_icon_name ("view-refresh") { + has_frame = false, tooltip_text = _("Fix to Tracker") }; fformat_etr.clicked.connect (() => { @@ -402,6 +407,7 @@ namespace Gabut { etrackertext.buffer.text = formatclr; }); var clear_etr = new Gtk.Button.from_icon_name ("com.github.gabutakut.gabutdm.clear") { + has_frame = false, tooltip_text = _("Clear Text Tracker") }; clear_etr.clicked.connect (() => {