1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

GTabWidget: Make a custom look for tab buttons.

This commit is contained in:
Andreas Kling 2019-05-05 14:39:37 +02:00
parent 62e7b26406
commit 4e1b36ddf2
5 changed files with 66 additions and 5 deletions

View file

@ -10,6 +10,7 @@ enum class FrameShape { NoFrame, Box, Container, Panel, VerticalLine, Horizontal
class StylePainter {
public:
static void paint_button(Painter&, const Rect&, ButtonStyle, bool pressed, bool hovered = false, bool checked = false, bool enabled = true);
static void paint_tab_button(Painter&, const Rect&, bool active, bool hovered, bool enabled);
static void paint_surface(Painter&, const Rect&, bool paint_vertical_lines = true);
static void paint_frame(Painter&, const Rect&, FrameShape, FrameShadow, int thickness, bool skip_vertical_lines = false);
static void paint_menu_frame(Painter&, const Rect&);