forked from external/yambar
config: allow font/foreground attributes on modules too
Previously we allowed it on the bar, and on all particles. Now we also allow it on all modules. This allows us to specify a "default" font/foreground on a per-module basis, having it applied to all the modules particles.
This commit is contained in:
parent
8dc278aaf2
commit
a425378576
13 changed files with 47 additions and 14 deletions
5
module.h
5
module.h
|
@ -15,6 +15,11 @@ struct module_info {
|
|||
bool (*verify_conf)(keychain_t *chain, const struct yml_node *node);
|
||||
struct module *(*from_conf)(const struct yml_node *node,
|
||||
struct conf_inherit inherited);
|
||||
|
||||
#define MODULE_COMMON_ATTRS \
|
||||
{"font", false, &conf_verify_font}, \
|
||||
{"foreground", false, &conf_verify_color}, \
|
||||
{NULL, false, NULL}
|
||||
};
|
||||
|
||||
struct module_run_context {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue