update: qt6,qml,frontends (2 files)

This commit is contained in:
2025-12-26 06:38:48 +00:00
parent 0e008894f2
commit d0d8f53458
2 changed files with 8 additions and 8 deletions

View File

@@ -6,15 +6,15 @@ import "MaterialPalette.qml" as MaterialPalette
Rectangle {
id: chip
property string text: ""
property color fillColor: MaterialPalette.palette.surfaceVariant
property color textColor: MaterialPalette.palette.onSurface
property color fillColor: MaterialPalette.surfaceVariant
property color textColor: MaterialPalette.onSurface
property bool outlined: false
radius: 999
height: 32
implicitWidth: label.width + 32
color: outlined ? "transparent" : fillColor
border.color: outlined ? MaterialPalette.palette.outline : "transparent"
border.color: outlined ? MaterialPalette.outline : "transparent"
border.width: outlined ? 1 : 0
Text {

View File

@@ -5,19 +5,19 @@ import "MaterialPalette.qml" as MaterialPalette
TextField {
id: field
property color baseColor: MaterialPalette.palette.surfaceVariant
property color focusColor: MaterialPalette.palette.focus
property color caretColor: MaterialPalette.palette.onSurface
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.palette.outline
border.color: field.activeFocus ? focusColor : MaterialPalette.outline
color: baseColor
}
color: MaterialPalette.palette.onSurface
color: MaterialPalette.onSurface
cursorVisible: true
cursorColor: caretColor
padding: 14