![Uwe Rathmann](/assets/img/avatar_default.png)
textures now. Implementation is almost complete beside of the not yet done Qt antialiasing mode. Not all sort of linear gradients ( see QLinearGradients ) are implemented - needs 1-2 days more. The aspect flags for box primitives have been substantially changed from too atomic to more strutured units. The skins are currently incomplete - will be fixed later.
133 lines
2.4 KiB
QML
133 lines
2.4 KiB
QML
import Skinny 1.0 as Qsk
|
|
import QtQuick 2.5
|
|
import "qrc:/qml"
|
|
|
|
Qsk.Window
|
|
{
|
|
id: window
|
|
visible: true
|
|
// visibility: QskWindow.Minimized
|
|
|
|
width: 600
|
|
height: 600
|
|
color: "Beige"
|
|
|
|
Qsk.LinearBox
|
|
{
|
|
orientation: Qt.Horizontal
|
|
dimension: 3
|
|
|
|
margins: 10
|
|
spacing: 10
|
|
|
|
TestButton
|
|
{
|
|
text: "Push Me"
|
|
focus: true
|
|
}
|
|
|
|
TestButton
|
|
{
|
|
text: "Disabled"
|
|
enabled: false
|
|
}
|
|
|
|
TestButton
|
|
{
|
|
text: "The quick brown fox jumps over the lazy dog !"
|
|
clip: true
|
|
|
|
textOptions
|
|
{
|
|
elideMode: Qt.ElideNone
|
|
wrapMode: Qsk.TextOptions.WordWrap
|
|
}
|
|
}
|
|
|
|
TestButton
|
|
{
|
|
text: "The <b><font color='red'>quick</font></b> brown fox jumps over the lazy dog !"
|
|
textOptions
|
|
{
|
|
format: Qsk.TextOptions.AutoText
|
|
elideMode: Qt.ElideRight
|
|
}
|
|
|
|
onClicked:
|
|
{
|
|
textOptions.format = textOptions.format === Qsk.TextOptions.AutoText
|
|
? Qsk.TextOptions.PlainText : Qsk.TextOptions.AutoText
|
|
}
|
|
}
|
|
|
|
TestButton
|
|
{
|
|
text: "Autorepeater"
|
|
|
|
autoRepeat: true
|
|
autoRepeatDelay: 500
|
|
autoRepeatInterval: 200
|
|
}
|
|
|
|
TestButton
|
|
{
|
|
text: "Check Me"
|
|
graphicSource: "image://shapes/Ring/Khaki"
|
|
|
|
checkable: true
|
|
}
|
|
|
|
TestButton
|
|
{
|
|
text: "Check Me"
|
|
|
|
flat: true
|
|
|
|
checkable: true
|
|
}
|
|
|
|
TestButton
|
|
{
|
|
text: "Push Me"
|
|
|
|
flat: true
|
|
}
|
|
|
|
TestButton
|
|
{
|
|
text: "Disabled"
|
|
|
|
flat: true
|
|
enabled: false
|
|
}
|
|
|
|
|
|
TestButton
|
|
{
|
|
graphicSource: "image://shapes/Diamond/SandyBrown"
|
|
|
|
corner
|
|
{
|
|
sizeMode: Qt.RelativeSize
|
|
aspectRatioMode: Qt.IgnoreAspectRatio
|
|
radius: 100
|
|
}
|
|
}
|
|
|
|
TestButton
|
|
{
|
|
text: "Push Me"
|
|
|
|
corner
|
|
{
|
|
sizeMode: Qt.AbsoluteSize
|
|
radius: 0.0
|
|
}
|
|
}
|
|
}
|
|
|
|
Qsk.FocusIndicator
|
|
{
|
|
}
|
|
}
|