Skip to content
Discussion options

You must be logged in to vote
  1. How to set light theme as the default instead of dark theme? Currently, I'm calling self.action_toggle_dark() at the end of compose(self) method.

The App class has a dark property; you could set that to False, perhaps in an on_mount method of the App.

class LightApp( App[ None ] ):
    """An app that's always light."""

    ....

    def on_mount( self ) -> None:
        """Set up the application on startup."""
        self.dark = False
  1. When a button is clicked, there's a background color applied to the text - 'apple' in the screenshot shown below (and any previous such effect applied to another button is automatically removed). Is there a way to disable such effects - either partia…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by learnbyexample
Comment options

You must be logged in to vote
1 reply
@davep
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants