flet icon indicating copy to clipboard operation
flet copied to clipboard

Transparent window background on linux

Open Kawue opened this issue 1 year ago • 4 comments

I tried to make the background of my window transparent using the example code given in the documentation. However, on linux mint I get a black background instead of a transparent one. Is there a workaround to get transparency on linux?

Operating system: Linux Mint Flet Version: 0.7.4

import flet as ft

def main(page: ft.Page):
    page.window_bgcolor = ft.colors.TRANSPARENT
    page.bgcolor = ft.colors.TRANSPARENT
    page.window_title_bar_hidden = True
    page.window_frameless = True
    page.window_left = 400
    page.window_top = 200
    page.add(ft.ElevatedButton("I'm a floating button!"))

ft.app(target=main)

Kawue avatar Jun 20 '23 08:06 Kawue