mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-18 12:15:27 +00:00
Addeded the possibility to remove the frame
This commit is contained in:
parent
750d03979c
commit
b25a3f6a4f
@ -45,4 +45,5 @@ OTHER_FILES += \
|
||||
qml/cool-old-term/frames/images/screen-frame.png \
|
||||
qml/cool-old-term/frames/images/screen-frame-normals.png \
|
||||
qml/cool-old-term/frames/images/black-frame.png \
|
||||
qml/cool-old-term/frames/images/black-frame-normals.png
|
||||
qml/cool-old-term/frames/images/black-frame-normals.png \
|
||||
qml/cool-old-term/frames/NoFrame.qml
|
||||
|
@ -8,7 +8,7 @@ Item{
|
||||
|
||||
property real brightness_flickering: 0.2
|
||||
property real noise_strength: 0.1
|
||||
property real screen_distortion: 0.15
|
||||
property real screen_distortion: 0.0
|
||||
property real glowing_line_strength: 0.4
|
||||
//property real faulty_screen_prob: 1.0
|
||||
|
||||
|
18
qml/cool-old-term/frames/NoFrame.qml
Normal file
18
qml/cool-old-term/frames/NoFrame.qml
Normal file
@ -0,0 +1,18 @@
|
||||
import QtQuick 2.0
|
||||
import "utils"
|
||||
|
||||
TerminalFrame{
|
||||
id: frame
|
||||
z: 2.1
|
||||
anchors.fill: parent
|
||||
addedWidth: 190
|
||||
addedHeight: 190
|
||||
borderLeft: 116
|
||||
borderRight: 116
|
||||
borderTop: 116
|
||||
borderBottom: 116
|
||||
imageSource: "../images/screen-frame.png"
|
||||
sourceRect: Qt.rect(-65, -75, terminal.width + 130, terminal.height + 150)
|
||||
|
||||
shaderString: "NoFrameShader.qml"
|
||||
}
|
@ -191,13 +191,12 @@ ApplicationWindow{
|
||||
}
|
||||
|
||||
Loader{
|
||||
property rect sourceRect
|
||||
property rect sourceRect: item.sourceRect
|
||||
|
||||
id: frame
|
||||
anchors.fill: parent
|
||||
z: 2.1
|
||||
source: "./frames/WhiteSimpleFrame.qml"
|
||||
onLoaded: sourceRect = item.sourceRect;
|
||||
source: "./frames/NoFrame.qml"
|
||||
}
|
||||
|
||||
TerminalScreen {
|
||||
|
Loading…
x
Reference in New Issue
Block a user