Skip to content

Commit 0eaead0

Browse files
Add files via upload
1 parent 3eb38ed commit 0eaead0

2 files changed

Lines changed: 43 additions & 43 deletions

File tree

HomeassistantConfigurationScreen.qml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Screen {
260260
x: 0; y: 0
261261
width: 54
262262
height: 36
263-
source: "qrc:/tsc/backgroundOff.png"
263+
source: "qrc:/tsc/button_off.png"
264264
smooth: true
265265

266266
MouseArea {
@@ -302,13 +302,13 @@ Screen {
302302
State {
303303
name: "on"
304304
PropertyChanges { target: knob6; x: 22 }
305-
PropertyChanges { target: sslButton; source: "qrc:/tsc/backgroundOn.png" }
305+
PropertyChanges { target: sslButton; source: "qrc:/tsc/button_on.png" }
306306
PropertyChanges { target: sslSwitch; on: true }
307307
},
308308
State {
309309
name: "off"
310310
PropertyChanges { target: knob6; x: 1 }
311-
PropertyChanges { target: sslButton; source: "qrc:/tsc/backgroundOff.png" }
311+
PropertyChanges { target: sslButton; source: "qrc:/tsc/button_off.png" }
312312
PropertyChanges { target: sslSwitch; on: false }
313313
}
314314
]
@@ -373,7 +373,7 @@ Screen {
373373
x: 0; y: 0
374374
width: 54
375375
height: 36
376-
source: "qrc:/tsc/backgroundOff.png"
376+
source: "qrc:/tsc/button_off.png"
377377
smooth: true
378378

379379
MouseArea {
@@ -415,13 +415,13 @@ Screen {
415415
State {
416416
name: "on"
417417
PropertyChanges { target: knob7; x: 22 }
418-
PropertyChanges { target: clockButton; source: "qrc:/tsc/backgroundOn.png" }
418+
PropertyChanges { target: clockButton; source: "qrc:/tsc/button_on.png" }
419419
PropertyChanges { target: clockSwitch; on: true }
420420
},
421421
State {
422422
name: "off"
423423
PropertyChanges { target: knob7; x: 1 }
424-
PropertyChanges { target: clockButton; source: "qrc:/tsc/backgroundOff.png" }
424+
PropertyChanges { target: clockButton; source: "qrc:/tsc/button_off.png" }
425425
PropertyChanges { target: clockSwitch; on: false }
426426
}
427427
]
@@ -485,7 +485,7 @@ Screen {
485485
x: 0; y: 0
486486
width: 54
487487
height: 36
488-
source: "qrc:/tsc/backgroundOff.png"
488+
source: "qrc:/tsc/button_off.png"
489489
smooth: true
490490

491491
MouseArea {
@@ -527,13 +527,13 @@ Screen {
527527
State {
528528
name: "on"
529529
PropertyChanges { target: knob8; x: 22 }
530-
PropertyChanges { target: legacyButton; source: "qrc:/tsc/backgroundOn.png" }
530+
PropertyChanges { target: legacyButton; source: "qrc:/tsc/button_on.png" }
531531
PropertyChanges { target: legacySwitch; on: true }
532532
},
533533
State {
534534
name: "off"
535535
PropertyChanges { target: knob8; x: 1 }
536-
PropertyChanges { target: legacyButton; source: "qrc:/tsc/backgroundOff.png" }
536+
PropertyChanges { target: legacyButton; source: "qrc:/tsc/button_off.png" }
537537
PropertyChanges { target: legacySwitch; on: false }
538538
}
539539
]

HomeassistantScreen.qml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,19 +1070,19 @@ Screen {
10701070
x: 0; y: 0
10711071
width: 54
10721072
height: 36
1073-
source: "qrc:/tsc/backgroundOff.png"
1073+
source: "qrc:/tsc/button_off.png"
10741074
smooth: true
10751075

10761076
MouseArea {
10771077
anchors.fill: parent
10781078
onClicked: {
10791079
if (app.connected) {
10801080
if (toggleSwitch1.state == "on") {
1081-
parent.source = "qrc:/tsc/backgroundOff.png"
1081+
parent.source = "qrc:/tsc/button_off.png"
10821082
knob.x = 1;
10831083
app.setHomeAssistant(app.homeAssistantSwitch1, 0);
10841084
} else {
1085-
parent.source = "qrc:/tsc/backgroundOn.png"
1085+
parent.source = "qrc:/tsc/button_on.png"
10861086
knob.x = 22;
10871087
app.setHomeAssistant(app.homeAssistantSwitch1, 1);
10881088
}
@@ -1105,11 +1105,11 @@ Screen {
11051105
onClicked: {
11061106
if (app.connected) {
11071107
if (toggleSwitch1.state == "on") {
1108-
homeAssistantSwitch1Button.source = "qrc:/tsc/backgroundOff.png"
1108+
homeAssistantSwitch1Button.source = "qrc:/tsc/button_off.png"
11091109
parent.x = 1;
11101110
app.setHomeAssistant(app.homeAssistantSwitch1, 0);
11111111
} else {
1112-
homeAssistantSwitch1Button.source = "qrc:/tsc/backgroundOn.png"
1112+
homeAssistantSwitch1Button.source = "qrc:/tsc/button_on.png"
11131113
parent.x = 22;
11141114
app.setHomeAssistant(app.homeAssistantSwitch1, 1);
11151115
}
@@ -1124,13 +1124,13 @@ Screen {
11241124
State {
11251125
name: "on"
11261126
PropertyChanges { target: knob; x: 22 }
1127-
PropertyChanges { target: homeAssistantSwitch1Button; source: "qrc:/tsc/backgroundOn.png" }
1127+
PropertyChanges { target: homeAssistantSwitch1Button; source: "qrc:/tsc/button_on.png" }
11281128
PropertyChanges { target: toggleSwitch1; on: true }
11291129
},
11301130
State {
11311131
name: "off"
11321132
PropertyChanges { target: knob; x: 1 }
1133-
PropertyChanges { target: homeAssistantSwitch1Button; source: "qrc:/tsc/backgroundOff.png" }
1133+
PropertyChanges { target: homeAssistantSwitch1Button; source: "qrc:/tsc/button_off.png" }
11341134
PropertyChanges { target: toggleSwitch1; on: false }
11351135
}
11361136
]
@@ -1176,19 +1176,19 @@ Screen {
11761176
x: 0; y: 0
11771177
width: 54
11781178
height: 36
1179-
source: "qrc:/tsc/backgroundOff.png"
1179+
source: "qrc:/tsc/button_off.png"
11801180
smooth: true
11811181

11821182
MouseArea {
11831183
anchors.fill: parent
11841184
onClicked: {
11851185
if (app.connected) {
11861186
if (toggleSwitch2.state == "on") {
1187-
parent.source = "qrc:/tsc/backgroundOff.png"
1187+
parent.source = "qrc:/tsc/button_on.png"
11881188
knob2.x = 1;
11891189
app.setHomeAssistant(app.homeAssistantSwitch2, 0);
11901190
} else {
1191-
parent.source = "qrc:/tsc/backgroundOn.png"
1191+
parent.source = "qrc:/tsc/button_off.png"
11921192
knob2.x = 22;
11931193
app.setHomeAssistant(app.homeAssistantSwitch2, 1);
11941194
}
@@ -1211,11 +1211,11 @@ Screen {
12111211
onClicked: {
12121212
if (app.connected) {
12131213
if (toggleSwitch2.state == "on") {
1214-
homeAssistantSwitch2Button.source = "qrc:/tsc/backgroundOff.png"
1214+
homeAssistantSwitch2Button.source = "qrc:/tsc/button_on.png"
12151215
parent.x = 1;
12161216
app.setHomeAssistant(app.homeAssistantSwitch2, 0);
12171217
} else {
1218-
homeAssistantSwitch2Button.source = "qrc:/tsc/backgroundOn.png"
1218+
homeAssistantSwitch2Button.source = "qrc:/tsc/button_off.png"
12191219
parent.x = 22;
12201220
app.setHomeAssistant(app.homeAssistantSwitch2, 1);
12211221
}
@@ -1230,13 +1230,13 @@ Screen {
12301230
State {
12311231
name: "on"
12321232
PropertyChanges { target: knob2; x: 22 }
1233-
PropertyChanges { target: homeAssistantSwitch2Button; source: "qrc:/tsc/backgroundOn.png" }
1233+
PropertyChanges { target: homeAssistantSwitch2Button; source: "qrc:/tsc/button_on.png" }
12341234
PropertyChanges { target: toggleSwitch2; on: true }
12351235
},
12361236
State {
12371237
name: "off"
12381238
PropertyChanges { target: knob2; x: 1 }
1239-
PropertyChanges { target: homeAssistantSwitch2Button; source: "qrc:/tsc/backgroundOff.png" }
1239+
PropertyChanges { target: homeAssistantSwitch2Button; source: "qrc:/tsc/button_off.png" }
12401240
PropertyChanges { target: toggleSwitch2; on: false }
12411241
}
12421242
]
@@ -1290,11 +1290,11 @@ Screen {
12901290
onClicked: {
12911291
if (app.connected) {
12921292
if (toggleSwitch3.state == "on") {
1293-
parent.source = "qrc:/tsc/backgroundOff.png"
1293+
parent.source = "qrc:/tsc/button_on.png"
12941294
knob3.x = 1;
12951295
app.setHomeAssistant(app.homeAssistantSwitch3, 0);
12961296
} else {
1297-
parent.source = "qrc:/tsc/backgroundOn.png"
1297+
parent.source = "qrc:/tsc/button_off.png"
12981298
knob3.x = 22;
12991299
app.setHomeAssistant(app.homeAssistantSwitch3, 1);
13001300
}
@@ -1317,11 +1317,11 @@ Screen {
13171317
onClicked: {
13181318
if (app.connected) {
13191319
if (toggleSwitch3.state == "on") {
1320-
homeAssistantSwitch3Button.source = "qrc:/tsc/backgroundOff.png"
1320+
homeAssistantSwitch3Button.source = "qrc:/tsc/button_on.png"
13211321
parent.x = 1;
13221322
app.setHomeAssistant(app.homeAssistantSwitch3, 0);
13231323
} else {
1324-
homeAssistantSwitch3Button.source = "qrc:/tsc/backgroundOn.png"
1324+
homeAssistantSwitch3Button.source = "qrc:/tsc/button_off.png"
13251325
parent.x = 22;
13261326
app.setHomeAssistant(app.homeAssistantSwitch3, 1);
13271327
}
@@ -1336,13 +1336,13 @@ Screen {
13361336
State {
13371337
name: "on"
13381338
PropertyChanges { target: knob3; x: 22 }
1339-
PropertyChanges { target: homeAssistantSwitch3Button; source: "qrc:/tsc/backgroundOn.png" }
1339+
PropertyChanges { target: homeAssistantSwitch3Button; source: "qrc:/tsc/button_on.png" }
13401340
PropertyChanges { target: toggleSwitch3; on: true }
13411341
},
13421342
State {
13431343
name: "off"
13441344
PropertyChanges { target: knob3; x: 1 }
1345-
PropertyChanges { target: homeAssistantSwitch3Button; source: "qrc:/tsc/backgroundOff.png" }
1345+
PropertyChanges { target: homeAssistantSwitch3Button; source: "qrc:/tsc/button_off.png" }
13461346
PropertyChanges { target: toggleSwitch3; on: false }
13471347
}
13481348
]
@@ -1388,19 +1388,19 @@ Screen {
13881388
x: 0; y: 0
13891389
width: 54
13901390
height: 36
1391-
source: "qrc:/tsc/backgroundOff.png"
1391+
source: "qrc:/tsc/button_off.png"
13921392
smooth: true
13931393

13941394
MouseArea {
13951395
anchors.fill: parent
13961396
onClicked: {
13971397
if (app.connected) {
13981398
if (toggleSwitch4.state == "on") {
1399-
parent.source = "qrc:/tsc/backgroundOff.png"
1399+
parent.source = "qrc:/tsc/button_on.png"
14001400
knob4.x = 1;
14011401
app.setHomeAssistant(app.homeAssistantSwitch4, 0);
14021402
} else {
1403-
parent.source = "qrc:/tsc/backgroundOn.png"
1403+
parent.source = "qrc:/tsc/button_off.png"
14041404
knob4.x = 22;
14051405
app.setHomeAssistant(app.homeAssistantSwitch4, 1);
14061406
}
@@ -1423,11 +1423,11 @@ Screen {
14231423
onClicked: {
14241424
if (app.connected) {
14251425
if (toggleSwitch4.state == "on") {
1426-
homeAssistantSwitch4Button.source = "qrc:/tsc/backgroundOff.png"
1426+
homeAssistantSwitch4Button.source = "qrc:/tsc/button_on.png"
14271427
parent.x = 1;
14281428
app.setHomeAssistant(app.homeAssistantSwitch4, 0);
14291429
} else {
1430-
homeAssistantSwitch4Button.source = "qrc:/tsc/backgroundOn.png"
1430+
homeAssistantSwitch4Button.source = "qrc:/tsc/button_off.png"
14311431
parent.x = 22;
14321432
app.setHomeAssistant(app.homeAssistantSwitch4, 1);
14331433
}
@@ -1442,13 +1442,13 @@ Screen {
14421442
State {
14431443
name: "on"
14441444
PropertyChanges { target: knob4; x: 22 }
1445-
PropertyChanges { target: homeAssistantSwitch4Button; source: "qrc:/tsc/backgroundOn.png" }
1445+
PropertyChanges { target: homeAssistantSwitch4Button; source: "qrc:/tsc/button_on.png" }
14461446
PropertyChanges { target: toggleSwitch4; on: true }
14471447
},
14481448
State {
14491449
name: "off"
14501450
PropertyChanges { target: knob4; x: 1 }
1451-
PropertyChanges { target: homeAssistantSwitch4Button; source: "qrc:/tsc/backgroundOff.png" }
1451+
PropertyChanges { target: homeAssistantSwitch4Button; source: "qrc:/tsc/button_off.png" }
14521452
PropertyChanges { target: toggleSwitch4; on: false }
14531453
}
14541454
]
@@ -1494,19 +1494,19 @@ Screen {
14941494
x: 0; y: 0
14951495
width: 54
14961496
height: 36
1497-
source: "qrc:/tsc/backgroundOff.png"
1497+
source: "qrc:/tsc/button_off.png"
14981498
smooth: true
14991499

15001500
MouseArea {
15011501
anchors.fill: parent
15021502
onClicked: {
15031503
if (app.connected) {
15041504
if (toggleSwitch5.state == "on") {
1505-
parent.source = "qrc:/tsc/backgroundOff.png"
1505+
parent.source = "qrc:/tsc/button_on.png"
15061506
knob5.x = 1;
15071507
app.setHomeAssistant(app.homeAssistantSwitch5, 0);
15081508
} else {
1509-
parent.source = "qrc:/tsc/backgroundOn.png"
1509+
parent.source = "qrc:/tsc/button_off.png"
15101510
knob5.x = 22;
15111511
app.setHomeAssistant(app.homeAssistantSwitch5, 1);
15121512
}
@@ -1529,11 +1529,11 @@ Screen {
15291529
onClicked: {
15301530
if (app.connected) {
15311531
if (toggleSwitch5.state == "on") {
1532-
homeAssistantSwitch5Button.source = "qrc:/tsc/backgroundOff.png"
1532+
homeAssistantSwitch5Button.source = "qrc:/tsc/button_on.png"
15331533
parent.x = 1;
15341534
app.setHomeAssistant(app.homeAssistantSwitch5, 0);
15351535
} else {
1536-
homeAssistantSwitch5Button.source = "qrc:/tsc/backgroundOn.png"
1536+
homeAssistantSwitch5Button.source = "qrc:/tsc/button_off.png"
15371537
parent.x = 22;
15381538
app.setHomeAssistant(app.homeAssistantSwitch5, 1);
15391539
}
@@ -1548,13 +1548,13 @@ Screen {
15481548
State {
15491549
name: "on"
15501550
PropertyChanges { target: knob5; x: 22 }
1551-
PropertyChanges { target: homeAssistantSwitch5Button; source: "qrc:/tsc/backgroundOn.png" }
1551+
PropertyChanges { target: homeAssistantSwitch5Button; source: "qrc:/tsc/button_on.png" }
15521552
PropertyChanges { target: toggleSwitch5; on: true }
15531553
},
15541554
State {
15551555
name: "off"
15561556
PropertyChanges { target: knob5; x: 1 }
1557-
PropertyChanges { target: homeAssistantSwitch5Button; source: "qrc:/tsc/backgroundOff.png" }
1557+
PropertyChanges { target: homeAssistantSwitch5Button; source: "qrc:/tsc/button_off.png" }
15581558
PropertyChanges { target: toggleSwitch5; on: false }
15591559
}
15601560
]

0 commit comments

Comments
 (0)