Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
Services/FloatingWindowService.cs)改动:用_isTouchDeviceDetected代替原有即时触摸模式判定,新增IsTouchCapableDevice()(基于GetSystemMetrics(SM_MAXIMUMTOUCHES))在创建窗口时判定设备是否支持触摸,Pointer 事件中仅对PointerType.Touch做触屏拖动处理且必须从拖动柄触发,调整了 press/move/release 的判断以修复触屏拖动流程;新增主题解析ResolveWindowThemeVariant()并在渲染时按配置决定明暗色。ConfigHandlers/MainConfigData.cs)改动:新增FloatingWindowTheme字段并持久化(0=跟随、1=明亮、2=黑暗)。SettingsPage/FloatingWindowEditorSettingsPage.axaml/.axaml.cs)改动:在“外观设置”中新增“主题”下拉(带图标及三项),并将配置变更纳入触发刷新悬浮窗的属性列表。Controls/Components/NetworkStatusComponent.axaml.cs)改动:去掉原来 Auto 模式下的周期性 ICMP 重试逻辑,增加_autoModeForceHttpUntilRestart标志;Auto 模式启动优先尝试 ICMP,若 ICMP 失败(包含返回 0ms / 超时 / 无网络)则切换到 HTTP 并在本次进程中保持 HTTP;将 ICMP 中 reply.RoundtripTime <= 0 视作失败并返回特定错误文本0ms以触发切换。Testing
rg/sed查看并验证改动点与调用链)以确认修改位置与引用,检查结果正常(命令成功且定位到期望文件/行)。dotnet build SystemTools.csproj以进行编译验证,但当前执行环境缺少dotnet命令,构建失败;因此未能在本地完成编译/单元测试验证(失败)。Codex Task