mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 14:54:55 +00:00
25 lines
631 B
QML
25 lines
631 B
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
|
|
import "MaterialPalette.qml" as MaterialPalette
|
|
|
|
TextField {
|
|
id: field
|
|
property color baseColor: MaterialPalette.surfaceVariant
|
|
property color focusColor: MaterialPalette.focus
|
|
property color caretColor: MaterialPalette.onSurface
|
|
|
|
implicitHeight: 48
|
|
font.pixelSize: 15
|
|
background: Rectangle {
|
|
radius: 12
|
|
border.width: 1
|
|
border.color: field.activeFocus ? focusColor : MaterialPalette.outline
|
|
color: baseColor
|
|
}
|
|
color: MaterialPalette.onSurface
|
|
cursorVisible: true
|
|
cursorColor: caretColor
|
|
padding: 14
|
|
}
|