mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-10-31 15:12:28 +00:00 
			
		
		
		
	various graphical improvements
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
| @@ -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 { | ||||||
|   | |||||||
| @@ -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 | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -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 | ||||||
|         } |         } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user