Added project implementation
This commit is contained in:
29
qml/Controls/IndicatorTextField.qml
Normal file
29
qml/Controls/IndicatorTextField.qml
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user