You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A fundamental problem in lua is that the key value tables are not sorted. This means the order in which the table arguments are parsed is essentially random.
The sketchybar api has some order-of-operation dependent properties, e.g:
Sets the background color — which enables the background automatically — and then disables the background again.
The same is not possible in lua (in a single set call) because:
Is not reliably parsed in this order. If this is parsed the other way around, the background is disabled and only then the color is set — which then enables the background automatically.
A fix for this will likely need to be on the sketchybar syntax side. I.e. all the sketchybar config options must be entirely independent of each other such that order of operations is never a problem.
The text was updated successfully, but these errors were encountered:
I had this problem while doing configuration for hovering element. What would be the best way around this issues as of right now. Declaring the colors and the drawing in two different set command? This might impact performance for event that are trigger a lot.
A fundamental problem in lua is that the key value tables are not sorted. This means the order in which the table arguments are parsed is essentially random.
The sketchybar api has some order-of-operation dependent properties, e.g:
Sets the background color — which enables the background automatically — and then disables the background again.
The same is not possible in lua (in a single set call) because:
Is not reliably parsed in this order. If this is parsed the other way around, the background is disabled and only then the color is set — which then enables the background automatically.
A fix for this will likely need to be on the sketchybar syntax side. I.e. all the sketchybar config options must be entirely independent of each other such that order of operations is never a problem.
The text was updated successfully, but these errors were encountered: