Adjust padding for Buttons, TextFields, TextAreas

This commit is contained in:
miruka 2019-08-30 18:10:25 -04:00
parent a6aec2d5bf
commit 6953250e50
3 changed files with 13 additions and 2 deletions

View File

@ -5,10 +5,11 @@ import QtQuick.Layouts 1.12
Button {
id: button
spacing: theme.spacing
leftPadding: spacing / 1.5
leftPadding: spacing / (circle ? 1.5 : 1)
rightPadding: leftPadding
topPadding: spacing / 2
topPadding: spacing / (circle ? 1.75 : 1.5)
bottomPadding: topPadding
iconItem.svgName: loading ? "hourglass" : icon.name
icon.color: theme.icons.colorize
enabled: ! loading

View File

@ -14,6 +14,11 @@ ScrollView {
TextArea {
id: textArea
leftPadding: theme.spacing
rightPadding: leftPadding
topPadding: theme.spacing / 1.5
bottomPadding: topPadding
readOnly: ! visible
selectByMouse: true

View File

@ -3,6 +3,11 @@ import QtQuick.Controls 2.12
TextField {
id: field
leftPadding: theme.spacing
rightPadding: leftPadding
topPadding: theme.spacing / 1.5
bottomPadding: topPadding
font.family: theme.fontFamily.sans
font.pixelSize: theme.fontSize.normal
font.pointSize: -1