-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.patch
44 lines (42 loc) · 1.13 KB
/
default.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- orig/HomePage.qml
+++ default/HomePage.qml
@@ -715,6 +715,18 @@
}
onTouched: tabView.activateTab(settingsPage)
}
+
+ BasicButton {
+ objectName: "haButton"
+ style: HomePageButtonStyle {
+ pressedImage: "images/function_btn_p.svg"
+ pressedIcon: "images/settings_icon_p.svg"
+ defaultIcon: "images/settings_icon.svg"
+ defaultImage: "images/function_btn.svg"
+ description: "HomeAssistant"
+ }
+ onTouched: tabView.activateTab(haPage)
+ }
}
}
--- orig/MainApp.qml
+++ default/MainApp.qml
@@ -13,6 +13,7 @@
tabs: [
homePage,
settingsPage,
+ haPage,
audiocallPage,
memoPage,
readMemo,
@@ -110,6 +111,11 @@
PageLoader {
id: settingsPage
sourceUrl: "Settings.qml"
+ }
+
+ PageLoader {
+ id: haPage
+ sourceUrl: "HomeAssistant.qml"
}
PageLoader {
Only in default: js/ha.js