refactoring; modal window init

This commit is contained in:
2025-11-27 17:19:02 +02:00
parent c524ece546
commit fd73fa7628
23 changed files with 252 additions and 47 deletions
+7 -2
View File
@@ -2,9 +2,14 @@
#define N_APP_H
#include <ncurses.h>
#include "widget/dialogue.h"
typedef enum {
none = 0,
MODAL_COLOR_PAIR = 3,
} color;
typedef enum {
none_active = 0,
login = 1,
} dialogue_e;
@@ -14,7 +19,7 @@ typedef struct {
WINDOW *action_win;
struct {
dialogue_e active;
WINDOW *win;
dialogue_t dialogue;
} modal;
// menu_bar_t *menu_bar;