From 5c2064ed436360b62345c5cd387bd8a05a69e10a Mon Sep 17 00:00:00 2001 From: Filippo Scognamiglio Date: Sat, 23 Nov 2013 17:34:11 +0100 Subject: [PATCH] various graphical improvements --- qml/cool-old-term/ShaderSettings.qml | 2 +- qml/cool-old-term/TerminalScreen.qml | 7 ++++++- qml/cool-old-term/TerminalText.qml | 2 +- qml/cool-old-term/main.qml | 5 ++++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/qml/cool-old-term/ShaderSettings.qml b/qml/cool-old-term/ShaderSettings.qml index 6422d3e..80b6fde 100644 --- a/qml/cool-old-term/ShaderSettings.qml +++ b/qml/cool-old-term/ShaderSettings.qml @@ -2,7 +2,7 @@ import QtQuick 2.0 Item{ 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 glowing_line_strength: 0.7 //property real faulty_screen_prob: 1.0 diff --git a/qml/cool-old-term/TerminalScreen.qml b/qml/cool-old-term/TerminalScreen.qml index c5804a2..8ba120e 100644 --- a/qml/cool-old-term/TerminalScreen.qml +++ b/qml/cool-old-term/TerminalScreen.qml @@ -12,7 +12,7 @@ TerminalScreen { property var lineComponent : Qt.createComponent("TerminalLine.qml") font.family: "monospace" - font.pointSize: 14 + font.pointSize: 17 Text { id: fontMetricText @@ -116,6 +116,11 @@ TerminalScreen { x: 0 y: 0 color: "white" + SequentialAnimation on opacity{ + NumberAnimation{from: 0; to: 1; duration: 500} + NumberAnimation{from: 1; to: 0; duration: 500} + loops: Animation.Infinite + } } Rectangle { diff --git a/qml/cool-old-term/TerminalText.qml b/qml/cool-old-term/TerminalText.qml index 8b805d6..0780b9a 100644 --- a/qml/cool-old-term/TerminalText.qml +++ b/qml/cool-old-term/TerminalText.qml @@ -48,7 +48,7 @@ ObjectDestructItem { id: textElement anchors.fill: parent text: objectHandle.text - color: objectHandle.foregroundColor + color: "white" //objectHandle.foregroundColor font: textItem.font textFormat: Text.PlainText } diff --git a/qml/cool-old-term/main.qml b/qml/cool-old-term/main.qml index 772bede..b85a15b 100644 --- a/qml/cool-old-term/main.qml +++ b/qml/cool-old-term/main.qml @@ -33,6 +33,8 @@ ApplicationWindow{ width: 1024 height: 768 + title: terminal.screen.title ? terminal.screen.title : qsTr("Terminal") + visible: true ShaderSettings{ @@ -42,7 +44,7 @@ ApplicationWindow{ ShaderEffectSource{ id: theSource 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 { @@ -64,6 +66,7 @@ ApplicationWindow{ from: -1 to: 100 duration: 5000 + loops: Animation.Infinite }