mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-07 07:49:28 -05:00
28 lines
686 B
QML
28 lines
686 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import qs.modules.common
|
|
import qs.modules.common.widgets
|
|
|
|
Loader {
|
|
id: root
|
|
required property string icon
|
|
property real iconSize: Appearance.font.pixelSize.larger
|
|
Layout.alignment: Qt.AlignVCenter
|
|
|
|
active: root.icon && root.icon.length > 0
|
|
visible: active
|
|
|
|
sourceComponent: Item {
|
|
implicitWidth: materialSymbol.implicitWidth
|
|
|
|
MaterialSymbol {
|
|
id: materialSymbol
|
|
anchors.centerIn: parent
|
|
|
|
iconSize: root.iconSize
|
|
color: root.toggled ? Appearance.colors.colOnPrimary : Appearance.colors.colOnSecondaryContainer
|
|
text: root.icon
|
|
}
|
|
}
|
|
}
|