Skip to content

Transparent window background on linux #1504

Open
@Kawue

Description

@Kawue

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas-upstreamThis issue depends on an upstream issueplatform: linuxSpecific to one or more Linux distributions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions