How to set light theme and how to disable button on click text effect? #1247
-
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
The class LightApp( App[ None ] ):
"""An app that's always light."""
....
def on_mount( self ) -> None:
"""Set up the application on startup."""
self.dark = False
This is controlled by the Button:focus {
text-style: bold;
} By default in the Textual code it is: Button:focus {
text-style: bold reverse;
} |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot! I have a couple of follow ups:
|
Beta Was this translation helpful? Give feedback.
-
Thanks!
|
Beta Was this translation helpful? Give feedback.
The
App
class has adark
property; you could set that toFalse
, perhaps in anon_mount
method of theApp
.