Skip to content

Commit

Permalink
update nuget version (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
YanZhiwei authored Jul 15, 2024
1 parent 241e04f commit 53ee7be
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions Recorder/Recorder.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.0.11" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
<PackageReference Include="Mortise.Accessibility.Abstractions" Version="0.0.1-alpha-202406271251" />
<PackageReference Include="Mortise.Accessibility.Highlighter.Abstractions" Version="0.0.1-alpha-202406271251" />
<PackageReference Include="Mortise.Accessibility.Highlighter.Windows" Version="0.0.1-alpha-202406271251" />
<PackageReference Include="Mortise.Accessibility.Locator.Abstractions" Version="0.0.1-alpha-202406271251" />
<PackageReference Include="Mortise.Accessibility.Locator.Json" Version="0.0.1-alpha-202406271251" />
<PackageReference Include="Mortise.UiaAccessibility" Version="0.0.1-alpha-202406271251" />
<PackageReference Include="Mortise.UiaAccessibility.WeChat" Version="0.0.1-alpha-202406271251" />
<PackageReference Include="Mortise.Accessibility.Abstractions" Version="0.0.1-alpha-202407101424" />
<PackageReference Include="Mortise.Accessibility.Highlighter.Abstractions" Version="0.0.1-alpha-202407101424" />
<PackageReference Include="Mortise.Accessibility.Highlighter.Windows" Version="0.0.1-alpha-202407101424" />
<PackageReference Include="Mortise.Accessibility.Locator.Abstractions" Version="0.0.1-alpha-202407101424" />
<PackageReference Include="Mortise.Accessibility.Locator.Json" Version="0.0.1-alpha-202407101424" />
<PackageReference Include="Mortise.UiaAccessibility" Version="0.0.1-alpha-202407101424" />
<PackageReference Include="Mortise.UiaAccessibility.WeChat" Version="0.0.1-alpha-202407101424" />
<PackageReference Include="System.Drawing.Common" Version="8.0.6" />
<PackageReference Include="Tenon.Helper" Version="0.0.1-alpha-202406271301" />
<PackageReference Include="Tenon.Infra.Windows.Form" Version="0.0.1-alpha-202406271301" />
Expand Down
2 changes: 1 addition & 1 deletion Recorder/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ private void SyncAccessibleToNode(Accessible? accessible)
var higherProcessName = Process.GetProcessById((int)Window.GetProcessId(hwNd)).ProcessName;
if (_ignoreProcessNames.Contains(higherProcessName, StringComparer.OrdinalIgnoreCase))
return null;
var hoveredElement = _accessible.Identity.FromPoint(location);
var hoveredElement = _accessible.Detector.FromPoint(location);
return hoveredElement;
});
}
Expand Down
4 changes: 2 additions & 2 deletions Samples/WindowsHighlightSample/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public MainForm(Accessible accessible, ISerializer serializer, IAccessibleLocato
var higherProcessName = Process.GetProcessById((int)Window.GetProcessId(hwNd)).ProcessName;
if (_ignoreProcessNames.Contains(higherProcessName, StringComparer.OrdinalIgnoreCase))
return null;
var hoveredElement = _accessible.Identity.FromPoint(location);
var hoveredElement = _accessible.Detector.FromPoint(location);
return hoveredElement;
});
}
Expand Down Expand Up @@ -210,7 +210,7 @@ private void button4_Click(object sender, EventArgs e)

private void button5_Click(object sender, EventArgs e)
{
if (_accessible.Identity is not UiaAccessibleIdentity uiaAccessibleIdentity) return;
if (_accessible.Detector is not UiaAccessibleDetector uiaAccessibleIdentity) return;
var mainWindow = uiaAccessibleIdentity.DesktopElement.FindFirstChild(cf => cf.ByName("计算器"));
if (mainWindow != null)
{
Expand Down
14 changes: 7 additions & 7 deletions Samples/WindowsHighlightSample/WindowsHighlightSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Mortise.Accessibility.Abstractions" Version="0.0.1-alpha-202406271251" />
<PackageReference Include="Mortise.Accessibility.Highlighter.Abstractions" Version="0.0.1-alpha-202406271251" />
<PackageReference Include="Mortise.Accessibility.Highlighter.Windows" Version="0.0.1-alpha-202406271251" />
<PackageReference Include="Mortise.Accessibility.Locator.Abstractions" Version="0.0.1-alpha-202406271251" />
<PackageReference Include="Mortise.Accessibility.Locator.Json" Version="0.0.1-alpha-202406271251" />
<PackageReference Include="Mortise.UiaAccessibility" Version="0.0.1-alpha-202406271251" />
<PackageReference Include="Mortise.UiaAccessibility.WeChat" Version="0.0.1-alpha-202406271251" />
<PackageReference Include="Mortise.Accessibility.Abstractions" Version="0.0.1-alpha-202407101424" />
<PackageReference Include="Mortise.Accessibility.Highlighter.Abstractions" Version="0.0.1-alpha-202407101424" />
<PackageReference Include="Mortise.Accessibility.Highlighter.Windows" Version="0.0.1-alpha-202407101424" />
<PackageReference Include="Mortise.Accessibility.Locator.Abstractions" Version="0.0.1-alpha-202407101424" />
<PackageReference Include="Mortise.Accessibility.Locator.Json" Version="0.0.1-alpha-202407101424" />
<PackageReference Include="Mortise.UiaAccessibility" Version="0.0.1-alpha-202407101424" />
<PackageReference Include="Mortise.UiaAccessibility.WeChat" Version="0.0.1-alpha-202407101424" />
<PackageReference Include="System.Drawing.Common" Version="8.0.6" />
<PackageReference Include="Tenon.Helper" Version="0.0.1-alpha-202406271301" />
<PackageReference Include="Tenon.Infra.Windows.Form" Version="0.0.1-alpha-202406271301" />
Expand Down

0 comments on commit 53ee7be

Please sign in to comment.