mirror of https://github.com/cutefishos/settings
Improve UI
parent
3c61f2ae7c
commit
2282ab14cc
@ -0,0 +1,24 @@
|
|||||||
|
import QtQuick 2.12
|
||||||
|
import QtQuick.Layouts 1.12
|
||||||
|
import FishUI 1.0 as FishUI
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
default property alias content : _mainLayout.data
|
||||||
|
|
||||||
|
color: FishUI.Theme.darkMode ? "#363636" : "#FFFFFF"
|
||||||
|
radius: FishUI.Theme.mediumRadius
|
||||||
|
|
||||||
|
implicitHeight: _mainLayout.implicitHeight + FishUI.Units.largeSpacing * 2
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
id: _mainLayout
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
anchors.leftMargin: FishUI.Units.largeSpacing * 1.5
|
||||||
|
anchors.rightMargin: FishUI.Units.largeSpacing * 1.5
|
||||||
|
anchors.topMargin: FishUI.Units.largeSpacing
|
||||||
|
anchors.bottomMargin: FishUI.Units.largeSpacing
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue