Power: Add extension options

pull/55/head
reionwong 4 years ago
parent 641c378464
commit 589364b289

@ -34,6 +34,10 @@ ItemPage {
id: power
}
Battery {
id: battery
}
Scrollable {
anchors.fill: parent
contentHeight: layout.implicitHeight
@ -82,6 +86,101 @@ ItemPage {
wrapMode: Text.WordWrap
text: qsTr("Performance mode: CPU and GPU frequencies will be increased, while power consumption and heat generation will be increased.")
}
RoundedItem {
Layout.topMargin: FishUI.Units.largeSpacing
Label {
text: qsTr("Plugged In")
color: FishUI.Theme.disabledTextColor
}
GridLayout {
columns: 2
Label {
text: qsTr("Turn off screen")
Layout.fillWidth: true
}
ComboBox {
model: ListModel {
ListElement { text: qsTr("2 Minutes") }
ListElement { text: qsTr("5 Minutes") }
ListElement { text: qsTr("10 Minutes") }
ListElement { text: qsTr("15 Minutes") }
ListElement { text: qsTr("30 Minutes") }
ListElement { text: qsTr("Never") }
}
}
Label {
text: qsTr("Hibernate")
Layout.fillWidth: true
}
ComboBox {
model: ListModel {
ListElement { text: qsTr("2 Minutes") }
ListElement { text: qsTr("5 Minutes") }
ListElement { text: qsTr("10 Minutes") }
ListElement { text: qsTr("15 Minutes") }
ListElement { text: qsTr("30 Minutes") }
ListElement { text: qsTr("Never") }
}
}
}
}
RoundedItem {
visible: battery.available
Layout.topMargin: FishUI.Units.largeSpacing
Label {
text: qsTr("On Battery")
color: FishUI.Theme.disabledTextColor
}
GridLayout {
columns: 2
Label {
text: qsTr("Turn off screen")
Layout.fillWidth: true
}
ComboBox {
model: ListModel {
ListElement { text: qsTr("2 Minutes") }
ListElement { text: qsTr("5 Minutes") }
ListElement { text: qsTr("10 Minutes") }
ListElement { text: qsTr("15 Minutes") }
ListElement { text: qsTr("30 Minutes") }
ListElement { text: qsTr("Never") }
}
}
Label {
text: qsTr("Hibernate")
Layout.fillWidth: true
}
ComboBox {
model: ListModel {
ListElement { text: qsTr("2 Minutes") }
ListElement { text: qsTr("5 Minutes") }
ListElement { text: qsTr("10 Minutes") }
ListElement { text: qsTr("15 Minutes") }
ListElement { text: qsTr("30 Minutes") }
ListElement { text: qsTr("Never") }
}
}
}
}
Item {
height: FishUI.Units.largeSpacing * 2
}
}
}
}

@ -389,6 +389,76 @@
<source>Performance mode: CPU and GPU frequencies will be increased, while power consumption and heat generation will be increased.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="90"/>
<source>Plugged In</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="98"/>
<location filename="../src/qml/Power/Main.qml" line="143"/>
<source>Turn off screen</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="104"/>
<location filename="../src/qml/Power/Main.qml" line="120"/>
<location filename="../src/qml/Power/Main.qml" line="149"/>
<location filename="../src/qml/Power/Main.qml" line="165"/>
<source>2 Minutes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="105"/>
<location filename="../src/qml/Power/Main.qml" line="121"/>
<location filename="../src/qml/Power/Main.qml" line="150"/>
<location filename="../src/qml/Power/Main.qml" line="166"/>
<source>5 Minutes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="106"/>
<location filename="../src/qml/Power/Main.qml" line="122"/>
<location filename="../src/qml/Power/Main.qml" line="151"/>
<location filename="../src/qml/Power/Main.qml" line="167"/>
<source>10 Minutes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="107"/>
<location filename="../src/qml/Power/Main.qml" line="123"/>
<location filename="../src/qml/Power/Main.qml" line="152"/>
<location filename="../src/qml/Power/Main.qml" line="168"/>
<source>15 Minutes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="108"/>
<location filename="../src/qml/Power/Main.qml" line="124"/>
<location filename="../src/qml/Power/Main.qml" line="153"/>
<location filename="../src/qml/Power/Main.qml" line="169"/>
<source>30 Minutes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="109"/>
<location filename="../src/qml/Power/Main.qml" line="125"/>
<location filename="../src/qml/Power/Main.qml" line="154"/>
<location filename="../src/qml/Power/Main.qml" line="170"/>
<source>Never</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="114"/>
<location filename="../src/qml/Power/Main.qml" line="159"/>
<source>Hibernate</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="135"/>
<source>On Battery</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/qml/User/Main.qml" line="31"/>
<source>User</source>

@ -389,6 +389,76 @@
<source>Performance mode: CPU and GPU frequencies will be increased, while power consumption and heat generation will be increased.</source>
<translation>: CPUGPU</translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="90"/>
<source>Plugged In</source>
<translation>使</translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="98"/>
<location filename="../src/qml/Power/Main.qml" line="143"/>
<source>Turn off screen</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="104"/>
<location filename="../src/qml/Power/Main.qml" line="120"/>
<location filename="../src/qml/Power/Main.qml" line="149"/>
<location filename="../src/qml/Power/Main.qml" line="165"/>
<source>2 Minutes</source>
<translation>2</translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="105"/>
<location filename="../src/qml/Power/Main.qml" line="121"/>
<location filename="../src/qml/Power/Main.qml" line="150"/>
<location filename="../src/qml/Power/Main.qml" line="166"/>
<source>5 Minutes</source>
<translation>5</translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="106"/>
<location filename="../src/qml/Power/Main.qml" line="122"/>
<location filename="../src/qml/Power/Main.qml" line="151"/>
<location filename="../src/qml/Power/Main.qml" line="167"/>
<source>10 Minutes</source>
<translation>10</translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="107"/>
<location filename="../src/qml/Power/Main.qml" line="123"/>
<location filename="../src/qml/Power/Main.qml" line="152"/>
<location filename="../src/qml/Power/Main.qml" line="168"/>
<source>15 Minutes</source>
<translation>15</translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="108"/>
<location filename="../src/qml/Power/Main.qml" line="124"/>
<location filename="../src/qml/Power/Main.qml" line="153"/>
<location filename="../src/qml/Power/Main.qml" line="169"/>
<source>30 Minutes</source>
<translation>30</translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="109"/>
<location filename="../src/qml/Power/Main.qml" line="125"/>
<location filename="../src/qml/Power/Main.qml" line="154"/>
<location filename="../src/qml/Power/Main.qml" line="170"/>
<source>Never</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="114"/>
<location filename="../src/qml/Power/Main.qml" line="159"/>
<source>Hibernate</source>
<translation></translation>
</message>
<message>
<location filename="../src/qml/Power/Main.qml" line="135"/>
<source>On Battery</source>
<translation>使</translation>
</message>
<message>
<location filename="../src/qml/User/Main.qml" line="31"/>
<source>User</source>

Loading…
Cancel
Save