mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
StylePainter: Move progress bar painting from GProgressBar to here
We need to be able to paint progress bars without having a widget. :^)
This commit is contained in:
parent
f9b8a18fae
commit
b777f740a4
3 changed files with 36 additions and 24 deletions
|
@ -30,6 +30,7 @@ public:
|
|||
static void paint_surface(Painter&, const Rect&, bool paint_vertical_lines = true, bool paint_top_line = true);
|
||||
static void paint_frame(Painter&, const Rect&, FrameShape, FrameShadow, int thickness, bool skip_vertical_lines = false);
|
||||
static void paint_window_frame(Painter&, const Rect&);
|
||||
static void paint_progress_bar(Painter&, const Rect&, int min, int max, int value, const StringView& text = {});
|
||||
|
||||
static Color hover_highlight_color() { return Color::from_rgb(0xe6e5e2); }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue