Commit c62f6011 authored by Noah Davis's avatar Noah Davis 🌵
Browse files

[TextField] ceil implicit content width, remove unnecessary property, don't...

[TextField] ceil implicit content width, remove unnecessary property, don't inherit if background visible
parent 5d00168a
......@@ -19,19 +19,17 @@ T.TextField {
implicitWidth: implicitBackgroundWidth + leftInset + rightInset
|| Math.max(contentWidth, placeholder.implicitWidth) + leftPadding + rightPadding
|| Math.ceil(Math.max(contentWidth, placeholder.implicitWidth)) + leftPadding + rightPadding
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding,
placeholder.implicitHeight + topPadding + bottomPadding)
property real horizontalPadding: Kirigami.Units.mediumHorizontalPadding
padding: Kirigami.Units.mediumSpacing
leftPadding: horizontalPadding
rightPadding: horizontalPadding
leftPadding: Kirigami.Units.mediumHorizontalPadding
rightPadding: Kirigami.Units.mediumHorizontalPadding
palette: Kirigami.Theme.palette
Kirigami.Theme.colorSet: Kirigami.Theme.View
Kirigami.Theme.inherit: background == null
Kirigami.Theme.inherit: !background || !background.visible
color: Kirigami.Theme.textColor
selectionColor: Kirigami.Theme.highlightColor
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment