mirror of
https://github.com/1j01/textual-paint.git
synced 2024-11-28 01:34:42 +03:00
Avoid changing cursor color temporarily when picking colors
This commit is contained in:
parent
9eae8a19e1
commit
c43fef57fc
@ -333,7 +333,8 @@ class PaintApp(App[None]):
|
||||
|
||||
def update_textbox_style(self, style: Style) -> None:
|
||||
"""Apply a style to the whole textbox."""
|
||||
if self.image.selection and self.image.selection.textbox_mode:
|
||||
# TODO: replace area/width/height checks with a cursor_mode flag (or is_cursor, and rename textbox_mode to is_textbox)
|
||||
if self.image.selection and self.image.selection.textbox_mode and self.image.selection.region.area != 1:
|
||||
assert self.image.selection.contained_image is not None, "textbox_mode without contained_image"
|
||||
for y in range(self.image.selection.region.height):
|
||||
for x in range(self.image.selection.region.width):
|
||||
|
Loading…
Reference in New Issue
Block a user