Transparent window background on linux
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)
I also am having this problem in Arch Linux with flet version 0.17.0
The window_manager dart package used by Flet has an opened issue for this: https://github.com/leanflutter/window_manager/issues/179
I see where exactly in the Flet source code I can comment out those two lines, but I am unsure how to use that change in my flet app.
Which lines do you mean?
i think in the linked issue there was a workaround commented, though idk how to modify the flet source myself
I have the same problem on windows. Did anyone have a solution?