Skip to content

Button or API for users to switch between themes without the Hamburger menu #5908

@lesser-panda

Description

@lesser-panda

Problem

As of now (version 1.15.2), for users to switch the theme, they have to go to the hamburger menu to access the setting. This is not very intuitive for the end users if they are not familiar with Streamlit. In addition, if I hide the hamburger menu in my app, the users won't be able to change the theme by themselves at all.

Solution

It would be nice to have a button outside the hamburger menu for users to quickly switch between light mode and dark mode (or other themes if available).

Another solution would be to provide an API for switching between the themes, so the developers can implement the theme switcher by themselves if needed.

Views

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:themingRelated to themingtype:enhancementRequests for feature enhancements or new features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions