mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-18 12:15:27 +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 string imageSource
|
||||
property string normalsSource
|
||||
property Component shader
|
||||
property rect sourceRect
|
||||
property string shaderString
|
||||
|
||||
BorderImage{
|
||||
|
@ -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"
|
||||
}
|
||||
|
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…
Reference in New Issue
Block a user