mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 02:54:54 +03:00
d353c7c3d6
I want to try an MS Office 97 "CoolBar" inspired look for my toolbars. This is only the painting support, we still need hover events to implement the actual effect.
17 lines
274 B
C++
17 lines
274 B
C++
#pragma once
|
|
|
|
class Painter;
|
|
class Rect;
|
|
|
|
enum class GButtonStyle { Normal, CoolBar };
|
|
|
|
class GStyle {
|
|
public:
|
|
static GStyle& the();
|
|
|
|
void paint_button(Painter& painter, const Rect& rect, GButtonStyle, bool pressed, bool hovered = false);
|
|
|
|
private:
|
|
GStyle();
|
|
};
|