Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/plasmacomponents3/TextField.qml
Show All 26 Lines | |||||
27 | import "mobiletextselection" as MobileTextSelection | 27 | import "mobiletextselection" as MobileTextSelection | ||
28 | 28 | | |||
29 | T.TextField { | 29 | T.TextField { | ||
30 | id: control | 30 | id: control | ||
31 | 31 | | |||
32 | implicitWidth: Math.max(units.gridUnit * 8, | 32 | implicitWidth: Math.max(units.gridUnit * 8, | ||
33 | placeholderText ? placeholder.implicitWidth + leftPadding + rightPadding : 0) | 33 | placeholderText ? placeholder.implicitWidth + leftPadding + rightPadding : 0) | ||
34 | || contentWidth + leftPadding + rightPadding | 34 | || contentWidth + leftPadding + rightPadding | ||
35 | implicitHeight: units.gridUnit * 1.6 | 35 | implicitHeight: Math.floor(units.gridUnit * 1.6) + Math.floor(units.gridUnit * 1.6) % 2 | ||
36 | 36 | | |||
37 | padding: 6 | 37 | padding: 6 | ||
38 | 38 | | |||
39 | color: theme.viewTextColor | 39 | color: theme.viewTextColor | ||
40 | selectionColor: theme.highlightColor | 40 | selectionColor: theme.highlightColor | ||
41 | selectedTextColor: theme.highlightedTextColor | 41 | selectedTextColor: theme.highlightedTextColor | ||
42 | verticalAlignment: TextInput.AlignVCenter | 42 | verticalAlignment: TextInput.AlignVCenter | ||
43 | opacity: control.enabled ? 1 : 0.6 | 43 | opacity: control.enabled ? 1 : 0.6 | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |