mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-29 06:27:47 -04:00
them towards theme controlCenter: make a real grid, add numerous more tile varieties, add icon size option surfaces: fix elevation levels in general, and shift them down settings: restyles and re-org sliders: scale down universally
42 lines
1014 B
QML
42 lines
1014 B
QML
import QtQuick
|
|
import qs.Common
|
|
import qs.Widgets
|
|
|
|
Rectangle {
|
|
id: root
|
|
|
|
property string label: ""
|
|
property string iconName: ""
|
|
property color tone: Theme.primary
|
|
property bool onImage: false
|
|
|
|
height: Theme.iconSize
|
|
width: content.implicitWidth + Theme.spacingS * 2
|
|
radius: Theme.cornerRadiusS
|
|
color: Theme.chipSurface
|
|
border.color: Theme.outlineVariant
|
|
border.width: Theme.outlineWidth
|
|
|
|
Row {
|
|
id: content
|
|
anchors.centerIn: parent
|
|
spacing: Theme.spacingXXS
|
|
|
|
DankIcon {
|
|
name: root.iconName
|
|
size: Theme.iconSizeSmall
|
|
color: root.tone
|
|
visible: root.iconName.length > 0
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
}
|
|
|
|
StyledText {
|
|
text: root.label
|
|
font.pixelSize: Theme.fontSizeSmall
|
|
font.weight: Theme.fontWeightMedium
|
|
color: root.tone
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
}
|
|
}
|
|
}
|