1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00
Files
DankMaterialShell/Widgets/SystemLogo.qml
2025-07-22 23:00:09 -04:00

30 lines
652 B
QML

import QtQuick
import QtQuick.Effects
import Quickshell
import Quickshell.Io
import Quickshell.Widgets
import qs.Common
IconImage {
id: root
property color color: Theme.surfaceText
smooth: true
asynchronous: true
layer.enabled: true
layer.effect: MultiEffect {
colorization: 1
colorizationColor: root.color
brightness: 0.5
}
Process {
running: true
command: ["sh", "-c", ". /etc/os-release && echo $LOGO"]
stdout: StdioCollector {
onStreamFinished: () => {
root.source = Quickshell.iconPath(this.text.trim());
}
}
}
}