Adjust padding for Buttons, TextFields, TextAreas
This commit is contained in:
parent
a6aec2d5bf
commit
6953250e50
|
@ -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
|
||||
|
|
|
@ -14,6 +14,11 @@ ScrollView {
|
|||
|
||||
TextArea {
|
||||
id: textArea
|
||||
leftPadding: theme.spacing
|
||||
rightPadding: leftPadding
|
||||
topPadding: theme.spacing / 1.5
|
||||
bottomPadding: topPadding
|
||||
|
||||
readOnly: ! visible
|
||||
selectByMouse: true
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user