refactor: replace keybind toggle with config checkbox for skeleton visibility
Removes the pynput/curl-based shortcut approach in favour of a plain Plasma wallpaper config checkbox (ShowSkeleton). QML reads the setting on page load and on change, calling setShowSkeleton() in JS directly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
02edf4d9af
commit
71845ff2a7
4 changed files with 58 additions and 4 deletions
|
|
@ -7,6 +7,15 @@ import org.kde.plasma.plasma5support as Plasma5Support
|
|||
WallpaperItem {
|
||||
id: root
|
||||
|
||||
function applyConfig() {
|
||||
webView.runJavaScript("setShowSkeleton(" + Plasmoid.configuration.ShowSkeleton + ")")
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: Plasmoid.configuration
|
||||
function onShowSkeletonChanged() { applyConfig() }
|
||||
}
|
||||
|
||||
WebEngineView {
|
||||
id: webView
|
||||
anchors.fill: parent
|
||||
|
|
@ -24,6 +33,10 @@ WallpaperItem {
|
|||
request.accepted = true
|
||||
}
|
||||
|
||||
onLoadingChanged: function(loadRequest) {
|
||||
if (loadRequest.status === WebEngineLoadRequest.LoadSucceededStatus)
|
||||
applyConfig()
|
||||
}
|
||||
}
|
||||
|
||||
// Start CAVA on load
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue