Use alternative tool icons for Kitty terminal

This commit is contained in:
Isaiah Odhner 2023-08-28 23:47:06 -04:00
parent 2a4b6484e7
commit a5a9b58611
2 changed files with 18 additions and 2 deletions

View File

@ -388,7 +388,7 @@ These are the symbols I've found so far:
- Pick Color: 🎨🌈💉💅💧🩸🎈📌📍🪛🪠🥍🩼🌡💄🎯𖡡⤤𝀃🝯⊸⚲𓋼🗡𓍊🍶🧪🍼🌂👁️‍🗨️🧿🍷⤵❣⚗ ⤆Ϸ ⟽þ ⇐ c⟾ /̥͚̥̥͚͚̊̊
- Magnifier: 🔍🔎👀🔬🔭🧐🕵️‍♂️🕵️‍♀️
- Pencil: ✏️✎✍️🖎🖊️🖋️✒️🖆📝🖍️🪶
- Brush: 🖌👨‍🎨🧑‍🎨💅🧹🪮🪥🪒🪠ⵄ⑃ሐ⋔⋲ ▭⋹ 𝈸⋹ ⊏⋹ ⸦⋹ ⊂⋹
- Brush: 🖌👨‍🎨🧑‍🎨💅🧹🪮🪥🪒🪠ⵄ⑃ሐ⋔⋲ ▭⋹ 𝈸⋹ ⊏⋹ ⸦⋹ ⊂⋹ ▬▤
- Airbrush: ⛫💨дᖜ💨╔💨🧴🥤🧃🧯🧨🍾🥫💈🫠🌬️🗯☄💭༄༺☁️🌪️🌫🌀🚿 ⪧𖤘 ᗒᗣ дᖜᗕ
- Text: 📝📄📃📜A🅰🆎🔤🔠𝐴
- Line: 📏📉📈\⟍𝈏╲⧹\

View File

@ -208,7 +208,7 @@ class Tool(Enum):
# - Pick Color: 🎨🌈💉💅💧🩸🎈📌📍🪛🪠🥍🩼🌡💄🎯𖡡⤤𝀃🝯⊸⚲𓋼🗡𓍊🍶🧪🍼🌂👁️‍🗨️🧿🍷⤵❣⚗ ⤆Ϸ ⟽þ ⇐ c⟾ /̥͚̥̥͚͚̊̊
# - Magnifier: 🔍🔎👀🔬🔭🧐🕵️‍♂️🕵️‍♀️
# - Pencil: ✏️✎✍️🖎🖊️🖋️✒️🖆📝🖍️🪶
# - Brush: 🖌👨‍🎨🧑‍🎨💅🧹🪮🪥🪒🪠ⵄ⑃ሐ⋔⋲ ▭⋹ 𝈸⋹ ⊏⋹ ⸦⋹ ⊂⋹
# - Brush: 🖌👨‍🎨🧑‍🎨💅🧹🪮🪥🪒🪠ⵄ⑃ሐ⋔⋲ ▭⋹ 𝈸⋹ ⊏⋹ ⸦⋹ ⊂⋹ ▬▤
# - Airbrush: ⛫💨дᖜ💨╔💨🧴🥤🧃🧯🧨🍾🥫💈🫠🌬️🗯☄💭༄༺☁️🌪️🌫🌀🚿 ⪧𖤘 ᗒᗣ дᖜᗕ
# - Text: 📝📄📃📜A🅰🆎🔤🔠𝐴
# - Line: 📏📉📈\⟍𝈏╲⧹\
@ -282,6 +282,22 @@ class Tool(Enum):
# "🪣" shows as tofu
if self == Tool.fill:
return "🌊"
elif os.environ.get("KITTY_WINDOW_ID"):
# Kitty terminal has alignment problems with the default Pencil symbol "✏️"
# as well as alternatives "🖍️", "🖊️", "🖋️", "✍️", "✒️"
# and Brush symbol "🖌️" and alternatives "🧹", "🪮"
# "🖎", "🖆", and "✎" don't cause alignment issues, but don't show in color and are illegibly small.
if self == Tool.pencil:
# Working for me: "🪶", and "📝", which may look more like a Text tool than a pencil tool,
# but at least has a pencil...
return "📝"
if self == Tool.brush:
# Working for me: "👨‍🎨", "💅", "🪥", "🪒", "🪠", "▭⋹" (basically any of the lame options)
# return "[tan]▬[/][#5c2121]⋹[/]"
return "[tan]▬[/]▤"
if self == Tool.text:
# The wide character "" isn't centered-looking? And is faint/small...
return "𝐴" # not centered, but closer to MS Paint's icon, with serifs
return {
Tool.free_form_select: "",
Tool.select: "",