flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
9.96k stars 392 forks source link

Window theme mode bug #3487

Open theN1C1 opened 2 weeks ago

theN1C1 commented 2 weeks ago

Duplicate Check

Describe the bug

When using a dark theme, the color of the window itself changes, but the title bar remains white.

Code

import flet as ft

import os, sys

def main(page: ft.Page):
    # settings
    page.title = "Console"
    page.window_width = 600
    page.window_height = 500
    page.window_resizable = True
    page.window_maximizable = False

    page.window_left = 400
    page.window_top = 200
    page.theme_mode = "DARK"

    page.window_visible = True
    page.update()

ft.app(target = main, view = ft.AppView.FLET_APP_HIDDEN)

To reproduce

  1. Put a dark theme

Expected behavior

No response

Screenshots

image-1

Operating System

Windows

Operating system details

Windows 10

Flet version

0.23.0

Regression

No, it isn't

Suggestions

No response

Additional details

No response

ndonkoHenri commented 2 weeks ago

Can you try this:

theN1C1 commented 2 weeks ago

Can you try this:

new_project.mp4 Source: flutter/flutter#117692 (comment)

why the DARK theme works as SYSTEM

WagmanK commented 2 weeks ago

Can you try this:

new_project.mp4 Source: flutter/flutter#117692 (comment)

The thing is that in Flet DARK works as SYSTEM. For example, on customtkinter everything works fine

https://github.com/flet-dev/flet/assets/133054489/43e9852c-0629-4413-9360-298260c36933