update
parent
ca57b16521
commit
609df92f8c
|
@ -2,7 +2,7 @@ import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import FluentUI
|
import FluentUI
|
||||||
|
|
||||||
TextField {
|
TextEdit {
|
||||||
property color textColor: FluTheme.dark ? FluColors.White : FluColors.Grey220
|
property color textColor: FluTheme.dark ? FluColors.White : FluColors.Grey220
|
||||||
id:control
|
id:control
|
||||||
color: textColor
|
color: textColor
|
||||||
|
@ -16,15 +16,6 @@ TextField {
|
||||||
topPadding: 0
|
topPadding: 0
|
||||||
bottomPadding: 0
|
bottomPadding: 0
|
||||||
selectionColor: FluTheme.primaryColor.lightest
|
selectionColor: FluTheme.primaryColor.lightest
|
||||||
TextMetrics {
|
|
||||||
id: text_metrics
|
|
||||||
font:control.font
|
|
||||||
text: control.text
|
|
||||||
}
|
|
||||||
background: Item{
|
|
||||||
implicitWidth: text_metrics.width+10
|
|
||||||
implicitHeight: text_metrics.height
|
|
||||||
}
|
|
||||||
font:FluTextStyle.Body
|
font:FluTextStyle.Body
|
||||||
TapHandler {
|
TapHandler {
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
|
|
Loading…
Reference in New Issue