default apps config entries, revert focus property on root shell
This commit is contained in:
@@ -15,7 +15,7 @@ Item {
|
||||
|
||||
property real playerProgress: {
|
||||
const active = Players.active;
|
||||
return active?.length ? active.position / active.length : 0;
|
||||
return active?.length ? (active.position % active.length) / active.length : 0;
|
||||
}
|
||||
property int rowHeight: Appearance.padding.large + Config.dashboard.sizes.mediaProgressThickness + Appearance.spacing.small
|
||||
|
||||
|
||||
@@ -28,26 +28,25 @@ Item {
|
||||
let cmd = [];
|
||||
switch (type) {
|
||||
case "image":
|
||||
cmd = [Config.options.apps.imageViewer, filePath];
|
||||
cmd = [Config.general.apps.image, filePath];
|
||||
break;
|
||||
case "video":
|
||||
cmd = [Config.options.apps.videoPlayer, filePath];
|
||||
cmd = [Config.general.apps.playback, filePath];
|
||||
break;
|
||||
case "audio":
|
||||
cmd = [Config.options.apps.audioPlayer, filePath];
|
||||
cmd = [Config.general.apps.audio, filePath];
|
||||
break;
|
||||
case "archive":
|
||||
cmd = [Config.options.apps.archiveManager, filePath];
|
||||
cmd = [Config.general.apps.archiver, filePath];
|
||||
break;
|
||||
case "directory":
|
||||
cmd = [Config.options.apps.fileManager, filePath];
|
||||
cmd = [Config.general.apps.explorer, filePath];
|
||||
break;
|
||||
case "code":
|
||||
case "text":
|
||||
cmd = [Config.options.apps.textEditor, filePath];
|
||||
cmd = [Config.general.apps.editor, filePath];
|
||||
break;
|
||||
case "document":
|
||||
cmd = [Config.options.apps.documentViewer, filePath];
|
||||
cmd = [Config.general.apps.document, filePath];
|
||||
break;
|
||||
default:
|
||||
cmd = ["xdg-open", filePath];
|
||||
|
||||
@@ -247,6 +247,18 @@ SettingsPage {
|
||||
object: Config.general.color
|
||||
settings: ["scheduleHyprsunset", "scheduleHyprsunsetStart", "scheduleHyprsunsetEnd", "hyprsunsetTemp"]
|
||||
}
|
||||
|
||||
Separator {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
max: 20000
|
||||
min: 1000
|
||||
name: "Hyprsunset temperature"
|
||||
object: Config.general.color
|
||||
setting: "hyprsunsetTemp"
|
||||
step: 200
|
||||
}
|
||||
}
|
||||
|
||||
SettingsSection {
|
||||
|
||||
Reference in New Issue
Block a user