The demo on share.streamlit.io
chiehpower opened this issue · 2 comments
Hi @okld,
Thanks for your contribution to sharing this awesome Streamlit component!
I am wondering would you like to share the codes of the demo on share.streamlit.io?
I wanna try the function of switching the light-dark theme for each element and the feature of checking out different items in one element.
Thank you in advance!
Best regards,
Chieh
Hello @chiehpower,
The code is available in this repository: https://github.com/okld/streamlit-gallery
Also, in general you can get the source code of share.streamlit.io apps in the menu in the top right corner, as long as the github repository is public.
Regarding the dark/light theme switch, the button is defined here, with a callback that changes the attribute _dark_mode
of my Item
class. And I choose the correct editor theme accordingly here.
Hi @okld,
Got it!!
Thanks for your pointing out!
I really appreciate your contributions!
Best regards,
Chieh