TeroStyle - Theme initial try

This commit is contained in:
2025-03-13 15:04:53 +01:00
parent 773d398f8c
commit d300e9c92a
8 changed files with 64 additions and 2 deletions

37
TeroStyle/Button.qml Executable file
View File

@@ -0,0 +1,37 @@
import QtQuick
import QtQuick.Templates as T
T.Button
{
id: tsBut
property int tsWidth: tsButtonText.width + 10
property int tsHeight: tsButtonText.height + 8
height: tsHeight
width: tsWidth
background: Rectangle
{
id: tsButton
anchors.fill: parent
radius: 50
color: "red"
MouseArea
{
id: mouseArea
anchors.fill: parent
onClicked: tsBut.clicked()
}
Text
{
id: tsButtonText
anchors.centerIn: parent
color: "indigo"
//font.pixelSize: 13
font: tsBut.font
text: tsBut.text
}
}
}