From 5f01c1c49de23a3d35bfa91e0e9bd66e75cac8f9 Mon Sep 17 00:00:00 2001 From: vesp Date: Tue, 30 Dec 2025 23:32:41 +0100 Subject: [PATCH] Replace send button text with play icon --- src/main-window.ui | 26 ++++++++++++-------------- src/request_tab_widget.py | 3 ++- src/window.py | 4 +--- 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/src/main-window.ui b/src/main-window.ui index f8d99b1..b89f71c 100644 --- a/src/main-window.ui +++ b/src/main-window.ui @@ -66,20 +66,6 @@ - - - - - Save Current Request - 12 - 12 - 12 - - - - @@ -96,6 +82,18 @@ False False + + + + document-save-symbolic + Save Current Request (Ctrl+S) + + + + + diff --git a/src/request_tab_widget.py b/src/request_tab_widget.py index cdc2775..33c9d07 100644 --- a/src/request_tab_widget.py +++ b/src/request_tab_widget.py @@ -96,7 +96,8 @@ class RequestTabWidget(Gtk.Box): self.url_box.append(self.url_entry) # Send Button - self.send_button = Gtk.Button(label="Send") + self.send_button = Gtk.Button(icon_name="media-playback-start-symbolic") + self.send_button.set_tooltip_text("Send Request") self.send_button.add_css_class("suggested-action") self.url_box.append(self.send_button) diff --git a/src/window.py b/src/window.py index 064ea2a..91b7064 100644 --- a/src/window.py +++ b/src/window.py @@ -40,6 +40,7 @@ class RosterWindow(Adw.ApplicationWindow): __gtype_name__ = 'RosterWindow' # Top bar widgets + save_request_button = Gtk.Template.Child() new_request_button = Gtk.Template.Child() tab_view = Gtk.Template.Child() tab_bar = Gtk.Template.Child() @@ -50,7 +51,6 @@ class RosterWindow(Adw.ApplicationWindow): # Sidebar widgets projects_listbox = Gtk.Template.Child() add_project_button = Gtk.Template.Child() - save_request_button = Gtk.Template.Child() # History (hidden but kept for compatibility) history_listbox = Gtk.Template.Child() @@ -425,14 +425,12 @@ class RosterWindow(Adw.ApplicationWindow): # Disable send button during request widget.send_button.set_sensitive(False) - widget.send_button.set_label("Sending...") # Execute async def callback(response, error, user_data): """Callback runs on main thread.""" # Re-enable send button widget.send_button.set_sensitive(True) - widget.send_button.set_label("Send") # Update tab with response if response: