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
11.16k stars 429 forks source link

page.window.frameless = True After that, the window does not have rounded corners #4130

Open yst-one opened 1 week ago

yst-one commented 1 week ago

Duplicate Check

Describe the bug

image

Code sample

import flet as ft

def main(page: ft.Page): page.window.frameless = True page.window.width = 320 page.window.height = 480 page.theme_mode= ft.ThemeMode.SYSTEM

page.padding= 0
page.add(
    ft.WindowDragArea(content= ft.Container(border_radius=20),expand=True),
    ft.IconButton(ft.icons.CLOSE, on_click=lambda _: page.window.close())
)
page.update()

ft.app(target=main, assets_dir="assets")

To reproduce

aa

Expected behavior

No response

Screenshots / Videos

No response

Operating System

Windows

Operating system details

win11

Flet version

0.24.1

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

No response

Additional details

No response

OwenMcDonnell commented 1 day ago

Can you share with which version of flet this used to work and share a screenshot of the resulting window?