mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-22 22:31:43 +03:00
Use bold exclamation mark and question mark for dialog icons
An exclamation mark character is more centered than the pipe and dot combo, although it's smaller. Bolding the bang makes up for its gulf in girth. Bold the question mark to match.
This commit is contained in:
parent
bee5440abc
commit
f2d8a5dbe6
@ -577,20 +577,36 @@ warning_icon_markup_unicode = """
|
|||||||
[#000000]◢[#ffff00 on #000000]◢[#000000 on #ffff00] • [/]◣[/]◣[/]
|
[#000000]◢[#ffff00 on #000000]◢[#000000 on #ffff00] • [/]◣[/]◣[/]
|
||||||
[#000000]🮃🮃🮃🮃🮃🮃🮃🮃🮃[/]
|
[#000000]🮃🮃🮃🮃🮃🮃🮃🮃🮃[/]
|
||||||
"""
|
"""
|
||||||
# ASCII line art version 2, BG color edition:
|
# ASCII line art version 2a, with BG color:
|
||||||
|
# warning_icon_markup_ascii = """
|
||||||
|
# [#000000]_[/]
|
||||||
|
# [#000000 on #ffff00]/ \\\\[/]
|
||||||
|
# [#000000 on #ffff00]/ | \\\\[/]
|
||||||
|
# [#000000 on #ffff00]/ . \\\\[/]
|
||||||
|
# [#000000 on #ffff00](_______)[/]
|
||||||
|
# """
|
||||||
|
# # ASCII line art version 2b, only FG color:
|
||||||
|
# warning_icon_markup_ascii_dark_mode = """[#ffff00]
|
||||||
|
# _
|
||||||
|
# / \\
|
||||||
|
# / | \\
|
||||||
|
# / . \\
|
||||||
|
# (_______)
|
||||||
|
# [/]"""
|
||||||
|
# ASCII line art version 3a, with BG color:
|
||||||
warning_icon_markup_ascii = """
|
warning_icon_markup_ascii = """
|
||||||
[#000000]_[/]
|
[#000000]_[/]
|
||||||
[#000000 on #ffff00]/ \\\\[/]
|
[#000000 on #ffff00]/ \\\\[/]
|
||||||
[#000000 on #ffff00]/ | \\\\[/]
|
[#000000 on #ffff00]/ \\\\[/]
|
||||||
[#000000 on #ffff00]/ . \\\\[/]
|
[#000000 on #ffff00]/ [b]![/b] \\\\[/]
|
||||||
[#000000 on #ffff00](_______)[/]
|
[#000000 on #ffff00](_______)[/]
|
||||||
"""
|
"""
|
||||||
# ASCII line art version 2, true line art edition:
|
# ASCII line art version 3b, only FG color:
|
||||||
warning_icon_markup_ascii_dark_mode = """[#ffff00]
|
warning_icon_markup_ascii_dark_mode = """[#ffff00]
|
||||||
_
|
_
|
||||||
/ \\
|
/ \\
|
||||||
/ | \\
|
/ \\
|
||||||
/ . \\
|
/ [b]![/b] \\
|
||||||
(_______)
|
(_______)
|
||||||
[/]"""
|
[/]"""
|
||||||
|
|
||||||
@ -660,6 +676,8 @@ question_icon_console_markup_ascii = """
|
|||||||
"""
|
"""
|
||||||
# make background transparent
|
# make background transparent
|
||||||
question_icon_console_markup_ascii = question_icon_console_markup_ascii.replace(" on rgb(128,128,128)", "")
|
question_icon_console_markup_ascii = question_icon_console_markup_ascii.replace(" on rgb(128,128,128)", "")
|
||||||
|
# bold question mark
|
||||||
|
question_icon_console_markup_ascii = question_icon_console_markup_ascii.replace("?", "[b]?[/b]")
|
||||||
|
|
||||||
def get_question_icon() -> Static:
|
def get_question_icon() -> Static:
|
||||||
markup = question_icon_console_markup_ascii if args.ascii_only else question_icon_console_markup
|
markup = question_icon_console_markup_ascii if args.ascii_only else question_icon_console_markup
|
||||||
|
Loading…
Reference in New Issue
Block a user