mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-22 14:21:33 +03:00
Make --ascii-only-icons only affect tool icons (again)
This commit is contained in:
parent
52dfb38803
commit
d471e92855
@ -10,7 +10,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Changed
|
||||
|
||||
- `--ascii-only-icons` now uses color, and has been otherwise tweaked to make tools easier to distinguish.
|
||||
- `--ascii-only-icons` now affects the icons in the Stretch/Skew dialog, and the Help window icon, not just tool icons.
|
||||
- It is now recommended to install using `pipx` instead of `pip`; to switch to `pipx`, run `pip uninstall textual-paint && pipx install textual-paint`.
|
||||
|
||||
### Added
|
||||
|
@ -3952,7 +3952,7 @@ Columns: {len(palette) // 2}
|
||||
handle_button=handle_button,
|
||||
)
|
||||
try:
|
||||
file_name = "stretch_skew_icons_full_ascii.ans" if args.ascii_only_icons else "stretch_skew_icons.ans"
|
||||
file_name = "stretch_skew_icons_full_ascii.ans" if args.ascii_only else "stretch_skew_icons.ans"
|
||||
with open(os.path.join(os.path.dirname(__file__), file_name), encoding="utf-8") as f:
|
||||
icons_ansi = f.read()
|
||||
icons_doc = AnsiArtDocument.from_ansi(icons_ansi)
|
||||
@ -4230,9 +4230,9 @@ Columns: {len(palette) // 2}
|
||||
# Just don't use emoji for it.
|
||||
icon = "📄[#ffff00]?[/]"
|
||||
# icon = "[#ffffff]🭌[/][#ffff00]?[/]" # also works nicely
|
||||
if args.ascii_only_icons:
|
||||
if args.ascii_only:
|
||||
icon = "[#aaaaaa on #ffffff]=[/][#ffff00]?[/]"
|
||||
# Honerable mentions: 🯄 ˀ̣
|
||||
# Honorable mentions: 🯄 ˀ̣
|
||||
|
||||
title = icon + " " + title
|
||||
def handle_button(button: Button) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user