diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-11-30 15:33:40 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-11-30 15:33:40 +0900 |
commit | 79e9e0509b2b78e7175eb03121221ccb37689305 (patch) | |
tree | b4e9bb0dfa3932b05b5a355046dae8712e456336 /homescreen/qml/main.qml | |
parent | e221104d1e51d84212d3ec131473113c8762d3e7 (diff) |
disable fullscreen button if not navigation
Diffstat (limited to 'homescreen/qml/main.qml')
-rw-r--r-- | homescreen/qml/main.qml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/homescreen/qml/main.qml b/homescreen/qml/main.qml index f70325f..6dace77 100644 --- a/homescreen/qml/main.qml +++ b/homescreen/qml/main.qml @@ -141,24 +141,26 @@ Window { container.state = 'fullscreen' touchArea.switchArea(1) homescreenHandler.tapShortcut(appName, true) + container.opacity = 0.0 } else { image.source = './images/normal.png' container.state = 'normal' touchArea.switchArea(0) homescreenHandler.tapShortcut(appName, false) + container.opacity = 1.0 } } } } } - function changeSwitchState(is_split) { + function changeSwitchState(is_navigation) { if(container.state === 'normal') { - if(is_split) { - switchBtn.enableSwitchBtn = false - image.source = './images/normal_disable.png' - } else { + if(is_navigation) { switchBtn.enableSwitchBtn = true image.source = './images/normal.png' + } else { + switchBtn.enableSwitchBtn = false + image.source = './images/normal_disable.png' } } } |