feat: update main window

This commit is contained in:
rankun 2020-08-02 14:32:41 +08:00
commit 28ed531cbb

View file

@ -10,20 +10,21 @@ Window {
color: "transparent" color: "transparent"
// bg // bg
Image { BorderImage {
id: background id: background
//anchors { top: parent.top; bottom: parent.bottom }
anchors.fill: parent anchors.fill: parent
source: "qrc:/image/mainwindow/bg.png" source: "qrc:/image/mainwindow/bg.png"
fillMode: Image.PreserveAspectCrop border { left: 30; top: 30; right: 30; bottom: 30 }
horizontalTileMode: BorderImage.Stretch
verticalTileMode: BorderImage.Stretch
} }
Rectangle { Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
height: 30 height: 60
color: "red" color: "transparent"
DragHandler { DragHandler {
grabPermissions: TapHandler.CanTakeOverFromAnything grabPermissions: TapHandler.CanTakeOverFromAnything