diff --git a/frontends/qt6/qmllib/Material/MaterialChip.qml b/frontends/qt6/qmllib/Material/MaterialChip.qml index 974ed4114..d6dfa2e62 100644 --- a/frontends/qt6/qmllib/Material/MaterialChip.qml +++ b/frontends/qt6/qmllib/Material/MaterialChip.qml @@ -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 { diff --git a/frontends/qt6/qmllib/Material/MaterialTextField.qml b/frontends/qt6/qmllib/Material/MaterialTextField.qml index cc4089f60..eec4664b8 100644 --- a/frontends/qt6/qmllib/Material/MaterialTextField.qml +++ b/frontends/qt6/qmllib/Material/MaterialTextField.qml @@ -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