Giter Club home page Giter Club logo

Comments (4)

github-actions avatar github-actions commented on June 2, 2024 1

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Visits

from streamlit.

raethlein avatar raethlein commented on June 2, 2024 1

Hey @TechbaltoroBI002, you should be able to set the theme by adding a .streamlit/config.toml file with the following content

[theme]
# or "light"
base = "dark"

See also the docs here. It will set the theme in the hamburger menu to Custom Theme by default:
Screenshot 2024-05-07 at 15 06 32

Its not a dedicated st-command, but it sounds like this should fulfil your needs. What do you think?

from streamlit.

jrieke avatar jrieke commented on June 2, 2024 1

Just to add, we probably also don't want an st command for this use case because it would mean the app would flicker at page load (it would first show the theme according to the user's system settings, and then switch the theme once the command is reached). Doing it via the config file is far better because these settings are applied before the page loads/script runs.

from streamlit.

TechbaltoroBI002 avatar TechbaltoroBI002 commented on June 2, 2024 1

@raethlein yes it does actually. @jrieke @raethlein thank you guys, for the clarification.

from streamlit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.