feat(bar): 新增 text 文字排版模块并将其集成到 bar 生命周期中

This commit is contained in:
2026-06-08 01:24:49 +08:00
parent 3a8c392d90
commit 62f6bab611
5 changed files with 90 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
#include <zdwm/bar.h>
#include <zdwm/types.h>
#include "bar/text.h"
#include "bar/types.h"
#include "base/color.h"
@@ -27,6 +28,7 @@ typedef struct bar_t {
zdwm_bar_config_t config;
bar_palette_t palette;
text_context_t *ctx;
} bar_t;
void bar_init(bar_t *bar);