mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-26 21:30:17 +00:00
allow chaining dynamic width animations for texts
This commit is contained in:
parent
d2e6a36f6b
commit
cf5e7ccaff
1 changed files with 13 additions and 15 deletions
|
@ -416,7 +416,6 @@ bool text_parse_sub_domain(struct text* text, FILE* rsp, struct token property,
|
|||
} else if (token_equals(property, PROPERTY_WIDTH)) {
|
||||
struct token token = get_token(&message);
|
||||
if (token_equals(token, ARGUMENT_DYNAMIC)) {
|
||||
if (text->has_const_width) {
|
||||
ANIMATE(text_set_width,
|
||||
text,
|
||||
text->custom_width,
|
||||
|
@ -432,7 +431,6 @@ bool text_parse_sub_domain(struct text* text, FILE* rsp, struct token property,
|
|||
INTERP_FUNCTION_LINEAR );
|
||||
animator_add(&g_bar_manager.animator, animation);
|
||||
}
|
||||
}
|
||||
else {
|
||||
ANIMATE(text_set_width,
|
||||
text,
|
||||
|
|
Loading…
Reference in a new issue