Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/qml/ApplicationSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ QtObject {
property real burnInQuality: 0.5

property bool blinkingCursor: false
property bool useKeybinds: false

onWindowScalingChanged: handleFontChanged()

Expand Down Expand Up @@ -271,6 +272,7 @@ QtObject {
"fontWidth": fontWidth,
"margin": _margin,
"blinkingCursor": blinkingCursor,
"useKeybinds": useKeybinds,
"frameMargin": _frameMargin,
}
return settings
Expand Down Expand Up @@ -381,6 +383,7 @@ QtObject {
_frameMargin = settings.frameMargin !== undefined ? settings.frameMargin : _frameMargin

blinkingCursor = settings.blinkingCursor !== undefined ? settings.blinkingCursor : blinkingCursor
useKeybinds = settings.useKeybinds !== undefined ? settings.useKeybinds : useKeybinds

handleFontChanged()
}
Expand Down
10 changes: 8 additions & 2 deletions app/qml/SettingsTerminalTab.qml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ ColumnLayout {
}
}
GroupBox {
title: qsTr("Cursor")
title: qsTr("Misc.")
Layout.fillWidth: true
ColumnLayout {
RowLayout {
anchors.fill: parent
CheckBox {
id: blinkingCursor
Expand All @@ -129,6 +129,12 @@ ColumnLayout {
property: "checked"
value: appSettings.blinkingCursor
}
CheckBox {
id: useBindings
text: qsTr("Use Keybinds")
checked: appSettings.useKeybinds
onCheckedChanged: appSettings.useKeybinds = checked
}
}
}
GroupBox {
Expand Down
3 changes: 2 additions & 1 deletion app/qml/TerminalContainer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ ShaderTerminal {
property real devicePixelRatio: terminalWindow.screen.devicePixelRatio

id: mainShader
opacity: appSettings.windowOpacity * 0.3 + 0.7

opacity: appSettings.windowOpacity + 0.001

source: terminal.mainSource
burnInEffect: terminal.burnInEffect
Expand Down
58 changes: 58 additions & 0 deletions app/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ ApplicationWindow {
width: 1024
height: 768

property real keybindStep: 0.01

// Save window properties automatically
onXChanged: appSettings.x = x
onYChanged: appSettings.y = y
Expand Down Expand Up @@ -128,6 +130,62 @@ ApplicationWindow {
shortcut: "Ctrl+-"
onTriggered: appSettings.decrementScaling()
}

Action {
id: lessOpaque
text: qsTr("Make less opaque.")
enabled: appSettings.useKeybinds
shortcut: "Ctrl+Shift+Up"
onTriggered: {
appSettings.windowOpacity -= appSettings.windowOpacity > keybindStep ? keybindStep : 0
}
}
Action {
id: moreOpaque
text: qsTr("Make more opaque.")
enabled: appSettings.useKeybinds
shortcut: "Ctrl+Shift+Down"
onTriggered: {
appSettings.windowOpacity += appSettings.windowOpacity < (1 - keybindStep) ? keybindStep : 0
}
}
Action {
id: moreContrast
text: qsTr("More contrast.")
enabled: appSettings.useKeybinds
shortcut: "Ctrl+Up"
onTriggered: {
appSettings.contrast += appSettings.contrast < (1 - keybindStep) ? keybindStep : 0
}
}
Action {
id: lessContrast
text: qsTr("Less contrast.")
enabled: appSettings.useKeybinds
shortcut: "Ctrl+Down"
onTriggered: {
appSettings.contrast -= appSettings.contrast > keybindStep ? keybindStep : 0
}
}
Action {
id: brighter
text: qsTr("Brighter.")
enabled: appSettings.useKeybinds
shortcut: "Alt+Up"
onTriggered: {
appSettings.brightness += appSettings.brightness < (1 - keybindStep) ? keybindStep : 0
}
}
Action {
id: darker
text: qsTr("Darker.")
enabled: appSettings.useKeybinds
shortcut: "Alt+Down"
onTriggered: {
appSettings.brightness -= appSettings.brightness > keybindStep ? keybindStep : 0
}
}

Action {
id: showAboutAction
text: qsTr("About")
Expand Down