Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme Support #497

Open
lmtreser opened this issue Jan 20, 2024 · 1 comment
Open

Theme Support #497

lmtreser opened this issue Jan 20, 2024 · 1 comment

Comments

@lmtreser
Copy link

Hello, is there currently support for themes to change the appearance of the GUIs?
For example, something similar to ttkbootstrap.
If the answer is no, how could I help you start implementing it?
Greetings!

@PythonRPG010
Copy link

Hello! well, in the docs you can found an idea for it, but i made something like it and will share:

from guizero import *

theme = 'white'

colors = ['black', 'white']

def updatetheme():
    global theme
    app.bg = themeCombo.value
    theme = app.bg
    if theme == "white":
        app.text_color = "black"
        
    elif theme == "black":
        app.text_color = "white"
        color = "white"

app = App(title="Something",)

themeCombo = Combo(app, align='top', options=colors, selected=app.bg, command=updatetheme)

app.display()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants