Files
Tksi310Monitor/qml/Controls/IndicatorTextField.qml
2024-01-22 17:37:10 +09:00

30 lines
607 B
QML

import QtQuick 2.12
import QtQuick.Controls 2.12 as Controls
import Palette 1.0
Controls.TextField {
id: control
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
topPadding: 10
bottomPadding: 10
leftPadding: 24
rightPadding: 24
font.family: "Roboto"
font.pixelSize: 40
font.weight: Font.Bold
color: Palette.labelTextColor
property color backgroundColor: Palette.indicatorBackgroundColor
property int backgroundRadius: 24
background: Rectangle {
color: backgroundColor
radius: backgroundRadius
}
}