mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Fixes
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
x:Class="PowerDisplay.App"
|
x:Class="PowerDisplay.App"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:converters="using:PowerDisplay.Converters"
|
|
||||||
xmlns:toolkit="using:CommunityToolkit.WinUI">
|
xmlns:toolkit="using:CommunityToolkit.WinUI">
|
||||||
<Application.Resources>
|
<Application.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
|
|||||||
@@ -232,7 +232,7 @@
|
|||||||
Click="OnLinkClick"
|
Click="OnLinkClick"
|
||||||
Content="{ui:FontIcon Glyph=,
|
Content="{ui:FontIcon Glyph=,
|
||||||
FontSize=16}"
|
FontSize=16}"
|
||||||
Style="{StaticResource SubtleButtonStyle}" />
|
Style="{StaticResource SubtleButtonStyle}" />
|
||||||
<Button
|
<Button
|
||||||
x:Name="DisableButton"
|
x:Name="DisableButton"
|
||||||
x:Uid="DisableControlTooltip"
|
x:Uid="DisableControlTooltip"
|
||||||
@@ -250,7 +250,7 @@
|
|||||||
<Button
|
<Button
|
||||||
x:Name="SettingsBtn"
|
x:Name="SettingsBtn"
|
||||||
x:Uid="SettingsTooltip"
|
x:Uid="SettingsTooltip"
|
||||||
Padding="8"
|
Padding="6"
|
||||||
Click="OnSettingsClick"
|
Click="OnSettingsClick"
|
||||||
Style="{StaticResource FlyoutButtonStyle}">
|
Style="{StaticResource FlyoutButtonStyle}">
|
||||||
<ToolTipService.ToolTip>
|
<ToolTipService.ToolTip>
|
||||||
|
|||||||
@@ -99,9 +99,6 @@ namespace PowerDisplay
|
|||||||
_viewModel.UIRefreshRequested += OnUIRefreshRequested;
|
_viewModel.UIRefreshRequested += OnUIRefreshRequested;
|
||||||
_viewModel.Monitors.CollectionChanged += OnMonitorsCollectionChanged;
|
_viewModel.Monitors.CollectionChanged += OnMonitorsCollectionChanged;
|
||||||
_viewModel.PropertyChanged += OnViewModelPropertyChanged;
|
_viewModel.PropertyChanged += OnViewModelPropertyChanged;
|
||||||
|
|
||||||
// Button events
|
|
||||||
DisableButton.Click += OnDisableClick;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool _hasInitialized;
|
private bool _hasInitialized;
|
||||||
|
|||||||
@@ -404,14 +404,14 @@ public partial class MonitorViewModel : INotifyPropertyChanged, IDisposable
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Color temperature VCP preset value (from VCP code 0x14).
|
/// Gets color temperature VCP preset value (from VCP code 0x14).
|
||||||
/// Read-only in flyout UI - controlled via Settings UI.
|
/// Read-only in flyout UI - controlled via Settings UI.
|
||||||
/// Returns the raw VCP value (e.g., 0x05 for 6500K).
|
/// Returns the raw VCP value (e.g., 0x05 for 6500K).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int ColorTemperature => _monitor.CurrentColorTemperature;
|
public int ColorTemperature => _monitor.CurrentColorTemperature;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Human-readable color temperature preset name (e.g., "6500K", "sRGB")
|
/// Gets human-readable color temperature preset name (e.g., "6500K", "sRGB")
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ColorTemperaturePresetName => _monitor.ColorTemperaturePresetName;
|
public string ColorTemperaturePresetName => _monitor.ColorTemperaturePresetName;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user