mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-05-02 01:34:56 +00:00
update: qt6,qml,frontends (2 files)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user