mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-18 12:15:27 +00:00
various graphical improvements
This commit is contained in:
parent
d6fd97d2a8
commit
5c2064ed43
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user