diff options
author | San Jacobs | 2023-10-14 12:18:23 +0200 |
---|---|---|
committer | San Jacobs | 2023-10-14 12:18:23 +0200 |
commit | d6cb7ac37d86d0c4ee03982813b94275fd62016a (patch) | |
tree | 2c9a79cda5b63eb36537b882d9b3c2ba9eb31d4a /src | |
parent | 56b701ded16bad6f4599be61263c1574d5297288 (diff) | |
download | satscalc-d6cb7ac37d86d0c4ee03982813b94275fd62016a.tar.gz satscalc-d6cb7ac37d86d0c4ee03982813b94275fd62016a.tar.bz2 satscalc-d6cb7ac37d86d0c4ee03982813b94275fd62016a.zip |
Added cute padding to text
Diffstat (limited to 'src')
-rw-r--r-- | src/main.odin | 3 | ||||
-rw-r--r-- | src/ui_implementation.odin | 2 |
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 |