Addeded the possibility to remove the frame

This commit is contained in:
Filippo Scognamiglio 2013-12-25 19:08:03 +01:00
parent 750d03979c
commit b25a3f6a4f
4 changed files with 23 additions and 5 deletions

View File

@ -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

View File

@ -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

View 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"
}

View File

@ -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 {