1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 07:22:50 -05:00

Added mirroring option to display configuration (#1156)

* <quickshell/Modules/Settings/DisplayConfig>: Added mirroring option to the displayconfiguration

* removed niri option for mirroring

* Fix trailing whitespace

* removed emty rows

---------

Co-authored-by: Postboote1 <stoessel.matthias>
This commit is contained in:
Tacticalsmooth
2025-12-27 15:27:19 +01:00
committed by GitHub
parent 3ebdd5631c
commit f7650b5e1f
3 changed files with 41 additions and 2 deletions

View File

@@ -71,6 +71,34 @@ Column {
}
property bool isHdrMode: currentCm === "hdr" || currentCm === "hdredid"
DankDropdown {
width: parent.width
text: I18n.tr("Mirror Display")
addHorizontalPadding: true
property var otherOutputs: {
const list = [I18n.tr("None")];
for (const name in DisplayConfigState.outputs) {
if (name !== root.outputName)
list.push(name);
}
return list;
}
options: otherOutputs
currentValue: {
DisplayConfigState.pendingChanges;
const pending = DisplayConfigState.getPendingValue(root.outputName, "mirror");
const val = pending !== undefined ? pending : (root.outputData.mirror || "");
return val === "" ? I18n.tr("None") : val;
}
onValueChanged: value => {
const realVal = value === I18n.tr("None") ? "" : value;
DisplayConfigState.setPendingChange(root.outputName, "mirror", realVal);
}
}
DankToggle {
width: parent.width
text: I18n.tr("10-bit Color")