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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user