aboutsummaryrefslogtreecommitdiff
path: root/components/LineEdit.qml
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-08-07 15:47:56 +0200
committerJaquee <jaquee.monero@gmail.com>2017-11-03 16:57:11 +0100
commit9e0db8f4ffa7d979ffb07cd9d76aee885c261196 (patch)
treecd8846ccc546cb6328de47695411d89f679df79b /components/LineEdit.qml
parent66bb3fe7ac2b4e890ae7b89931f537bbfea1dd46 (diff)
downloadmonzero-gui-9e0db8f4ffa7d979ffb07cd9d76aee885c261196.tar.gz
monzero-gui-9e0db8f4ffa7d979ffb07cd9d76aee885c261196.tar.xz
monzero-gui-9e0db8f4ffa7d979ffb07cd9d76aee885c261196.zip
components mobile scaling
Diffstat (limited to 'components/LineEdit.qml')
-rw-r--r--components/LineEdit.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/LineEdit.qml b/components/LineEdit.qml
index 3760fd2a..f7cb0612 100644
--- a/components/LineEdit.qml
+++ b/components/LineEdit.qml
@@ -36,13 +36,13 @@ Item {
property alias readOnly : input.readOnly
property alias cursorPosition: input.cursorPosition
property alias echoMode: input.echoMode
- property int fontSize: 18
+ property int fontSize: 18 * scaleRatio
property bool error: false
signal editingFinished()
signal accepted();
signal textUpdated();
- height: 37
+ height: 37 * scaleRatio
function getColor(error) {
if (error)
@@ -53,14 +53,14 @@ Item {
Rectangle {
anchors.fill: parent
- anchors.bottomMargin: 1
+ anchors.bottomMargin: 1 * scaleRatio
color: "#DBDBDB"
//radius: 4
}
Rectangle {
anchors.fill: parent
- anchors.topMargin: 1
+ anchors.topMargin: 1 * scaleRatio
color: getColor(error)
//radius: 4
}
@@ -68,8 +68,8 @@ Item {
Input {
id: input
anchors.fill: parent
- anchors.leftMargin: 4
- anchors.rightMargin: 30
+ anchors.leftMargin: 4 * scaleRatio
+ anchors.rightMargin: 30 * scaleRatio
font.pixelSize: parent.fontSize
onEditingFinished: item.editingFinished()
onAccepted: item.accepted();