mirror of
https://github.com/overte-org/overte.git
synced 2025-04-28 05:05:17 +02:00
23 lines
625 B
QML
23 lines
625 B
QML
import QtQuick 2.3
|
|
import QtQuick.Controls 1.3
|
|
import QtQuick.Window 2.2
|
|
import QtQuick.Controls.Styles 1.3
|
|
|
|
Button {
|
|
SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
|
|
text: "Text"
|
|
width: 128
|
|
height: 64
|
|
style: ButtonStyle {
|
|
background: CustomBorder {
|
|
anchors.fill: parent
|
|
}
|
|
label: CustomText {
|
|
renderType: Text.NativeRendering
|
|
verticalAlignment: Text.AlignVCenter
|
|
horizontalAlignment: Text.AlignHCenter
|
|
text: control.text
|
|
color: control.enabled ? myPalette.text : myPalette.dark
|
|
}
|
|
}
|
|
}
|