diff --git a/Gtk4_Reset/CMakeLists.txt b/Gtk4_Reset/CMakeLists.txt index 003658f..3a20c76 100644 --- a/Gtk4_Reset/CMakeLists.txt +++ b/Gtk4_Reset/CMakeLists.txt @@ -128,6 +128,8 @@ set(RESOURCE_LIST icons/scalable/status/rectangle-dark.svg icons/scalable/status/calcapp.svg icons/scalable/status/calcapp_running.svg + icons/scalable/status/header_close.svg + icons/scalable/status/header_minimize.svg icons/scalable/status/mines_app.svg icons/scalable/status/mines_app_running.svg icons/scalable/status/media-app.svg diff --git a/Gtk4_Reset/res/icons/scalable/status/header_close.svg b/Gtk4_Reset/res/icons/scalable/status/header_close.svg new file mode 100644 index 0000000..46ff888 --- /dev/null +++ b/Gtk4_Reset/res/icons/scalable/status/header_close.svg @@ -0,0 +1,95 @@ + + + + + + + + Gnome Symbolic Icon Theme + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + + + + diff --git a/Gtk4_Reset/res/icons/scalable/status/header_minimize.svg b/Gtk4_Reset/res/icons/scalable/status/header_minimize.svg new file mode 100644 index 0000000..8075cf4 --- /dev/null +++ b/Gtk4_Reset/res/icons/scalable/status/header_minimize.svg @@ -0,0 +1,137 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + diff --git a/Gtk4_Reset/src/ui/MyTitleBar.cpp b/Gtk4_Reset/src/ui/MyTitleBar.cpp index 4ce01be..556987b 100644 --- a/Gtk4_Reset/src/ui/MyTitleBar.cpp +++ b/Gtk4_Reset/src/ui/MyTitleBar.cpp @@ -38,14 +38,14 @@ static void my_titlebar_init(MyTitleBar *self) // Add a close button // self->btn_close = gtk_button_new_with_label("\u00d7"); - self->btn_close = gtk_button_new_from_icon_name("window-close-symbolic"); + self->btn_close = gtk_button_new_from_icon_name("header_close"); gtk_widget_set_css_classes(self->btn_close, NULL); gtk_widget_add_css_class(self->btn_close, "ctrl_btn"); gtk_widget_add_css_class(self->btn_close, "close"); gtk_header_bar_pack_start(GTK_HEADER_BAR(self->header), self->btn_close); // Add a minimize button - self->btn_mini = gtk_button_new_from_icon_name("window-minimize-symbolic"); + self->btn_mini = gtk_button_new_from_icon_name("header_minimize"); gtk_widget_set_css_classes(self->btn_mini, NULL); gtk_widget_add_css_class(self->btn_mini, "ctrl_btn"); gtk_header_bar_pack_start(GTK_HEADER_BAR(self->header), self->btn_mini);