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

Page's Theme's parameter button_theme turns the entire window grey #4723

Open
1 task done
mlGris opened this issue Jan 16, 2025 · 0 comments · May be fixed by #4731
Open
1 task done

Page's Theme's parameter button_theme turns the entire window grey #4723

mlGris opened this issue Jan 16, 2025 · 0 comments · May be fixed by #4731
Assignees
Labels
bug Something isn't working

Comments

@mlGris
Copy link

mlGris commented Jan 16, 2025

Duplicate Check

Describe the bug

Page's Theme's parameter button_theme turns the entire window grey.
In flet doc Theme doesn't have parameter button_theme, but in code class Theme have button_theme.

Code sample

Code

from flet import *

async def main(page: Page):
page.dark_theme = Theme(
button_theme=ButtonTheme(button_color="green"),
)
page.theme_mode = ThemeMode.DARK
page.update()

page.add(
    Card(
        Column(
            controls=[
                Text("Test"),
                ElevatedButton("TestButton")
            ]
        )
    )
)

app(target=main)

To reproduce

  1. run app with hot reload
  2. set page.theme(or dark_theme) parameter Theme with parameter button_theme
  3. so now app has only grey color without elements

Expected behavior

i want to set default theme for buttons on my app

Screenshots / Videos

Captures

image
image
image

Operating System

Windows

Operating system details

windows 10

Flet version

flet 0.25.2

Regression

I'm not sure / I don't know

Suggestions

This parameter has probably not been fully developed yet and perhaps this should be added in the comment, because it mislead

Logs

Logs
[Paste your logs here]

Additional details

No response

@ndonkoHenri ndonkoHenri linked a pull request Jan 18, 2025 that will close this issue
@ndonkoHenri ndonkoHenri self-assigned this Jan 18, 2025
@ndonkoHenri ndonkoHenri added the bug Something isn't working label Jan 18, 2025
@ndonkoHenri ndonkoHenri moved this from 🆕 New to 👀 In review in Flet Development Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 👀 In review
Development

Successfully merging a pull request may close this issue.

3 participants