From d51d95b66dee211ef654693fb23238d5a234f48c Mon Sep 17 00:00:00 2001 From: physick Date: Sat, 29 Aug 2026 14:12:24 +0500 Subject: merged branches --- src/ui_elements/UI.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/ui_elements/UI.h') diff --git a/src/ui_elements/UI.h b/src/ui_elements/UI.h index d3af014..8754329 100644 --- a/src/ui_elements/UI.h +++ b/src/ui_elements/UI.h @@ -9,6 +9,11 @@ static const float SCROLL_SENC = 10; static const float TAB_WIDTH = 4; static const int PADDING = 10; +static const int HEADER_FONT_SIZE = 50; +static const int EDITOR_PADDING = 3; +static const int BORDER = 2; +static const int FOOTER_HEIGHT = 30; + // Sure about this value static const int MIN_FONT_SIZE = 10; // Unsure about this value @@ -32,6 +37,15 @@ typedef struct { void UpdateButton(Button *btn); void DrawButton(Button *btn, Rectangle *location); +// ========== PAGE VIEW ========== + +static const int PAGE_DOTS_SPACING = 15; +static const int PAGE_DOTS_PADDING = 15; +static const int PAGE_DOTS_RADIUS = 3; +static const char PAGE_DOTS_TRANSPARENCY = (char)192; + +void DrawPageView(int y, unsigned int pages, unsigned int current_page); + // ========== TEXT EDITOR ========== static const size_t DEFAULT_TEXT_NODE_SIZE = 256; -- cgit v1.3