diff --git a/src/settings-ui/Settings.UI.Library/MonitorInfo.cs b/src/settings-ui/Settings.UI.Library/MonitorInfo.cs
index 83b0ae9684..19fcee81b0 100644
--- a/src/settings-ui/Settings.UI.Library/MonitorInfo.cs
+++ b/src/settings-ui/Settings.UI.Library/MonitorInfo.cs
@@ -10,7 +10,6 @@ using System.Text.Json.Serialization;
using Microsoft.PowerToys.Settings.UI.Library.Helpers;
using PowerDisplay.Common.Drivers;
using PowerDisplay.Common.Interfaces;
-using PowerDisplay.Common.Models;
using PowerDisplay.Common.Utils;
namespace Microsoft.PowerToys.Settings.UI.Library
@@ -66,23 +65,6 @@ namespace Microsoft.PowerToys.Settings.UI.Library
{
}
- public MonitorInfo(string name, string internalName, string communicationMethod)
- {
- Name = name;
- InternalName = internalName;
- CommunicationMethod = communicationMethod;
- }
-
- public MonitorInfo(string name, string internalName, string hardwareId, string communicationMethod, int currentBrightness, int colorTemperatureVcp)
- {
- Name = name;
- InternalName = internalName;
- HardwareId = hardwareId;
- CommunicationMethod = communicationMethod;
- CurrentBrightness = currentBrightness;
- ColorTemperatureVcp = colorTemperatureVcp;
- }
-
[JsonPropertyName("name")]
public string Name
{
@@ -217,7 +199,6 @@ namespace Microsoft.PowerToys.Settings.UI.Library
///
/// Gets or sets the color temperature VCP preset value (raw DDC/CI value from VCP code 0x14).
/// This stores the raw VCP value (e.g., 0x05 for 6500K preset), not the Kelvin temperature.
- /// Use MonitorValueConverter to convert to human-readable Kelvin values for display.
///
[JsonPropertyName("colorTemperatureVcp")]
public int ColorTemperatureVcp
@@ -229,19 +210,11 @@ namespace Microsoft.PowerToys.Settings.UI.Library
{
_colorTemperatureVcp = value;
OnPropertyChanged();
- OnPropertyChanged(nameof(ColorTemperatureDisplay));
OnPropertyChanged(nameof(ColorPresetsForDisplay)); // Update display list when current value changes
}
}
}
- ///
- /// Gets the color temperature as a human-readable display string.
- /// Converts the VCP value to a Kelvin temperature display.
- ///
- [JsonIgnore]
- public string ColorTemperatureDisplay => MonitorValueConverter.FormatColorTemperatureDisplay(ColorTemperatureVcp);
-
///
/// Gets or sets the current contrast value (0-100).
///
@@ -371,7 +344,6 @@ namespace Microsoft.PowerToys.Settings.UI.Library
{
_vcpCodes = value ?? new List();
OnPropertyChanged();
- OnPropertyChanged(nameof(VcpCodesSummary));
}
}
}
@@ -437,24 +409,6 @@ namespace Microsoft.PowerToys.Settings.UI.Library
return true;
}
- [JsonIgnore]
- public string VcpCodesSummary
- {
- get
- {
- if (_vcpCodes == null || _vcpCodes.Count == 0)
- {
- return "No VCP codes detected";
- }
-
- var count = _vcpCodes.Count;
- var preview = string.Join(", ", _vcpCodes.Take(10));
- return count > 10
- ? $"{count} VCP codes: {preview}..."
- : $"{count} VCP codes: {preview}";
- }
- }
-
[JsonPropertyName("supportsBrightness")]
public bool SupportsBrightness
{
@@ -527,7 +481,7 @@ namespace Microsoft.PowerToys.Settings.UI.Library
}
///
- /// Available color temperature presets computed from VcpCodesFormatted (VCP code 0x14).
+ /// Gets available color temperature presets computed from VcpCodesFormatted (VCP code 0x14).
/// This is a computed property that parses the VCP capabilities data on-demand.
///
[JsonIgnore]
@@ -598,7 +552,7 @@ namespace Microsoft.PowerToys.Settings.UI.Library
}
///
- /// Color presets for display in ComboBox, includes current value if not in preset list.
+ /// Gets color presets for display in ComboBox, includes current value if not in preset list.
/// Uses caching to avoid recreating collections on every access.
///
[JsonIgnore]
@@ -648,21 +602,12 @@ namespace Microsoft.PowerToys.Settings.UI.Library
}
}
- [JsonIgnore]
- public bool HasColorPresets => AvailableColorPresets != null && AvailableColorPresets.Count > 0;
-
[JsonIgnore]
public bool HasCapabilities => !string.IsNullOrEmpty(_capabilitiesRaw);
[JsonIgnore]
public bool ShowCapabilitiesWarning => _communicationMethod.Contains("WMI", StringComparison.OrdinalIgnoreCase);
- [JsonIgnore]
- public string BrightnessTooltip => _supportsBrightness ? string.Empty : "Brightness control not supported by this monitor";
-
- [JsonIgnore]
- public string ContrastTooltip => _supportsContrast ? string.Empty : "Contrast control not supported by this monitor";
-
///
/// Generate formatted text of all VCP codes for clipboard
///