1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2024-10-05 18:40:49 +01:00

various graphical improvements

This commit is contained in:
Filippo Scognamiglio 2013-11-23 17:34:11 +01:00
parent d6fd97d2a8
commit 5c2064ed43
4 changed files with 12 additions and 4 deletions

View File

@ -2,7 +2,7 @@ import QtQuick 2.0
Item{ Item{
property real noise_strength: 0.25 property real noise_strength: 0.25
property rect base_color: Qt.rect(0.5, 1.0, 0.5, 1.0) property rect base_color: Qt.rect(1.0, 0.9, 0.0, 1.0)
property real screen_distortion: 0.15 property real screen_distortion: 0.15
property real glowing_line_strength: 0.7 property real glowing_line_strength: 0.7
//property real faulty_screen_prob: 1.0 //property real faulty_screen_prob: 1.0

View File

@ -12,7 +12,7 @@ TerminalScreen {
property var lineComponent : Qt.createComponent("TerminalLine.qml") property var lineComponent : Qt.createComponent("TerminalLine.qml")
font.family: "monospace" font.family: "monospace"
font.pointSize: 14 font.pointSize: 17
Text { Text {
id: fontMetricText id: fontMetricText
@ -116,6 +116,11 @@ TerminalScreen {
x: 0 x: 0
y: 0 y: 0
color: "white" color: "white"
SequentialAnimation on opacity{
NumberAnimation{from: 0; to: 1; duration: 500}
NumberAnimation{from: 1; to: 0; duration: 500}
loops: Animation.Infinite
}
} }
Rectangle { Rectangle {

View File

@ -48,7 +48,7 @@ ObjectDestructItem {
id: textElement id: textElement
anchors.fill: parent anchors.fill: parent
text: objectHandle.text text: objectHandle.text
color: objectHandle.foregroundColor color: "white" //objectHandle.foregroundColor
font: textItem.font font: textItem.font
textFormat: Text.PlainText textFormat: Text.PlainText
} }

View File

@ -33,6 +33,8 @@ ApplicationWindow{
width: 1024 width: 1024
height: 768 height: 768
title: terminal.screen.title ? terminal.screen.title : qsTr("Terminal")
visible: true visible: true
ShaderSettings{ ShaderSettings{
@ -42,7 +44,7 @@ ApplicationWindow{
ShaderEffectSource{ ShaderEffectSource{
id: theSource id: theSource
sourceItem: terminal sourceItem: terminal
sourceRect: Qt.rect(-20, -20, kterm.width + 40, kterm.height + 40) sourceRect: Qt.rect(-20, -20, terminal.width + 40, terminal.height + 40)
} }
ShaderEffect { ShaderEffect {
@ -64,6 +66,7 @@ ApplicationWindow{
from: -1 from: -1
to: 100 to: 100
duration: 5000 duration: 5000
loops: Animation.Infinite loops: Animation.Infinite
} }