update
parent
ca57b16521
commit
609df92f8c
|
@ -2,7 +2,7 @@ import QtQuick
|
|||
import QtQuick.Controls
|
||||
import FluentUI
|
||||
|
||||
TextField {
|
||||
TextEdit {
|
||||
property color textColor: FluTheme.dark ? FluColors.White : FluColors.Grey220
|
||||
id:control
|
||||
color: textColor
|
||||
|
@ -16,15 +16,6 @@ TextField {
|
|||
topPadding: 0
|
||||
bottomPadding: 0
|
||||
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
|
||||
TapHandler {
|
||||
acceptedButtons: Qt.RightButton
|
||||
|
|
Loading…
Reference in New Issue