mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-23 04:06:13 +03:00
gtk: use symbolic icon for tab close
On my system (xorg Ubuntu 24.04, Adwaita:dark theme) tab close icon was red while in all other applications was more discrete. With adding `-symbolic` to the icon name now looks like all other application.
This commit is contained in:
@ -64,7 +64,7 @@ pub fn init(self: *Tab, window: *Window, parent_: ?*CoreSurface) !void {
|
|||||||
self.label_text = label_text;
|
self.label_text = label_text;
|
||||||
|
|
||||||
// Build the close button for the tab
|
// Build the close button for the tab
|
||||||
const label_close_widget = c.gtk_button_new_from_icon_name("window-close");
|
const label_close_widget = c.gtk_button_new_from_icon_name("window-close-symbolic");
|
||||||
const label_close: *c.GtkButton = @ptrCast(label_close_widget);
|
const label_close: *c.GtkButton = @ptrCast(label_close_widget);
|
||||||
c.gtk_button_set_has_frame(label_close, 0);
|
c.gtk_button_set_has_frame(label_close, 0);
|
||||||
c.gtk_box_append(label_box, label_close_widget);
|
c.gtk_box_append(label_box, label_close_widget);
|
||||||
|
Reference in New Issue
Block a user