origin/new #2
@ -16,7 +16,7 @@ Item {
|
|||||||
console.log(Settings.config.generateScheme);
|
console.log(Settings.config.generateScheme);
|
||||||
Settings.config.currentWall = newWall;
|
Settings.config.currentWall = newWall;
|
||||||
if (Settings.config.generateScheme === true) {
|
if (Settings.config.generateScheme === true) {
|
||||||
wallustRunner.startDetached();
|
wallustRunner.running = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function setFont(newFont: string): void {
|
function setFont(newFont: string): void {
|
||||||
|
|||||||
@ -278,38 +278,6 @@ 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 {
|
Item {
|
||||||
id: spring
|
id: spring
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|||||||
@ -23,7 +23,7 @@ FloatingWindow {
|
|||||||
}
|
}
|
||||||
Process {
|
Process {
|
||||||
id: wallustRunner
|
id: wallustRunner
|
||||||
property string cmd: Settings.config.schemeGenerator === "matugen" ? "matugen image " + Settings.config.currentWall : "wallust run " + Settings.config.currentWall
|
property string cmd: "matugen image " + Settings.config.currentWall
|
||||||
command: ["sh", "-c", cmd]
|
command: ["sh", "-c", cmd]
|
||||||
}
|
}
|
||||||
GlobalShortcut {
|
GlobalShortcut {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user