forked from external/yambar
config: pass a struct with inheritable values
For now, font and foreground color
This commit is contained in:
parent
7776135454
commit
8dc278aaf2
20 changed files with 84 additions and 48 deletions
4
module.h
4
module.h
|
@ -3,7 +3,7 @@
|
|||
#include <threads.h>
|
||||
#include <cairo.h>
|
||||
|
||||
#include "config-verify.h"
|
||||
#include "config.h"
|
||||
#include "particle.h"
|
||||
#include "tag.h"
|
||||
#include "yml.h"
|
||||
|
@ -14,7 +14,7 @@ struct module;
|
|||
struct module_info {
|
||||
bool (*verify_conf)(keychain_t *chain, const struct yml_node *node);
|
||||
struct module *(*from_conf)(const struct yml_node *node,
|
||||
const struct font *parent_font);
|
||||
struct conf_inherit inherited);
|
||||
};
|
||||
|
||||
struct module_run_context {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue