绘制 tag 标识

This commit is contained in:
2025-08-16 04:43:00 +08:00
parent 8472fda46a
commit e87607f817
7 changed files with 145 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include "types.h"
@@ -11,4 +12,6 @@ uint32_t *generate_wallpaper(const wallpaper_config_t *wallpaper_config,
uint32_t get_font_height(const char *font_family, const uint32_t font_size,
const uint32_t dpi);
void draw_bar(monitor_t *monitor, bool is_current_monitor,
color_set_t *color_set, uint32_t height, uint32_t tag_x_padding);
void clean_pango_context(void);

View File

@@ -83,6 +83,8 @@ typedef struct color_t {
} color_t;
typedef struct color_set_t {
color_t bar_bg;
color_t tag_bg;
color_t active_tag_bg;
color_t tag_color;
color_t active_tag_color;
color_t layout_color;

View File

@@ -7,6 +7,7 @@
bool has_other_wm_running(void);
int get_xcb_connection_fd(void);
void flush_xcb_connection(void);
typedef enum cursor_t {
cursor_normal = XC_left_ptr,