Launcher: Let's use CoolBar style buttons in here for now.

This will be helpful for testing the hover events.
This commit is contained in:
Andreas Kling 2019-02-20 09:33:59 +01:00
parent d353c7c3d6
commit af7eb5c89c
Notes: sideshowbarker 2024-07-19 15:40:00 +09:00

View File

@ -38,6 +38,7 @@ public:
: GButton(parent) : GButton(parent)
, m_executable_path(exec_path) , m_executable_path(exec_path)
{ {
set_button_style(GButtonStyle::CoolBar);
set_icon(GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, icon_path, { 32, 32 })); set_icon(GraphicsBitmap::load_from_file(GraphicsBitmap::Format::RGBA32, icon_path, { 32, 32 }));
resize(50, 50); resize(50, 50);
on_click = [this] (GButton&) { on_click = [this] (GButton&) {