mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-26 00:07:29 +03:00
Use alternative tool icons for Kitty terminal
This commit is contained in:
parent
2a4b6484e7
commit
a5a9b58611
@ -388,7 +388,7 @@ These are the symbols I've found so far:
|
||||
- Pick Color: 🎨🌈💉💅💧🩸🎈📌📍🪛🪠🥍🩼🌡💄🎯𖡡⤤𝀃🝯⊸⚲𓋼🗡𓍊🍶🧪🍼🌂👁️🗨️🧿🍷⤵❣⚗ ⤆Ϸ ⟽þ ⇐ c⟾ /̥͚̥̥͚͚̊̊
|
||||
- Magnifier: 🔍🔎👀🔬🔭🧐🕵️♂️🕵️♀️
|
||||
- Pencil: ✏️✎✍️🖎🖊️🖋️✒️🖆📝🖍️🪶
|
||||
- Brush: 🖌👨🎨🧑🎨💅🧹🪮🪥🪒🪠ⵄ⑃ሐ⋔⋲ ▭⋹ 𝈸⋹ ⊏⋹ ⸦⋹ ⊂⋹
|
||||
- Brush: 🖌👨🎨🧑🎨💅🧹🪮🪥🪒🪠ⵄ⑃ሐ⋔⋲ ▭⋹ 𝈸⋹ ⊏⋹ ⸦⋹ ⊂⋹ ▬▤
|
||||
- Airbrush: ⛫💨дᖜ💨╔💨🧴🥤🧃🧯🧨🍾🥫💈🫠🌬️🗯☄💭༄༺☁️🌪️🌫🌀🚿 ⪧𖤘 ᗒᗣ дᖜᗕ
|
||||
- Text: 📝📄📃📜AA🅰️🆎🔤🔠𝐴
|
||||
- Line: 📏📉📈\⟍𝈏╲⧹\⧵∖
|
||||
|
@ -208,7 +208,7 @@ class Tool(Enum):
|
||||
# - Pick Color: 🎨🌈💉💅💧🩸🎈📌📍🪛🪠🥍🩼🌡💄🎯𖡡⤤𝀃🝯⊸⚲𓋼🗡𓍊🍶🧪🍼🌂👁️🗨️🧿🍷⤵❣⚗ ⤆Ϸ ⟽þ ⇐ c⟾ /̥͚̥̥͚͚̊̊
|
||||
# - Magnifier: 🔍🔎👀🔬🔭🧐🕵️♂️🕵️♀️
|
||||
# - Pencil: ✏️✎✍️🖎🖊️🖋️✒️🖆📝🖍️🪶
|
||||
# - Brush: 🖌👨🎨🧑🎨💅🧹🪮🪥🪒🪠ⵄ⑃ሐ⋔⋲ ▭⋹ 𝈸⋹ ⊏⋹ ⸦⋹ ⊂⋹
|
||||
# - Brush: 🖌👨🎨🧑🎨💅🧹🪮🪥🪒🪠ⵄ⑃ሐ⋔⋲ ▭⋹ 𝈸⋹ ⊏⋹ ⸦⋹ ⊂⋹ ▬▤
|
||||
# - Airbrush: ⛫💨дᖜ💨╔💨🧴🥤🧃🧯🧨🍾🥫💈🫠🌬️🗯☄💭༄༺☁️🌪️🌫🌀🚿 ⪧𖤘 ᗒᗣ дᖜᗕ
|
||||
# - Text: 📝📄📃📜AA🅰️🆎🔤🔠𝐴
|
||||
# - 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 "A" 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: "⬚",
|
||||
|
Loading…
Reference in New Issue
Block a user