mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-18 20:20:45 +00:00
added a black and rough frame
This commit is contained in:
parent
6a8ce43075
commit
c80c73f591
@ -10,7 +10,7 @@ Item{
|
|||||||
property int borderBottom
|
property int borderBottom
|
||||||
property string imageSource
|
property string imageSource
|
||||||
property string normalsSource
|
property string normalsSource
|
||||||
property Component shader
|
property rect sourceRect
|
||||||
property string shaderString
|
property string shaderString
|
||||||
|
|
||||||
BorderImage{
|
BorderImage{
|
||||||
|
@ -70,7 +70,7 @@ ApplicationWindow{
|
|||||||
ShaderEffectSource{
|
ShaderEffectSource{
|
||||||
id: theSource
|
id: theSource
|
||||||
sourceItem: terminal
|
sourceItem: terminal
|
||||||
sourceRect: Qt.rect(-65, -75, terminal.width + 130, terminal.height + 150)
|
sourceRect: frame.sourceRect
|
||||||
}
|
}
|
||||||
|
|
||||||
ShaderEffect {
|
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{
|
TerminalFrame{
|
||||||
id: frame
|
id: frame
|
||||||
z: 2.1
|
z: 2.1
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
addedWidth: 140
|
addedWidth: 200
|
||||||
addedHeight: 140
|
addedHeight: 370
|
||||||
borderLeft: 116
|
borderLeft: 148
|
||||||
borderRight: 116
|
borderRight: 148
|
||||||
borderTop: 116
|
borderTop: 232
|
||||||
borderBottom: 116
|
borderBottom: 232
|
||||||
imageSource: "../images/screen-frame.png"
|
imageSource: "../images/black-frame.png"
|
||||||
normalsSource: "../images/screen-frame-normals.png"
|
normalsSource: "../images/black-frame-normals.png"
|
||||||
|
sourceRect: Qt.rect(-80, -90, terminal.width + 160, terminal.height + 180 )
|
||||||
|
|
||||||
shaderString: "WhiteFrameShader.qml"
|
shaderString: "WhiteFrameShader.qml"
|
||||||
}
|
}
|
||||||
|
BIN
qml/images/black-frame-normals.png
Normal file
BIN
qml/images/black-frame-normals.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 MiB |
BIN
qml/images/black-frame.png
Normal file
BIN
qml/images/black-frame.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
Loading…
x
Reference in New Issue
Block a user