added a black and rough frame

This commit is contained in:
Filippo Scognamiglio 2013-12-25 18:02:02 +01:00
parent 6a8ce43075
commit c80c73f591
4 changed files with 28 additions and 10 deletions

View File

@ -10,7 +10,7 @@ Item{
property int borderBottom
property string imageSource
property string normalsSource
property Component shader
property rect sourceRect
property string shaderString
BorderImage{

View File

@ -70,7 +70,7 @@ ApplicationWindow{
ShaderEffectSource{
id: theSource
sourceItem: terminal
sourceRect: Qt.rect(-65, -75, terminal.width + 130, terminal.height + 150)
sourceRect: frame.sourceRect
}
ShaderEffect {
@ -190,18 +190,36 @@ ApplicationWindow{
}"
}
// TerminalFrame{
// id: frame
// z: 2.1
// anchors.fill: parent
// addedWidth: 140
// addedHeight: 140
// borderLeft: 116
// borderRight: 116
// borderTop: 116
// borderBottom: 116
// imageSource: "../images/screen-frame.png"
// normalsSource: "../images/screen-frame-normals.png"
// sourceRect: Qt.rect(-65, -75, terminal.width + 130, terminal.height + 150)
// shaderString: "WhiteFrameShader.qml"
// }
TerminalFrame{
id: frame
z: 2.1
anchors.fill: parent
addedWidth: 140
addedHeight: 140
borderLeft: 116
borderRight: 116
borderTop: 116
borderBottom: 116
imageSource: "../images/screen-frame.png"
normalsSource: "../images/screen-frame-normals.png"
addedWidth: 200
addedHeight: 370
borderLeft: 148
borderRight: 148
borderTop: 232
borderBottom: 232
imageSource: "../images/black-frame.png"
normalsSource: "../images/black-frame-normals.png"
sourceRect: Qt.rect(-80, -90, terminal.width + 160, terminal.height + 180 )
shaderString: "WhiteFrameShader.qml"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

BIN
qml/images/black-frame.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB