refactor(parser): export parse_color_hex for compositor use
Remove 'static' from parse_color_hex() in parser.c and add a public declaration to parser.h so src/peachwm.c can call it for shadow color conversion. No changes to function body.
This commit is contained in:
+20
-2
@@ -107,8 +107,24 @@ typedef struct {
|
||||
/* Effects */
|
||||
|
||||
typedef struct {
|
||||
bool rounded;
|
||||
char rounding[CFG_MAX_STRLEN];
|
||||
bool shadows;
|
||||
int shadow_radius;
|
||||
int shadow_offset_x;
|
||||
int shadow_offset_y;
|
||||
uint32_t shadow_color;
|
||||
float shadow_opacity;
|
||||
int shadow_expand;
|
||||
bool fullscreen_shadows;
|
||||
bool nogaps_shadows;
|
||||
bool maximized_shadows;
|
||||
bool only_floating;
|
||||
bool shadow_clip;
|
||||
} CfgEffectsWindowShadows;
|
||||
|
||||
typedef struct {
|
||||
bool rounded;
|
||||
char rounding[CFG_MAX_STRLEN];
|
||||
CfgEffectsWindowShadows shadows;
|
||||
} CfgEffectsWindows;
|
||||
|
||||
typedef struct {
|
||||
@@ -158,6 +174,8 @@ char *config_get_path(char *buf, size_t bufsz);
|
||||
|
||||
void config_autostart_run(const Config *cfg);
|
||||
|
||||
void parse_color_hex(uint32_t hex, float out[4]);
|
||||
|
||||
typedef void (*config_reload_cb)(const Config *cfg, void *userdata);
|
||||
|
||||
typedef struct WatchState WatchState;
|
||||
|
||||
Reference in New Issue
Block a user