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 { Button {
id: button id: button
spacing: theme.spacing spacing: theme.spacing
leftPadding: spacing / 1.5 leftPadding: spacing / (circle ? 1.5 : 1)
rightPadding: leftPadding rightPadding: leftPadding
topPadding: spacing / 2 topPadding: spacing / (circle ? 1.75 : 1.5)
bottomPadding: topPadding bottomPadding: topPadding
iconItem.svgName: loading ? "hourglass" : icon.name iconItem.svgName: loading ? "hourglass" : icon.name
icon.color: theme.icons.colorize icon.color: theme.icons.colorize
enabled: ! loading enabled: ! loading

View File

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

View File

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