File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,40 +5,31 @@ ParamsScreen > Label {
55
66ParamsScreen > Input {
77 margin : 1 ;
8- background: $primary- background;
98}
109
1110
1211PartitionList {
1312 margin : 1 1 0 1 ;
1413 max-height : 80% ;
15- background : slategrey;
1614 height : auto;
1715}
1816
1917PartitionList > 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
4131ParamsScreen > Container {
32+ align : center middle;
4233 height : auto;
4334 min-height : 4 ;
4435 dock : bottom;
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments