diff --git a/src/textual_paint/paint.py b/src/textual_paint/paint.py index 6714f84..1e20cd4 100755 --- a/src/textual_paint/paint.py +++ b/src/textual_paint/paint.py @@ -49,7 +49,7 @@ from .graphics_primitives import ( flood_fill, ) from .menus import MenuBar, Menu, MenuItem, Separator -from .windows import Window, DialogWindow, CharacterSelectorDialogWindow, MessageBox, WindowTitleBar, get_warning_icon, get_question_icon, get_paint_icon +from .windows import Window, DialogWindow, CharacterSelectorDialogWindow, MessageBox, get_warning_icon, get_question_icon, get_paint_icon from .file_dialogs import SaveAsDialogWindow, OpenDialogWindow from .edit_colors import EditColorsDialogWindow from .localization.i18n import get as _, load_language, remove_hotkey @@ -5240,13 +5240,6 @@ if args.ascii_only: from .ascii_borders import force_ascii_borders force_ascii_borders() - # Adjust icons - WindowTitleBar.MINIMIZE_ICON = "_" # was originally: "🗕" - WindowTitleBar.MAXIMIZE_ICON = "□" # was originally: "🗖" # not technically ASCII; could use "^" or "[]" - WindowTitleBar.RESTORE_ICON = "□" # was originally: "🗗" # not technically ASCII; could use "^" or "%" or "#" - WindowTitleBar.CLOSE_ICON = "X" # was originally: "🗙" - - # `textual run --dev src.textual_paint.paint` will search for a # global variable named `app`, and fallback to diff --git a/src/textual_paint/windows.py b/src/textual_paint/windows.py index defb1ad..47c0b85 100644 --- a/src/textual_paint/windows.py +++ b/src/textual_paint/windows.py @@ -19,10 +19,10 @@ from .args import args class WindowTitleBar(Container): """A title bar widget.""" - MINIMIZE_ICON = "🗕" - MAXIMIZE_ICON = "🗖" - RESTORE_ICON = "🗗" - CLOSE_ICON = "🗙" + MINIMIZE_ICON = "_" if args.ascii_only else "🗕" + MAXIMIZE_ICON = "□" if args.ascii_only else "🗖" # not technically ASCII; could use "^" or "[]" + RESTORE_ICON = "□" if args.ascii_only else "🗗" # not technically ASCII; could use "^" or "%" or "#" + CLOSE_ICON = "X" if args.ascii_only else "🗙" title = var("")