mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 00:05:40 +02:00
font: simplify configuration format; it's just a string now
This commit is contained in:
parent
314b43b4f0
commit
b1453fd65e
2 changed files with 7 additions and 7 deletions
3
config.c
3
config.c
|
@ -67,8 +67,7 @@ conf_to_color(const struct yml_node *node)
|
|||
struct font *
|
||||
conf_to_font(const struct yml_node *node)
|
||||
{
|
||||
const struct yml_node *family = yml_get_value(node, "family");
|
||||
return font_new(family != NULL ? yml_value_as_string(family) : "monospace");
|
||||
return font_new(yml_value_as_string(node));
|
||||
}
|
||||
|
||||
struct deco *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue