mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
- Scrap janky NetworkService in favor of, dms' native NM integration socket - Scrap all gdbus usage in favor of native dbus bindings in dms (loginctl, freedesktop) It means that - some features won't work if running without dms wrapper. But the trade off is certainly worth it, in the long-run for efficiency improvements.
52 lines
1.2 KiB
QML
52 lines
1.2 KiB
QML
import QtQuick
|
|
import qs.Common
|
|
import qs.Widgets
|
|
|
|
StyledRect {
|
|
id: root
|
|
|
|
property string primaryMessage: ""
|
|
property string secondaryMessage: ""
|
|
|
|
radius: Theme.cornerRadius
|
|
color: Qt.rgba(Theme.warning.r, Theme.warning.g, Theme.warning.b, 0.1)
|
|
border.color: Theme.warning
|
|
border.width: 1
|
|
|
|
Row {
|
|
anchors.fill: parent
|
|
anchors.margins: Theme.spacingM
|
|
spacing: Theme.spacingXS
|
|
|
|
DankIcon {
|
|
name: "warning"
|
|
size: 16
|
|
color: Theme.warning
|
|
anchors.top: parent.top
|
|
anchors.topMargin: 2
|
|
}
|
|
|
|
Column {
|
|
width: parent.width - 16 - parent.spacing
|
|
spacing: Theme.spacingXS
|
|
|
|
StyledText {
|
|
width: parent.width
|
|
text: root.primaryMessage
|
|
font.pixelSize: Theme.fontSizeSmall
|
|
color: Theme.warning
|
|
font.weight: Font.Medium
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
|
|
StyledText {
|
|
width: parent.width
|
|
text: root.secondaryMessage
|
|
font.pixelSize: Theme.fontSizeSmall
|
|
color: Theme.warning
|
|
visible: text.length > 0
|
|
}
|
|
}
|
|
}
|
|
}
|