diff --git a/Gtkmm3_Mac/res/style.css b/Gtkmm3_Mac/res/style.css index 78b8438..31599ed 100644 --- a/Gtkmm3_Mac/res/style.css +++ b/Gtkmm3_Mac/res/style.css @@ -18,7 +18,7 @@ label{ button{ color:white; - border: 0; + border: 0px; } button:hover{ diff --git a/Gtkmm3_Mac/src/ui/MyDock.cc b/Gtkmm3_Mac/src/ui/MyDock.cc index c28d687..7514692 100644 --- a/Gtkmm3_Mac/src/ui/MyDock.cc +++ b/Gtkmm3_Mac/src/ui/MyDock.cc @@ -27,6 +27,7 @@ MyDock::MyDock(BaseObjectType *cobject, const Glib::RefPtr &ref_Gl ref_builder->get_widget("btngame24", btngame24); ref_builder->get_widget("btncalc", btncalc); ref_builder->get_widget("btnmine", btnmine); + ref_builder->get_widget("btntrash", btntrash); ref_builder->get_widget("separator_start", separator_start); ref_builder->get_widget("separator_2", separator_2); ref_builder->get_widget("separator_3", separator_3); @@ -136,6 +137,14 @@ MyDock::MyDock(BaseObjectType *cobject, const Glib::RefPtr &ref_Gl { apply_style(*childrens1[i]); } + + // Apply style for icons box + auto childrens2 = icons_box->get_children(); + for(int i = 0; i < childrens2.size(); i++) + { + apply_style(*childrens2[i]); + } + apply_style(*btntrash); // apps_grid->foreach(sigc::mem_fun(*this,&MyDock::apply_style)); // Set dock position diff --git a/Gtkmm3_Mac/src/ui/MyDock.hh b/Gtkmm3_Mac/src/ui/MyDock.hh index 29b53d9..8a1b01a 100644 --- a/Gtkmm3_Mac/src/ui/MyDock.hh +++ b/Gtkmm3_Mac/src/ui/MyDock.hh @@ -25,8 +25,8 @@ public: private: // Child widgets Gtk::Box *finder_box, *dock_box, *dock_left, *dock_right, *dock_bottom, *icons_box; - Gtk::Button *btnlaunch, *btndraw, *btnfiles, *btncalc, - *btngame, *btnedit, *btnimage, *btnset, *btngame24, *btnmine; + Gtk::Button *btnlaunch, *btndraw, *btnfiles, *btncalc, *btngame, + *btnedit, *btnimage, *btnset, *btngame24, *btnmine, *btntrash; Gtk::Separator *separator_start, *separator_2, *separator_3, *separator_end; Gtk::ScrolledWindow *icons_sw;