a1a72aae49
The per-CPU cells in the Advanced Affinity Picker were rendered as CheckBoxes while being Mode=OneWay and IsHitTestVisible="False", so users tried to click them and concluded the affinity feature was broken. They are now Border chips with no tick box, no hover and no focus, using the same brushes the Masks tab uses for its editable CPU tiles. The CheckBox carried a CheckBoxAutomationPeer even when non-interactive, so the chip publishes an accessible name and reports selected, not selected, or unavailable through AutomationProperties.ItemStatus rather than losing that state to a bare Border. The system tweaks list used ui:ToggleSwitch, which renders 40x20 with no label and reads as decoration on a dense list. It is replaced by a labelled pill that states ON or OFF inside the track. Thumb and label are docked rather than stacked and the track uses MinWidth, so a longer localized label (ru "ВЫКЛ") widens the pill instead of sliding under the thumb; the thumb rests on a DockPanel.Dock setter rather than a storyboard, so a toggle that starts checked draws correctly instead of waiting for an animation to finish. Also corrects the read-only hint, which still called the chips checkboxes, in all seven locales, and bumps the version to 1.7.1 across the csproj, app manifest, both Inno scripts, the WiX definition, the Chocolatey nuspec, the build scripts, sonar properties, and the packaging metadata test. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AhS1xyuMPFvxrojERQ4NuY
55 lines
2.1 KiB
XML
55 lines
2.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>WinExe</OutputType>
|
|
<TargetFramework>net8.0-windows10.0.22000.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<UseWPF>true</UseWPF>
|
|
<UseWindowsForms>true</UseWindowsForms>
|
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
|
<ApplicationIcon>assets\icons\ico.ico</ApplicationIcon>
|
|
<PublishSingleFile>true</PublishSingleFile>
|
|
<SelfContained>true</SelfContained>
|
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
|
<PublishTrimmed>false</PublishTrimmed>
|
|
<TrimMode>link</TrimMode>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<NoWarn>CS1998;CS0067;CS0414;WFAC010;IL3000;MVVMTK0034</NoWarn>
|
|
<Version>1.7.1</Version>
|
|
<AssemblyVersion>1.7.1.0</AssemblyVersion>
|
|
<FileVersion>1.7.1.0</FileVersion>
|
|
<InformationalVersion>1.7.1</InformationalVersion>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
|
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
|
|
<PackageReference Include="System.Drawing.Common" Version="9.0.7" />
|
|
<PackageReference Include="System.Management" Version="8.0.0" />
|
|
<PackageReference Include="System.ServiceProcess.ServiceController" Version="9.0.7" />
|
|
<PackageReference Include="WPF-UI" Version="4.2.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Resource Include="assets\icons\ico.ico" />
|
|
</ItemGroup>
|
|
|
|
<!-- Ensure XAML for ProcessPowerPlanAssociationView generates InitializeComponent -->
|
|
<ItemGroup>
|
|
<Page Update="Views/ProcessPowerPlanAssociationView.xaml">
|
|
<Generator>MSBuild:Compile</Generator>
|
|
</Page>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Remove="Tests\ThreadPilot.Core.Tests\**\*.cs" />
|
|
<EmbeddedResource Remove="Tests\ThreadPilot.Core.Tests\**\*.*" />
|
|
<None Remove="Tests\ThreadPilot.Core.Tests\**\*.*" />
|
|
</ItemGroup>
|
|
|
|
<Import Project="Directory.Publish.props" Condition="Exists('Directory.Publish.props')" />
|
|
|
|
</Project>
|