Improve the UI of the polkit-agent dialog

pull/9/head
reionwong 4 years ago
parent 86465d6d34
commit 97e53f7aac

@ -3,19 +3,23 @@ import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import FishUI 1.0 as FishUI import FishUI 1.0 as FishUI
Rectangle { Item {
id: root id: root
width: 550 width: 550
height: mainLayout.implicitHeight + radius * 4 height: mainLayout.implicitHeight + _background.radius * 4
radius: FishUI.Theme.bigRadius Rectangle {
color: FishUI.Theme.backgroundColor id: _background
anchors.fill: parent
radius: FishUI.Theme.bigRadius
color: FishUI.Theme.secondBackgroundColor
}
FishUI.WindowShadow { FishUI.WindowShadow {
view: rootWindow view: rootWindow
geometry: Qt.rect(root.x, root.y, root.width, root.height) geometry: Qt.rect(root.x, root.y, root.width, root.height)
radius: root.radius radius: _background.radius
} }
FontMetrics { FontMetrics {
@ -37,7 +41,7 @@ Rectangle {
} }
Item { Item {
width: FishUI.Theme.bigRadius width: FishUI.Theme.bigRadius * 1.5
} }
ColumnLayout { ColumnLayout {
@ -75,10 +79,6 @@ Rectangle {
} }
} }
Item {
height: FishUI.Units.smallSpacing
}
RowLayout { RowLayout {
spacing: FishUI.Units.largeSpacing spacing: FishUI.Units.largeSpacing

Loading…
Cancel
Save