1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-26 14:32:52 -05:00

osd: also have left center and right center options

This commit is contained in:
bbedward
2025-11-17 14:05:04 -05:00
parent ccb4da3cd8
commit d1472dfcba
6 changed files with 414 additions and 20 deletions

View File

@@ -760,11 +760,15 @@ Item {
return "Bottom Left"
case SettingsData.Position.BottomCenter:
return "Bottom Center"
case SettingsData.Position.LeftCenter:
return "Left Center"
case SettingsData.Position.RightCenter:
return "Right Center"
default:
return "Bottom Center"
}
}
options: ["Top Right", "Top Left", "Top Center", "Bottom Right", "Bottom Left", "Bottom Center"]
options: ["Top Right", "Top Left", "Top Center", "Bottom Right", "Bottom Left", "Bottom Center", "Left Center", "Right Center"]
onValueChanged: value => {
switch (value) {
case "Top Right":
@@ -785,6 +789,12 @@ Item {
case "Bottom Center":
SettingsData.set("osdPosition", SettingsData.Position.BottomCenter)
break
case "Left Center":
SettingsData.set("osdPosition", SettingsData.Position.LeftCenter)
break
case "Right Center":
SettingsData.set("osdPosition", SettingsData.Position.RightCenter)
break
}
}
}