From 70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69 Mon Sep 17 00:00:00 2001 From: AlexanderCurl Date: Sat, 18 Apr 2026 17:46:06 +0100 Subject: Replaced file structures for themes in the correct format --- .../Modals/Greeter/GreeterDoctorResultItem.qml | 109 --------------------- 1 file changed, 109 deletions(-) delete mode 100644 raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modals/Greeter/GreeterDoctorResultItem.qml (limited to 'raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modals/Greeter/GreeterDoctorResultItem.qml') diff --git a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modals/Greeter/GreeterDoctorResultItem.qml b/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modals/Greeter/GreeterDoctorResultItem.qml deleted file mode 100644 index b15969a..0000000 --- a/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modals/Greeter/GreeterDoctorResultItem.qml +++ /dev/null @@ -1,109 +0,0 @@ -import QtQuick -import qs.Common -import qs.Widgets - -Rectangle { - id: root - - property var resultData: null - - readonly property string status: resultData?.status || "ok" - readonly property string statusIcon: { - switch (status) { - case "error": - return "error"; - case "warn": - return "warning"; - case "info": - return "info"; - default: - return "check_circle"; - } - } - readonly property color statusColor: { - switch (status) { - case "error": - return Theme.error; - case "warn": - return Theme.warning; - case "info": - return Theme.secondary; - default: - return Theme.success; - } - } - - height: Math.round(Theme.fontSizeMedium * 3.4) - radius: Theme.cornerRadius - color: Theme.withAlpha(statusColor, 0.08) - - DankIcon { - id: statusIcon - anchors.left: parent.left - anchors.leftMargin: Theme.spacingM - anchors.verticalCenter: parent.verticalCenter - name: root.statusIcon - size: Theme.iconSize - 4 - color: root.statusColor - } - - Column { - anchors.left: statusIcon.right - anchors.leftMargin: Theme.spacingS - anchors.right: categoryChip.visible ? categoryChip.left : (urlButton.visible ? urlButton.left : parent.right) - anchors.rightMargin: Theme.spacingS - anchors.verticalCenter: parent.verticalCenter - spacing: 1 - - StyledText { - width: parent.width - text: root.resultData?.name || "" - font.pixelSize: Theme.fontSizeSmall - font.weight: Font.Medium - color: Theme.surfaceText - elide: Text.ElideRight - } - - StyledText { - width: parent.width - text: root.resultData?.message || "" - font.pixelSize: Theme.fontSizeSmall - 1 - color: Theme.surfaceVariantText - elide: Text.ElideRight - visible: text.length > 0 - } - } - - Rectangle { - id: categoryChip - anchors.right: urlButton.visible ? urlButton.left : parent.right - anchors.rightMargin: urlButton.visible ? Theme.spacingXS : Theme.spacingM - anchors.verticalCenter: parent.verticalCenter - height: Math.round(Theme.fontSizeSmall * 1.67) - width: categoryText.implicitWidth + Theme.spacingS - radius: Theme.spacingXS - color: Theme.surfaceContainerHighest - visible: !!(root.resultData?.category) - - StyledText { - id: categoryText - anchors.centerIn: parent - text: root.resultData?.category || "" - font.pixelSize: Theme.fontSizeSmall - 2 - color: Theme.surfaceVariantText - } - } - - DankActionButton { - id: urlButton - anchors.right: parent.right - anchors.rightMargin: Theme.spacingM - anchors.verticalCenter: parent.verticalCenter - iconName: "open_in_new" - iconSize: Theme.iconSize - 6 - buttonSize: 24 - visible: !!(root.resultData?.url) - tooltipText: root.resultData?.url || "" - onClicked: Qt.openUrlExternally(root.resultData.url) - } -} -- cgit v1.3