aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.odin3
-rw-r--r--src/ui_implementation.odin2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/main.odin b/src/main.odin
index 9689598..ac3f693 100644
--- a/src/main.odin
+++ b/src/main.odin
@@ -151,9 +151,10 @@ when true {
top_bar := panel(BGCOLOR)
oui.set_cut(master_container, .Top)
oui.set_height(top_bar, 30)
+ oui.set_margin(top_bar, 6)
oui.item_insert(master_container, top_bar)
- date_label := label("Date", font)
+ date_label := label("Date", font, .Left)
oui.item_insert(top_bar, date_label)
bottom_bar := panel(PBGCOLOR)
diff --git a/src/ui_implementation.odin b/src/ui_implementation.odin
index 4706728..27bcc65 100644
--- a/src/ui_implementation.odin
+++ b/src/ui_implementation.odin
@@ -145,6 +145,6 @@ ui_draw :: proc(item: oui.Item) {
horizontal_position = f32(rect.l) - f32(int((rl.MeasureTextEx(data.font, data.text, f32(data.font.baseSize), 0.0).x)/2))
}
- rl.DrawTextEx(data.font, data.text, { horizontal_position, f32(rect.t+50) }, f32(data.font.baseSize), 0.0, rl.RAYWHITE);
+ rl.DrawTextEx(data.font, data.text, { horizontal_position, f32(rect.t) }, f32(data.font.baseSize), 0.0, rl.RAYWHITE);
}
} \ No newline at end of file