Skip to content

Commit b0c6e11

Browse files
committed
Fix style
1 parent e69b97d commit b0c6e11

4 files changed

Lines changed: 9 additions & 15 deletions

File tree

recoverpy/ui/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def _initialize_screens(self) -> None:
4141
log.debug(f"Installed screen {screen_name}")
4242

4343
async def on_mount(self) -> None:
44+
self.theme = "textual-dark"
4445
await self.push_screen("params")
4546
await verify_app_environment(self)
4647

recoverpy/ui/css/common.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

recoverpy/ui/css/screen-params.css

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,31 @@ ParamsScreen > Label {
55

66
ParamsScreen > Input {
77
margin: 1;
8-
background: $primary-background;
98
}
109

1110

1211
PartitionList {
1312
margin: 1 1 0 1;
1413
max-height: 80%;
15-
background: slategrey;
1614
height: auto;
1715
}
1816

1917
PartitionList > ListItem {
2018
padding: 0 0 0 1;
2119
}
2220

23-
PartitionList > ListItem.--highlight {
24-
background: $accent;
25-
}
2621

2722
.mounted {
28-
color: orange;
23+
color: $text-accent;
2924
}
3025

3126
#start-search-button {
32-
dock: bottom;
33-
align-horizontal: center;
34-
background: $primary-darken-2;
27+
margin: 0 0 0 10;
3528
}
3629

37-
#start-search-button:hover {
38-
background: $primary-lighten-2;
39-
}
4030

4131
ParamsScreen > Container {
32+
align: center middle;
4233
height: auto;
4334
min-height: 4;
4435
dock: bottom;

recoverpy/ui/screens/modal.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ async def install_and_push_modal(
4343
message: str,
4444
callback: Optional[Callable[[], None]] = None,
4545
) -> None:
46+
try:
47+
app.uninstall_screen(app.get_screen(name))
48+
except KeyError:
49+
pass
50+
4651
modal = Modal(name, message=message, callback=callback)
4752
app.install_screen(modal, name)
4853
await app.push_screen(name)

0 commit comments

Comments
 (0)