Switched to qmlformat.

This commit is contained in:
ItsLemmy
2025-11-16 17:07:03 -05:00
parent 32905224b9
commit 3ff5b7639f
223 changed files with 9970 additions and 9658 deletions
@@ -60,13 +60,16 @@ ColumnLayout {
NComboBox {
label: I18n.tr("settings.screen-recorder.video.video-source.label")
description: I18n.tr("settings.screen-recorder.video.video-source.description")
model: [{
model: [
{
"key": "portal",
"name": I18n.tr("options.screen-recording.sources.portal")
}, {
},
{
"key": "screen",
"name": I18n.tr("options.screen-recording.sources.screen")
}]
}
]
currentKey: Settings.data.screenRecorder.videoSource
onSelected: key => Settings.data.screenRecorder.videoSource = key
}
@@ -75,42 +78,50 @@ ColumnLayout {
NComboBox {
label: I18n.tr("settings.screen-recorder.video.frame-rate.label")
description: I18n.tr("settings.screen-recorder.video.frame-rate.description")
model: [{
model: [
{
"key": "30",
"name": I18n.tr("options.frame-rates.fps", {
"fps": "30"
})
}, {
},
{
"key": "60",
"name": I18n.tr("options.frame-rates.fps", {
"fps": "60"
})
}, {
},
{
"key": "100",
"name": I18n.tr("options.frame-rates.fps", {
"fps": "100"
})
}, {
},
{
"key": "120",
"name": I18n.tr("options.frame-rates.fps", {
"fps": "120"
})
}, {
},
{
"key": "144",
"name": I18n.tr("options.frame-rates.fps", {
"fps": "144"
})
}, {
},
{
"key": "165",
"name": I18n.tr("options.frame-rates.fps", {
"fps": "165"
})
}, {
},
{
"key": "240",
"name": I18n.tr("options.frame-rates.fps", {
"fps": "240"
})
}]
}
]
currentKey: Settings.data.screenRecorder.frameRate
onSelected: key => Settings.data.screenRecorder.frameRate = key
}
@@ -119,19 +130,24 @@ ColumnLayout {
NComboBox {
label: I18n.tr("settings.screen-recorder.video.video-quality.label")
description: I18n.tr("settings.screen-recorder.video.video-quality.description")
model: [{
model: [
{
"key": "medium",
"name": I18n.tr("options.screen-recording.quality.medium")
}, {
},
{
"key": "high",
"name": I18n.tr("options.screen-recording.quality.high")
}, {
},
{
"key": "very_high",
"name": I18n.tr("options.screen-recording.quality.very-high")
}, {
},
{
"key": "ultra",
"name": I18n.tr("options.screen-recording.quality.ultra")
}]
}
]
currentKey: Settings.data.screenRecorder.quality
onSelected: key => Settings.data.screenRecorder.quality = key
}
@@ -140,22 +156,28 @@ ColumnLayout {
NComboBox {
label: I18n.tr("settings.screen-recorder.video.video-codec.label")
description: I18n.tr("settings.screen-recorder.video.video-codec.description")
model: [{
model: [
{
"key": "h264",
"name": "H264"
}, {
},
{
"key": "hevc",
"name": "HEVC"
}, {
},
{
"key": "av1",
"name": "AV1"
}, {
},
{
"key": "vp8",
"name": "VP8"
}, {
},
{
"key": "vp9",
"name": "VP9"
}]
}
]
currentKey: Settings.data.screenRecorder.videoCodec
onSelected: key => Settings.data.screenRecorder.videoCodec = key
}
@@ -164,13 +186,16 @@ ColumnLayout {
NComboBox {
label: I18n.tr("settings.screen-recorder.video.color-range.label")
description: I18n.tr("settings.screen-recorder.video.color-range.description")
model: [{
model: [
{
"key": "limited",
"name": I18n.tr("options.screen-recording.color-range.limited")
}, {
},
{
"key": "full",
"name": I18n.tr("options.screen-recording.color-range.full")
}]
}
]
currentKey: Settings.data.screenRecorder.colorRange
onSelected: key => Settings.data.screenRecorder.colorRange = key
}
@@ -196,16 +221,20 @@ ColumnLayout {
NComboBox {
label: I18n.tr("settings.screen-recorder.audio.audio-source.label")
description: I18n.tr("settings.screen-recorder.audio.audio-source.description")
model: [{
model: [
{
"key": "default_output",
"name": I18n.tr("options.screen-recording.audio-sources.system-output")
}, {
},
{
"key": "default_input",
"name": I18n.tr("options.screen-recording.audio-sources.microphone-input")
}, {
},
{
"key": "both",
"name": I18n.tr("options.screen-recording.audio-sources.both")
}]
}
]
currentKey: Settings.data.screenRecorder.audioSource
onSelected: key => Settings.data.screenRecorder.audioSource = key
}
@@ -214,13 +243,16 @@ ColumnLayout {
NComboBox {
label: I18n.tr("settings.screen-recorder.audio.audio-codec.label")
description: I18n.tr("settings.screen-recorder.audio.audio-codec.description")
model: [{
model: [
{
"key": "opus",
"name": "Opus"
}, {
},
{
"key": "aac",
"name": "AAC"
}]
}
]
currentKey: Settings.data.screenRecorder.audioCodec
onSelected: key => Settings.data.screenRecorder.audioCodec = key
}
@@ -233,7 +265,7 @@ ColumnLayout {
initialPath: Settings.data.screenRecorder.directory || Quickshell.env("HOME") + "/Videos"
onAccepted: paths => {
if (paths.length > 0) {
Settings.data.screenRecorder.directory = paths[0] // Use first selected file
Settings.data.screenRecorder.directory = paths[0]; // Use first selected file
}
}
}