Skip to content

Can I make Window rounded? #7607

Answered by ogoffart
aurexav asked this question in Q&A
Feb 11, 2025 · 1 comments · 1 reply

You must be logged in to vote

Something like this:

import { AboutSlint } from "std-widgets.slint";

export component MyWindow inherits Window {
    background: transparent;
    no-frame: true;

    Rectangle {
        border-radius: 20px;
        background: gray;

        AboutSlint {}
    }
}

Make the window transparent and have a rectangle inside with the right border-radius

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@aurexav

Answer selected by aurexav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants