完善插件界面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.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 {
anchors.fill: parent;

View File

@ -4,14 +4,17 @@ import QtQuick.Layouts 1.12
Item {
ColumnLayout {
anchors.fill: parent
Item {
anchors.topMargin: 12
Row {
Layout.fillWidth: true
Layout.preferredHeight: 30
Layout.preferredHeight: 40
Layout.rightMargin: 12
ListView {
id: extensionListView
anchors.fill: parent
width: parent.width - 34
height: parent.height
orientation: ListView.Horizontal
model: extensionManager.extensionModel()
delegate: headerDelegate
@ -28,8 +31,12 @@ Item {
}
}
}
}
Item {
width: 34
height: 34
}
}
Item {
Layout.fillWidth: 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 {
id: headerDelegate
Item {
property var extensionData: model.data
width: 100