mirror of
https://github.com/1j01/textual-paint.git
synced 2024-08-18 04:10:34 +03:00
Update textual to 0.31.0
DataTable now has `max-height: 100%` by default, which breaks my layout.
This commit is contained in:
parent
938a320391
commit
3944a6e404
@ -8,7 +8,7 @@ pyperclip==1.8.2
|
||||
pyxdg==0.28 # xdg module, used for wallpaper setting; optional, falls back to ~/.config
|
||||
rich==13.3.5
|
||||
stransi==0.3.0
|
||||
textual==0.30.0
|
||||
textual==0.31.0
|
||||
textual-dev==1.0.0 # for development (`textual` CLI)
|
||||
watchdog==3.0.0 # for development; optional (only used when --restart-on-changes is passed)
|
||||
types-Pillow==10.0.0.1 # for development
|
||||
|
@ -262,6 +262,9 @@ FileDialogWindow .window_content Button {
|
||||
|
||||
CharacterSelectorDialogWindow DataTable {
|
||||
width: auto;
|
||||
/* textual 0.31.0 adds `max-height: 100%` to DataTable */
|
||||
/* `unset` is not supported */
|
||||
max-height: 10000;
|
||||
}
|
||||
CharacterSelectorDialogWindow .ok,
|
||||
CharacterSelectorDialogWindow .cancel {
|
||||
|
@ -1447,7 +1447,7 @@ Columns: {len(self.palette) // 2}
|
||||
"""Center the image as the wallpaper."""
|
||||
self.set_as_wallpaper(tiled=False)
|
||||
# worker thread helps keep the UI responsive
|
||||
@work(exclusive=True)
|
||||
@work(exclusive=True, thread=True)
|
||||
def set_as_wallpaper(self, tiled: bool) -> None:
|
||||
"""Set the image as the wallpaper."""
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user