From deb4161bbeb49d11f7709e59a2826640398b81aa Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 15 Mar 2020 14:29:20 -0400 Subject: [PATCH] Make fields and text areas respect theme.radius --- src/gui/Base/HScrollableTextArea.qml | 1 + src/gui/Base/HTextField.qml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gui/Base/HScrollableTextArea.qml b/src/gui/Base/HScrollableTextArea.qml index ba5f0dc1..88ed0b26 100644 --- a/src/gui/Base/HScrollableTextArea.qml +++ b/src/gui/Base/HScrollableTextArea.qml @@ -65,6 +65,7 @@ ScrollView { background: Rectangle { id: textAreaBackground color: theme.controls.textArea.background + radius: theme.radius } Keys.onPressed: if ( diff --git a/src/gui/Base/HTextField.qml b/src/gui/Base/HTextField.qml index 72f99e5b..c2acbf0e 100644 --- a/src/gui/Base/HTextField.qml +++ b/src/gui/Base/HTextField.qml @@ -28,6 +28,7 @@ TextField { border.color: error ? errorBorder : field.activeFocus ? focusedBorderColor : borderColor border.width: bordered ? theme.controls.textField.borderWidth : 0 + radius: bordered ? theme.radius : 0 Behavior on color { HColorAnimation { factor: 0.25 } } Behavior on border.color { HColorAnimation { factor: 0.25 } }