mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
comments
This commit is contained in:
@@ -362,6 +362,7 @@ class DOMNode(MessagePump):
|
||||
|
||||
@property
|
||||
def rich_style(self) -> Style:
|
||||
"""Get a Rich Style object for this Widget."""
|
||||
(_, _), (background, color) = self.colors
|
||||
style = Style.from_color(color.rich_color, background.rich_color)
|
||||
style += self.text_style
|
||||
|
||||
@@ -87,7 +87,6 @@ class LinuxDriver(Driver):
|
||||
width, height = terminal_size
|
||||
textual_size = Size(width, height)
|
||||
event = events.Resize(self._target, textual_size, textual_size)
|
||||
# self.console.size = terminal_size
|
||||
asyncio.run_coroutine_threadsafe(
|
||||
self._target.post_message(event),
|
||||
loop=loop,
|
||||
|
||||
Reference in New Issue
Block a user