2023-05-22 21:58:37 +00:00
|
|
|
import QtCore
|
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Controls.Basic
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
id: myTextField
|
|
|
|
padding: 10
|
2024-01-22 19:41:47 +00:00
|
|
|
placeholderTextColor: theme.mutedTextColor
|
2023-05-22 21:58:37 +00:00
|
|
|
background: Rectangle {
|
|
|
|
implicitWidth: 150
|
2024-01-22 19:41:47 +00:00
|
|
|
color: myTextField.enabled ? theme.controlBackground : theme.disabledControlBackground
|
|
|
|
border.width: 1
|
|
|
|
border.color: theme.controlBorder
|
2023-05-22 21:58:37 +00:00
|
|
|
radius: 10
|
|
|
|
}
|
2024-01-22 19:41:47 +00:00
|
|
|
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
|
|
|
|
color: enabled ? theme.textColor : theme.mutedTextColor
|
|
|
|
}
|