From 8101c9c9622a23364a93fa8d6314e75c22bde48f Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Mon, 4 Sep 2023 20:24:06 -0400 Subject: [PATCH] Bold brush handles in Paint icon in header --- src/textual_paint/paint.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/textual_paint/paint.py b/src/textual_paint/paint.py index 5318a11..0ab59b1 100755 --- a/src/textual_paint/paint.py +++ b/src/textual_paint/paint.py @@ -5273,7 +5273,9 @@ if args.ascii_only: # and add a shading under the page fold # HeaderIcon.icon = "[rgb(0,0,0) on rgb(255,255,255)]..,[/][rgb(255,255,255)]\\\\[/][rgb(0,0,0) on rgb(255,255,255)]\n[blue]\\\\[/][red]|[/][yellow]/[/][rgb(192,192,192)]~[/]\n[rgb(0,0,0) on rgb(230,230,230)]T[/][rgb(0,0,0) on rgb(192,192,192)]_[/][rgb(0,0,0) on rgb(150,150,150)]T[/] [/]" # unify the brush tops; the right-most one isn't a cell over like in the About Paint dialog's icon, to align with the slant of a comma -HeaderIcon.icon = "[rgb(0,0,0) on rgb(255,255,255)]...[/][rgb(255,255,255)]\\\\[/][rgb(0,0,0) on rgb(255,255,255)]\n[blue]\\\\[/][red]|[/][yellow]/[/][rgb(192,192,192)]~[/]\n[rgb(0,0,0) on rgb(230,230,230)]T[/][rgb(0,0,0) on rgb(192,192,192)]_[/][rgb(0,0,0) on rgb(150,150,150)]T[/] [/]" +# HeaderIcon.icon = "[rgb(0,0,0) on rgb(255,255,255)]...[/][rgb(255,255,255)]\\\\[/][rgb(0,0,0) on rgb(255,255,255)]\n[blue]\\\\[/][red]|[/][yellow]/[/][rgb(192,192,192)]~[/]\n[rgb(0,0,0) on rgb(230,230,230)]T[/][rgb(0,0,0) on rgb(192,192,192)]_[/][rgb(0,0,0) on rgb(150,150,150)]T[/] [/]" +# bold the brush handles +HeaderIcon.icon = "[rgb(0,0,0) on rgb(255,255,255)]...[/][rgb(255,255,255)]\\\\[/][rgb(0,0,0) on rgb(255,255,255)]\n[bold][blue]\\\\[/][red]|[/][yellow]/[/][/][rgb(192,192,192)]~[/]\n[rgb(0,0,0) on rgb(230,230,230)]T[/][rgb(0,0,0) on rgb(192,192,192)]_[/][rgb(0,0,0) on rgb(150,150,150)]T[/] [/]" # This got pretty out of hand. I should've done this in Textual Paint before letting it get this complex! # Prevent wrapping, for a CSS effect, cropping to hide the shading "~" of the page fold when the page fold isn't visible. HeaderIcon.icon = Text.from_markup(HeaderIcon.icon, overflow="crop")