mirror of
				https://github.com/Swordfish90/cool-retro-term.git
				synced 2025-11-04 09:02:14 +00:00 
			
		
		
		
	Add support for blinking cursor
This commit is contained in:
		@@ -59,6 +59,8 @@ QtObject{
 | 
				
			|||||||
    property real burnInQuality: 0.5
 | 
					    property real burnInQuality: 0.5
 | 
				
			||||||
    property bool useFastBurnIn: Qt.platform.os === "osx" ? false : true
 | 
					    property bool useFastBurnIn: Qt.platform.os === "osx" ? false : true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    property bool blinkingCursor: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    onWindowScalingChanged: handleFontChanged();
 | 
					    onWindowScalingChanged: handleFontChanged();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // PROFILE SETTINGS ///////////////////////////////////////////////////////
 | 
					    // PROFILE SETTINGS ///////////////////////////////////////////////////////
 | 
				
			||||||
@@ -208,7 +210,8 @@ QtObject{
 | 
				
			|||||||
            burnInQuality: burnInQuality,
 | 
					            burnInQuality: burnInQuality,
 | 
				
			||||||
            useCustomCommand: useCustomCommand,
 | 
					            useCustomCommand: useCustomCommand,
 | 
				
			||||||
            customCommand: customCommand,
 | 
					            customCommand: customCommand,
 | 
				
			||||||
            useFastBurnIn: useFastBurnIn
 | 
					            useFastBurnIn: useFastBurnIn,
 | 
				
			||||||
 | 
					            blinkingCursor: blinkingCursor
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return stringify(settings);
 | 
					        return stringify(settings);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@@ -296,6 +299,8 @@ QtObject{
 | 
				
			|||||||
        customCommand = settings.customCommand !== undefined ? settings.customCommand : customCommand
 | 
					        customCommand = settings.customCommand !== undefined ? settings.customCommand : customCommand
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        useFastBurnIn = settings.useFastBurnIn !== undefined ? settings.useFastBurnIn : useFastBurnIn;
 | 
					        useFastBurnIn = settings.useFastBurnIn !== undefined ? settings.useFastBurnIn : useFastBurnIn;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        blinkingCursor = settings.blinkingCursor !== undefined ? settings.blinkingCursor : blinkingCursor
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function loadProfileString(profileString){
 | 
					    function loadProfileString(profileString){
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -94,6 +94,7 @@ Item{
 | 
				
			|||||||
        smooth: !appSettings.lowResolutionFont
 | 
					        smooth: !appSettings.lowResolutionFont
 | 
				
			||||||
        enableBold: false
 | 
					        enableBold: false
 | 
				
			||||||
        fullCursorHeight: true
 | 
					        fullCursorHeight: true
 | 
				
			||||||
 | 
					        blinkingCursor: appSettings.blinkingCursor
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        session: QMLTermSession {
 | 
					        session: QMLTermSession {
 | 
				
			||||||
            id: ksession
 | 
					            id: ksession
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -114,6 +114,24 @@ Tab{
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        GroupBox{
 | 
				
			||||||
 | 
					            title: qsTr("Cursor")
 | 
				
			||||||
 | 
					            Layout.fillWidth: true
 | 
				
			||||||
 | 
					            ColumnLayout {
 | 
				
			||||||
 | 
					                anchors.fill: parent
 | 
				
			||||||
 | 
					                CheckBox{
 | 
				
			||||||
 | 
					                    id: blinkingCursor
 | 
				
			||||||
 | 
					                    text: qsTr("Blinking Cursor")
 | 
				
			||||||
 | 
					                    checked: appSettings.blinkingCursor
 | 
				
			||||||
 | 
					                    onCheckedChanged: appSettings.blinkingCursor = checked
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                Binding{
 | 
				
			||||||
 | 
					                    target: blinkingCursor
 | 
				
			||||||
 | 
					                    property: "checked"
 | 
				
			||||||
 | 
					                    value: appSettings.blinkingCursor
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
        GroupBox{
 | 
					        GroupBox{
 | 
				
			||||||
            title: qsTr("Colors")
 | 
					            title: qsTr("Colors")
 | 
				
			||||||
            Layout.fillWidth: true
 | 
					            Layout.fillWidth: true
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user