clanker #1

Merged
lucy merged 2 commits from clanker into new 2026-02-03 19:01:08 +01:00
4 changed files with 37 additions and 3 deletions
Showing only changes of commit cdf6547a87 - Show all commits

View File

@ -278,6 +278,38 @@ ClippingWrapperRectangle {
}
}
}
ClippingWrapperRectangle {
id: schemeGeneratorWrapper
Layout.fillWidth: true
leftMargin: 10
rightMargin: 15
implicitHeight: 30
bottomLeftRadius: 12
bottomRightRadius: 12
topRightRadius: 4
topLeftRadius: 4
color: Colors.surfaceContainerHigh
child: RowLayout {
id: schemeGeneratorLayout
spacing: 5
CustomText {
id: schemeGeneratorText
text: "Scheme generator"
Layout.fillWidth: true
}
CustomButton {
implicitHeight: schemeGeneratorWrapper.implicitHeight - 10
onClicked: {
if (Settings.config.schemeGenerator === "matugen") {
Settings.config.schemeGenerator = "wallust";
} else {
Settings.config.schemeGenerator = "matugen";
}
}
customText: Settings.config.schemeGenerator
}
}
}
Item {
id: spring
Layout.fillHeight: true

View File

@ -23,7 +23,7 @@ FloatingWindow {
}
Process {
id: wallustRunner
property string cmd: "matugen image " + Settings.config.currentWall
property string cmd: Settings.config.schemeGenerator === "matugen" ? "matugen image " + Settings.config.currentWall : "wallust run " + Settings.config.currentWall
command: ["sh", "-c", cmd]
}
GlobalShortcut {

View File

@ -20,6 +20,7 @@ Slider {
height: parent.height
color: Colors.primary
radius: 2
border.color: Colors.outline
}
}
@ -29,7 +30,7 @@ Slider {
implicitWidth: control.implicitHeight - 2
implicitHeight: control.implicitHeight - 2
radius: 13
color: control.pressed ? Colors.primary : Colors.surfaceContainerLow
border.color: Colors.outline
color: control.pressed ? Colors.primary : Colors.surfaceContainerLowest
border.color: control.pressed ? Colors.surfaceContainerLowest : Colors.primary
}
}

View File

@ -32,6 +32,7 @@ Singleton {
property double translucency: 1
property bool blackScreenCorners: true
property bool settingsShown: true
property string schemeGenerator: "matugen"
}
}
}