Compare commits
	
		
			9 Commits
		
	
	
		
			b69610d7f3
			...
			master
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| b98408dd32 | |||
| 36054434a5 | |||
| d9e41c27ef | |||
| 8e8f8e4706 | |||
| edb1a6f9e1 | |||
| 
						 | 
					33723db314 | ||
| 4bc440e906 | |||
| 
						 | 
					27b248d851 | ||
| e3c2e024bb | 
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -48,3 +48,6 @@ cool-retro-term
 | 
			
		||||
 | 
			
		||||
.DS_Store
 | 
			
		||||
*.app
 | 
			
		||||
 | 
			
		||||
# IntelliJ
 | 
			
		||||
.idea
 | 
			
		||||
 
 | 
			
		||||
@@ -58,6 +58,7 @@ int main(int argc, char *argv[])
 | 
			
		||||
        cout << "  -p|--profile <prof> Run cool-retro-term with the given profile." << '\n';
 | 
			
		||||
        cout << "  -h|--help           Print this help." << '\n';
 | 
			
		||||
        cout << "  --verbose           Print additional information such as profiles and settings." << '\n';
 | 
			
		||||
        cout << "  -v|--version        Print the program name and version." << '\n';
 | 
			
		||||
        return 0;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -32,7 +32,7 @@ QtObject {
 | 
			
		||||
    readonly property real maximumFontScaling: 2.50
 | 
			
		||||
 | 
			
		||||
    readonly property real minBurnInFadeTime: 160
 | 
			
		||||
    readonly property real maxBurnInFadeTime: 160000
 | 
			
		||||
    readonly property real maxBurnInFadeTime: 1600
 | 
			
		||||
 | 
			
		||||
    property bool isMacOS: Qt.platform.os === "osx"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -29,8 +29,8 @@ Loader {
 | 
			
		||||
    property real lastUpdate: 0
 | 
			
		||||
    property real prevLastUpdate: 0
 | 
			
		||||
 | 
			
		||||
    property real burnIn: appSettings.burnIn;
 | 
			
		||||
    property real burnInFadeTime: (1 / Utils.lint(_minBurnInFadeTime, _maxBurnInFadeTime, burnIn))*64
 | 
			
		||||
    property real burnIn: appSettings.burnIn
 | 
			
		||||
    property real burnInFadeTime: 1 / Utils.lint(_minBurnInFadeTime, _maxBurnInFadeTime, burnIn)
 | 
			
		||||
    property real _minBurnInFadeTime: appSettings.minBurnInFadeTime
 | 
			
		||||
    property real _maxBurnInFadeTime: appSettings.maxBurnInFadeTime
 | 
			
		||||
 | 
			
		||||
@@ -146,8 +146,9 @@ Loader {
 | 
			
		||||
                    float prevMask = accColor.a;
 | 
			
		||||
                    float currMask = rgb2grey(txtColor);
 | 
			
		||||
 | 
			
		||||
                    highp float blurDecay = clamp(pow(0.5, burnInTime * (lastUpdate - prevLastUpdate)), 0.0, 1.0);
 | 
			
		||||
                    vec3 blurColor = accColor.rgb * vec3(blurDecay);
 | 
			
		||||
                    highp float blurDecay = clamp((lastUpdate - prevLastUpdate) * burnInTime, 0.0, 1.0);
 | 
			
		||||
                    blurDecay = max(0.0, blurDecay - prevMask);
 | 
			
		||||
                    vec3 blurColor = accColor.rgb - vec3(blurDecay);
 | 
			
		||||
                    vec3 color = max(blurColor, txtColor);
 | 
			
		||||
 | 
			
		||||
                    gl_FragColor = vec4(color, currMask);
 | 
			
		||||
 
 | 
			
		||||
@@ -58,6 +58,13 @@ Item{
 | 
			
		||||
            kterminal.pasteClipboard()
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    Connections {
 | 
			
		||||
        target: pasteActionAlt
 | 
			
		||||
 | 
			
		||||
        onTriggered: {
 | 
			
		||||
            kterminal.pasteSelection()
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    //When settings are updated sources need to be redrawn.
 | 
			
		||||
    Connections {
 | 
			
		||||
 
 | 
			
		||||
@@ -321,8 +321,8 @@ Item {
 | 
			
		||||
 | 
			
		||||
                 (burnIn !== 0 ? "
 | 
			
		||||
                     vec4 txt_blur = texture2D(burnInSource, staticCoords);
 | 
			
		||||
                     float blurDecay = clamp(pow(0.5, burnInTime * (time - burnInLastUpdate)), 0.0, 1.0);
 | 
			
		||||
                     vec3 burnInColor = txt_blur.rgb * vec3(blurDecay);
 | 
			
		||||
                     float blurDecay = clamp((time - burnInLastUpdate) * burnInTime, 0.0, 1.0);
 | 
			
		||||
                     vec3 burnInColor = 0.65 * (txt_blur.rgb - vec3(blurDecay));
 | 
			
		||||
                     txt_color = max(txt_color, convertWithChroma(burnInColor));"
 | 
			
		||||
                 : "") +
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -116,6 +116,11 @@ ApplicationWindow {
 | 
			
		||||
        text: qsTr("Paste")
 | 
			
		||||
        shortcut: "Ctrl+Shift+V"
 | 
			
		||||
    }
 | 
			
		||||
    Action {
 | 
			
		||||
        id: pasteActionAlt
 | 
			
		||||
        text: qsTr("Paste selection")
 | 
			
		||||
        shortcut: "Shift+Insert"
 | 
			
		||||
    }
 | 
			
		||||
    Action {
 | 
			
		||||
        id: zoomIn
 | 
			
		||||
        text: qsTr("Zoom In")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user