mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-15 15:54:00 -04:00
35 lines
734 B
QML
35 lines
734 B
QML
import QtQuick
|
|
import qs.Common
|
|
import qs.Services
|
|
import qs.Widgets
|
|
|
|
DOSD {
|
|
id: root
|
|
|
|
osdKind: "touchpad"
|
|
|
|
osdWidth: Theme.osdHeight
|
|
osdHeight: Theme.osdHeight
|
|
autoHideInterval: 2000
|
|
enableMouseInteraction: false
|
|
|
|
Connections {
|
|
target: NiriService
|
|
|
|
function onTouchpadToggled() {
|
|
if (!SettingsData.osdTouchpadEnabled)
|
|
return;
|
|
root.show();
|
|
}
|
|
}
|
|
|
|
content: Item {
|
|
OsdIcon {
|
|
tonal: false
|
|
anchors.centerIn: parent
|
|
iconName: NiriService.touchpadEnabled ? "touchpad_mouse" : "touchpad_mouse_off"
|
|
iconColor: NiriService.touchpadEnabled ? Theme.primary : Theme.outline
|
|
}
|
|
}
|
|
}
|