forked from IgorYbema/tscSettings
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathHideToonLogoScreen.qml
More file actions
69 lines (56 loc) · 2.02 KB
/
Copy pathHideToonLogoScreen.qml
File metadata and controls
69 lines (56 loc) · 2.02 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import QtQuick 2.1
import qb.components 1.0
import BxtClient 1.0
Screen {
id: hideToonLogoScreen
isSaveCancelDialog: true
screenTitle: qsTr("Hide Toon Logo")
onShown: {
radioButtonList.currentIndex = globals.tsc["hideToonLogo"]
if (globals.tsc["showTime"] && globals.tsc["showDate"]) radioButtonList2.currentIndex = 3
if (!globals.tsc["showTime"] && globals.tsc["showDate"]) radioButtonList2.currentIndex = 2
if (globals.tsc["showTime"] && !globals.tsc["showDate"]) radioButtonList2.currentIndex = 1
if (!globals.tsc["showTime"] && !globals.tsc["showDate"]) radioButtonList2.currentIndex = 0
}
onSaved: {
var myTsc = globals.tsc
myTsc["hideToonLogo"] = radioButtonList.currentIndex
myTsc["showTime"] = radioButtonList2.currentIndex === 1 || radioButtonList2.currentIndex === 3
myTsc["showDate"] = radioButtonList2.currentIndex === 2 || radioButtonList2.currentIndex === 3
globals.tsc = myTsc
app.saveSettingsTsc();
}
RadioButtonList {
id: radioButtonList
width: isNxt ? Math.round(300 * 1.28) : Math.round(280 * 1.28)
height: Math.round(250 * app.nxtScale)
anchors.horizontalCenterOffset: isNxt ? -250 : -205
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
title: qsTr("Hide the Toon logo")
Component.onCompleted: {
addItem("Disabled");
addItem("Only during dim");
addItem("Always");
forceLayout();
currentIndex = 0;
}
}
RadioButtonList {
id: radioButtonList2
width: isNxt ? Math.round(330 * 1.28) : Math.round(280 * 1.28)
height: Math.round(250 * app.nxtScale)
anchors.horizontalCenterOffset: isNxt ? 250 : 205
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
title: qsTr("Show date and time instead in dim")
Component.onCompleted: {
addItem("Disabled");
addItem("Only time");
addItem("Only date");
addItem("Both");
forceLayout();
currentIndex = 0;
}
}
}