rust 在tauri应用程序中设置窗口边框半径

insrf1ej  于 2023-05-07  发布在  其他
关注(0)|答案(1)|浏览(347)

我怎样才能圆金牛座应用程序窗口的角落?我试过几种方法,但似乎都不管用。任何帮助将不胜感激。

nbysray5

nbysray51#

好像没有办法把Windows弄圆。但是你可以用下面的方法使窗口变圆(只是在视图中)
1.删除标题栏并使tauri窗口透明

{
  "windows":[
    {
      "decorations": false,
      "transparent": true
    }
  ]
}

1.配置CSS

#app {
        border-radius: 50px;
        height: 100vh;
        background-color: #f3f3f3;
        border-radius: 5px;
    }

相关问题