完善插件界面ui细节

This commit is contained in:
gjq 2023-02-09 16:07:51 +08:00 committed by hewenfei
parent 78a544a357
commit 33a4a7d961
2 changed files with 32 additions and 6 deletions

View File

@ -1,7 +1,13 @@
import QtQuick 2.12 import QtQuick 2.12
import QtQuick.Controls 2.0 as QQC2 import QtQuick.Controls 2.0 as QQC2
import AppControls2 1.0 as AppControls2
import org.ukui.menu.core 1.0
Item { AppControls2.StyleBackground {
paletteRole: Palette.Window
radius: 12
useStyleTransparent: false
alpha: 0.75
Row { Row {
anchors.fill: parent; anchors.fill: parent;

View File

@ -4,14 +4,17 @@ import QtQuick.Layouts 1.12
Item { Item {
ColumnLayout { ColumnLayout {
anchors.fill: parent anchors.fill: parent
Item { anchors.topMargin: 12
Row {
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: 30 Layout.preferredHeight: 40
Layout.rightMargin: 12
ListView { ListView {
id: extensionListView id: extensionListView
anchors.fill: parent width: parent.width - 34
height: parent.height
orientation: ListView.Horizontal orientation: ListView.Horizontal
model: extensionManager.extensionModel() model: extensionManager.extensionModel()
delegate: headerDelegate delegate: headerDelegate
@ -28,8 +31,12 @@ Item {
} }
} }
} }
}
Item {
width: 34
height: 34
}
}
Item { Item {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
@ -44,10 +51,23 @@ Item {
} }
} }
} }
Row {
Layout.fillWidth: true
Layout.preferredHeight: 40
Layout.rightMargin: 12
layoutDirection: Qt.RightToLeft
Item {
width: 32
height: 32
}
}
} }
Component { Component {
id: headerDelegate id: headerDelegate
Item { Item {
property var extensionData: model.data property var extensionData: model.data
width: 100 width: 100