aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordam <devnull@localhost>2024-04-09 15:13:26 +0100
committerdam <devnull@localhost>2024-04-09 15:13:26 +0100
commit3491fff478a7ebf7e9281595230528726828f48c (patch)
tree701b83be986e5e5d9c6391955727c504e2cc42d7
parent353d8b1145db12ffc42e4f6c2148a848ef8bba84 (diff)
downloadtask-time-tracker-3491fff478a7ebf7e9281595230528726828f48c.tar.zst
task-time-tracker-3491fff478a7ebf7e9281595230528726828f48c.zip
Clear style when stoping TUI.
-rw-r--r--modules/TUI/module.jai3
-rw-r--r--ttt.jai4
2 files changed, 4 insertions, 3 deletions
diff --git a/modules/TUI/module.jai b/modules/TUI/module.jai
index e7dc21a..e0bd9b4 100644
--- a/modules/TUI/module.jai
+++ b/modules/TUI/module.jai
@@ -547,7 +547,8 @@ start :: () {
stop :: () {
if active == false return;
active = false;
-
+
+ clear_style();
OS_reset_terminal();
write_strings(Commands.MainScreenBuffer, Commands.RestoreCursorPosition, Commands.ShowCursor);
}
diff --git a/ttt.jai b/ttt.jai
index 43a972f..7fdd9af 100644
--- a/ttt.jai
+++ b/ttt.jai
@@ -26,7 +26,7 @@
#import "String";
#import "Integer_Saturating_Arithmetic";
#import "UTF8";
-TUI :: #import "TUI"(COLOR_BIT_DEPTH=8);
+TUI :: #import "TUI"(COLOR_BIT_DEPTH=4);
VERSION :: "2.0"; // Use only 3 chars (to fit layouts).
YEAR :: "2024";
@@ -99,7 +99,7 @@ style_active := TUI.Style.{
};
style_active_selected := TUI.Style.{
- background = TUI.Palette.NAVY,
+ background = TUI.Palette.BLUE,
foreground = TUI.Palette.WHITE,
bold = true,
};