summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme/theme-data/dms/Modules/ControlCenter/Widgets/ErrorPill.qml
diff options
context:
space:
mode:
authorNippy <nippy@rp1.hu>2026-05-08 19:50:49 +0200
committerNippy <nippy@rp1.hu>2026-05-08 19:50:49 +0200
commit3462bcc46ecf74f576ea4397f16492c16bd75b10 (patch)
treec5ab7aef4498647e057bda8d49c11e5f9dda74c9 /raveos-hyprland-theme/theme-data/dms/Modules/ControlCenter/Widgets/ErrorPill.qml
parent56616f693b4f263cbf0d47da43b67424efa6022d (diff)
downloadRaveOS-PKGBUILD-3462bcc46ecf74f576ea4397f16492c16bd75b10.tar.gz
RaveOS-PKGBUILD-3462bcc46ecf74f576ea4397f16492c16bd75b10.zip
raveos update
Diffstat (limited to 'raveos-hyprland-theme/theme-data/dms/Modules/ControlCenter/Widgets/ErrorPill.qml')
-rw-r--r--raveos-hyprland-theme/theme-data/dms/Modules/ControlCenter/Widgets/ErrorPill.qml56
1 files changed, 56 insertions, 0 deletions
diff --git a/raveos-hyprland-theme/theme-data/dms/Modules/ControlCenter/Widgets/ErrorPill.qml b/raveos-hyprland-theme/theme-data/dms/Modules/ControlCenter/Widgets/ErrorPill.qml
new file mode 100644
index 0000000..cece467
--- /dev/null
+++ b/raveos-hyprland-theme/theme-data/dms/Modules/ControlCenter/Widgets/ErrorPill.qml
@@ -0,0 +1,56 @@
+import QtQuick
+import qs.Common
+import qs.Widgets
+
+StyledRect {
+ id: root
+
+ LayoutMirroring.enabled: I18n.isRtl
+ LayoutMirroring.childrenInherit: true
+
+ 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
+ horizontalAlignment: Text.AlignLeft
+ }
+
+ StyledText {
+ width: parent.width
+ text: root.secondaryMessage
+ font.pixelSize: Theme.fontSizeSmall
+ color: Theme.warning
+ visible: text.length > 0
+ horizontalAlignment: Text.AlignLeft
+ }
+ }
+ }
+}