mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-11-24 14:35:56 +00:00
Merge 24a93c8bb46727b8f38797b458b5cf7359f5bf3a into f157648d1e51878a10e02a8836c1e15aa8c59cc9
This commit is contained in:
commit
acffb65590
@ -57,6 +57,8 @@ QtObject {
|
|||||||
property real burnInQuality: 0.5
|
property real burnInQuality: 0.5
|
||||||
|
|
||||||
property bool blinkingCursor: false
|
property bool blinkingCursor: false
|
||||||
|
property bool useKeybinds: false
|
||||||
|
property real currentProfileIndex: 0
|
||||||
|
|
||||||
onWindowScalingChanged: handleFontChanged()
|
onWindowScalingChanged: handleFontChanged()
|
||||||
|
|
||||||
|
|||||||
@ -128,6 +128,36 @@ ApplicationWindow {
|
|||||||
shortcut: "Ctrl+-"
|
shortcut: "Ctrl+-"
|
||||||
onTriggered: appSettings.decrementScaling()
|
onTriggered: appSettings.decrementScaling()
|
||||||
}
|
}
|
||||||
|
Action {
|
||||||
|
id: previousProfie
|
||||||
|
text: qsTr("Previous profile.")
|
||||||
|
enabled: appSettings.useKeybinds
|
||||||
|
shortcut: "Shift+Alt+Left"
|
||||||
|
onTriggered: {
|
||||||
|
var current = appSettings.currentProfileIndex
|
||||||
|
current -= 1
|
||||||
|
current = current < 0 ? appSettings.profilesList.count - 1 : current
|
||||||
|
appSettings.currentProfileIndex = current
|
||||||
|
var unload = (appSettings.brightness, appSettings.contrast, appSettings.windowOpacity)
|
||||||
|
appSettings.loadProfile(current)
|
||||||
|
appSettings.brightness, appSettings.contrast, appSettings.windowOpacity = unload
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Action {
|
||||||
|
id: nextProfile
|
||||||
|
text: qsTr("Next profile.")
|
||||||
|
enabled: appSettings.useKeybinds
|
||||||
|
shortcut: "Shift+Alt+Right"
|
||||||
|
onTriggered: {
|
||||||
|
var current = appSettings.currentProfileIndex
|
||||||
|
current += 1
|
||||||
|
current = current < appSettings.profilesList.count ? current : 0
|
||||||
|
appSettings.currentProfileIndex = current
|
||||||
|
var unload = (appSettings.brightness, appSettings.contrast, appSettings.windowOpacity)
|
||||||
|
appSettings.loadProfile(current)
|
||||||
|
appSettings.brightness, appSettings.contrast, appSettings.windowOpacity = unload
|
||||||
|
}
|
||||||
|
}
|
||||||
Action {
|
Action {
|
||||||
id: showAboutAction
|
id: showAboutAction
|
||||||
text: qsTr("About")
|
text: qsTr("About")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user