emojize & symolize - api is not intuitive #113
Replies: 5 comments 2 replies
-
Hey, I'm not sure where the confusion is coming from, let me illustrate:
Principles:
|
Beta Was this translation helpful? Give feedback.
-
This helps a lot. Thank you. So the same script #!/bin/bash
echo "SF Symbol :house:|"
echo "---"
echo "Emoji :house:| symbolize=false"
echo "Text :house:| symbolize=false emojize=false" appears like this on my machine So in order to fix this on Catalina, I have to modify my script to be like: #!/bin/bash
echo "SF Symbol :house: | symbolize=false"
echo "---"
echo "Emoji :house:| symbolize=false"
echo "Text :house:| symbolize=false emojize=false" This make it render like The only drawback of explicitly setting If SwiftBar automatically assumed #!/bin/bash
echo "SF Symbol :house:|"
echo "---"
echo "Emoji :house:| symbolize=false"
echo "Text :house:| symbolize=false emojize=false" and the same script would result into rendering SF Symbol on BigSur |
Beta Was this translation helpful? Give feedback.
-
Developers can of course opt out of this by explicitly setting symbolize= false |
Beta Was this translation helpful? Give feedback.
-
That makes sense, implemented in #114 |
Beta Was this translation helpful? Give feedback.
-
QQ: How can I use SF Symbols with Catalina (10.15.7)? I have installed SF Symbols 2 but whatever I try I can't use them with SwiftBar. |
Beta Was this translation helpful? Give feedback.
-
This is the documentation
This is my script
Below plugin is rendered
The first two items have symbolize set to false and rest of them have emojize set to true.
The documentation says
"Requires symbolize=false"
but it's a bit confusing (to me as a plugin developer).Can emojize and symbolize be decoupled?
How about we keep
emojize
as is, but give a different syntax tosymbolize
?Beta Was this translation helpful? Give feedback.
All reactions