summaryrefslogtreecommitdiffstats
path: root/src/settingsui
diff options
context:
space:
mode:
Diffstat (limited to 'src/settingsui')
-rw-r--r--src/settingsui/locale/Language.qml105
-rw-r--r--src/settingsui/locale/TableKey.qml7
-rw-r--r--src/settingsui/locale/TableValue.qml7
3 files changed, 36 insertions, 83 deletions
diff --git a/src/settingsui/locale/Language.qml b/src/settingsui/locale/Language.qml
index 79c72e7..55a6627 100644
--- a/src/settingsui/locale/Language.qml
+++ b/src/settingsui/locale/Language.qml
@@ -37,110 +37,73 @@ Item {
id: root
property var currentRegion: Qt.locale(LocaleManager.locale)
- Row {
- id: regionRow
- anchors.top: parent.top
- anchors.topMargin: parent.height * 0.075
- anchors.left: parent.left
- height: parent.height * 0.075
+ Column {
+ spacing: pluginMain.spacing
Text {
- width: root.width * 0.2
- height: root.height * 0.04
- anchors.verticalCenter: parent.verticalCenter
- horizontalAlignment: Text.AlignLeft
- verticalAlignment: Text.AlignVCenter
- font.pixelSize: height
color: "white"
text: qsTr("Region")
+ font.pixelSize: pluginMain.subTitleFontSize
font.family: appFont
- font.styleName: "Bold"
}
- QtButton {
- id: regionButton
- height: parent.height
- fillColor: "#41cd52"
- text: root.currentRegion.nativeCountryName
- onClicked: settingsLoader.source = "qrc:/locale/RegionSelect.qml"
+
+ Row {
+ leftPadding: pluginMain.margin
+ spacing: pluginMain.spacing
+ Text {
+ color: "white"
+ text: root.currentRegion.nativeCountryName == "" ? "Default" : root.currentRegion.nativeCountryName
+ font.pixelSize: pluginMain.valueFontSize
+ font.family: appFont
+ verticalAlignment: Text.AlignVCenter
+ height: parent.height
+ }
+ QtButton {
+ id: regionButton
+ height: pluginMain.buttonHeight
+ fillColor: "#41cd52"
+ text: qsTr("CHANGE")
+ onClicked: settingsLoader.source = "qrc:/locale/RegionSelect.qml"
+ }
}
- }
- Text {
- id: formatText
- width: root.width * 0.2
- anchors.top: regionRow.bottom
- anchors.topMargin: parent.height * 0.1
- anchors.left: parent.left
- font.pixelSize: parent.height * 0.04
- text: qsTr("Format")
- horizontalAlignment: Text.AlignLeft
- color: "white"
- font.family: appFont
- font.styleName: "Bold"
- }
+ Text {
+ color: "white"
+ text: qsTr("Format")
+ font.pixelSize: pluginMain.subTitleFontSize
+ font.family: appFont
+ }
+
+ Grid {
+ columns: 2
+ leftPadding: pluginMain.margin
+ spacing: pluginMain.spacing
- Column {
- id: localeColumn
- anchors.bottom: parent.bottom
- anchors.top: formatText.bottom
- anchors.topMargin: parent.height * 0.025
- anchors.left: formatText.right
- width: parent.width * 0.5
- spacing: parent.height * 0.01
- Row {
- id: regionFormat
- anchors.left: parent.left
- anchors.right: parent.right
- height: parent.height * 0.1
TableKey {
text: qsTr("Region")
}
TableValue {
text: root.currentRegion.nativeCountryName
}
- }
- Row {
- id: shortDateFormat
- anchors.left: parent.left
- anchors.right: parent.right
- height: parent.height * 0.1
+
TableKey {
text: qsTr("Short date:")
}
TableValue {
text: root.currentRegion.dateFormat(1)
}
- }
- Row {
- id: shortTimeFormat
- anchors.left: parent.left
-
- anchors.right: parent.right
- height: parent.height * 0.1
TableKey {
text: qsTr("Short time:")
}
TableValue {
text: root.currentRegion.timeFormat(1)
}
- }
- Row {
- id: currencyFormat
- anchors.left: parent.left
- anchors.right: parent.right
- height: parent.height * 0.1
TableKey {
text: qsTr("Currency:")
}
TableValue {
text: root.currentRegion.currencySymbol(1)
}
- }
- Row {
- id: firstDayFormat
- anchors.left: parent.left
- anchors.right: parent.right
- height: parent.height * 0.1
TableKey {
text: qsTr("First day of week:")
}
diff --git a/src/settingsui/locale/TableKey.qml b/src/settingsui/locale/TableKey.qml
index 27e3fd4..523f0dd 100644
--- a/src/settingsui/locale/TableKey.qml
+++ b/src/settingsui/locale/TableKey.qml
@@ -29,12 +29,7 @@
import QtQuick 2.0
Text {
- width: root.width * 0.325
- height: parent.height
- anchors.verticalCenter: parent.verticalCenter
- horizontalAlignment: Text.AlignLeft
- verticalAlignment: Text.AlignVCenter
- font.pixelSize: parent.height * 0.55
color: "white"
+ font.pixelSize: pluginMain.valueFontSize
font.family: appFont
}
diff --git a/src/settingsui/locale/TableValue.qml b/src/settingsui/locale/TableValue.qml
index f5ac00d..523f0dd 100644
--- a/src/settingsui/locale/TableValue.qml
+++ b/src/settingsui/locale/TableValue.qml
@@ -29,12 +29,7 @@
import QtQuick 2.0
Text {
- width: root.width * 0.2
- height: parent.height
- anchors.verticalCenter: parent.verticalCenter
- horizontalAlignment: Text.AlignLeft
- verticalAlignment: Text.AlignVCenter
- font.pixelSize: parent.height * 0.55
color: "white"
+ font.pixelSize: pluginMain.valueFontSize
font.family: appFont
}