ui: progress bar for file download

This commit is contained in:
2025-12-30 19:19:54 +02:00
parent 071bc5951a
commit f1757b4ca7
16 changed files with 218 additions and 32 deletions
+12
View File
@@ -0,0 +1,12 @@
#ifndef PROGRESS_BAR_H
#define PROGRESS_BAR_H
#include "../widget.h"
typedef struct {
widget_t w;
uint32_t procent;
char text[24];
} ui_progress_bar_t;
void destroy_ui_progress_bar(void *_pb);
void draw_ui_progress_bar(ui_progress_bar_t *pb);
ui_progress_bar_t *init_ui_progress_bar(WINDOW **win, widget_t *w_parent);
#endif