42 lines
823 B
QML
42 lines
823 B
QML
import Quickshell
|
|
import Quickshell.Io
|
|
import QtQuick
|
|
|
|
import qs.modules.settings
|
|
import qs.services
|
|
|
|
ShellRoot {
|
|
Item {
|
|
width: 680
|
|
height: editor.implicitHeight
|
|
|
|
AccentEditor {
|
|
id: editor
|
|
width: parent.width
|
|
}
|
|
|
|
ThemeProfilePicker {
|
|
width: parent.width
|
|
visible: false
|
|
}
|
|
|
|
AccentPicker {
|
|
width: parent.width
|
|
visible: false
|
|
}
|
|
}
|
|
|
|
IpcHandler {
|
|
target: "accent-controls-test"
|
|
|
|
function status(): string {
|
|
return JSON.stringify(ThemeProfiles.activeProfile);
|
|
}
|
|
|
|
function adjust(target: string, channel: string, ratio: real): string {
|
|
editor.changeChannel(target, channel, ratio);
|
|
return status();
|
|
}
|
|
}
|
|
}
|