diff options
| author | dam <dam@gudinoff> | 2024-03-31 23:47:35 +0100 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2024-03-31 23:47:35 +0100 |
| commit | 3ea02310f77dcf6aac26152a13a7ec848c78077f (patch) | |
| tree | 329ffc4379672abb33d301e1dab351c5868da9b9 /ttt.jai | |
| parent | ebf43b78a33c5b878b8cf600c3527c7a78dac3d2 (diff) | |
| download | task-time-tracker-3ea02310f77dcf6aac26152a13a7ec848c78077f.tar.zst task-time-tracker-3ea02310f77dcf6aac26152a13a7ec848c78077f.zip | |
WIP : Setup TUI styles.
Diffstat (limited to 'ttt.jai')
| -rw-r--r-- | ttt.jai | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1059,7 +1059,7 @@ draw_tui :: (db: *Database, layout: *Layout) { // Apply theme. if (task == active_task && task == selected_task) { // attron(COLOR_PAIR(xx Styles.ACTIVE_SELECTED) | A_BOLD); TODO DAM - TUI.set_style_colors(TUI.Colors8b.Red, 6); // TODO TESTING COLORS + TUI.set_style_colors(.RED, 6); // TODO TESTING COLORS TUI.set_style(true, true, true, false); } else if (task == selected_task) { @@ -1067,7 +1067,7 @@ draw_tui :: (db: *Database, layout: *Layout) { TUI.set_style_colors(4, 6); // TODO TESTING COLORS } else if (task == active_task) { - TUI.set_style_colors(TUI.Colors8b.Red, 6); // TODO TESTING COLORS + TUI.set_style_colors(.RED, 6); // TODO TESTING COLORS TUI.set_style(false, false, false, true); // TODO TESTING STYLE // attron(COLOR_PAIR(xx Styles.ACTIVE) | A_BOLD); TODO DAM } @@ -1224,7 +1224,7 @@ prompt_user_key :: (row: int, style: int, message: string) -> TUI.Key { TUI.set_cursor_position(row, 2); write_string(TUI.Commands.DrawingMode); - for 0..size_x-2 { + for 1..size_x-2 { print(TUI.Drawings.Checkerboard); } write_string(TUI.Commands.TextMode); @@ -1236,6 +1236,10 @@ prompt_user_key :: (row: int, style: int, message: string) -> TUI.Key { main :: () { + TUI.test(); + exit(0); + + // -- -- -- Testing TUI -- START perform_test := false; |
