dsh-auto-open-web 0.1.19 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md CHANGED
@@ -73,6 +73,11 @@ cleanup.
73
73
  self-contained publish is needed. The build machine needs a .NET SDK and the .NET
74
74
  Framework 4.x targeting packs (installed with VS/SDK; without them add the
75
75
  `Microsoft.NETFramework.ReferenceAssemblies` NuGet package to the csproj).
76
+ - **DPI awareness (since 0.1.20)**: the host declares **PerMonitorV2** (`host/app.manifest`
77
+ plus the WinForms `DpiAwareness` section in `App.config`). .NET Framework WinForms is
78
+ DPI-unaware by default, so on 125%/150% scaled displays Windows renders the window at
79
+ 96 DPI and bitmap-stretches it (DPI virtualization) → blurry text and web content.
80
+ Declaring awareness renders natively at the monitor's real DPI, keeping text crisp.
76
81
 
77
82
  ## Configuration
78
83
 
package/README.md CHANGED
@@ -68,6 +68,11 @@ Job Object(强杀也生效)+ 退出清理结束进程树。
68
68
  无需安装任何 .NET Core/10/自包含运行时。构建机需 .NET SDK 与 .NET
69
69
  Framework 4.x 定位包(随 VS/SDK 安装;无定位包时给 csproj 加
70
70
  `Microsoft.NETFramework.ReferenceAssemblies` NuGet 包)。
71
+ - **DPI 感知(自 0.1.20)**:宿主声明 **PerMonitorV2**(`host/app.manifest`
72
+ 清单 + `App.config` 的 WinForms `DpiAwareness` 段)。.NET Framework 的
73
+ WinForms 默认是 DPI 不感知进程,在 125%/150% 等缩放显示器上 Windows 会把
74
+ 窗口按 96 DPI 渲染后整体位图放大(DPI 虚拟化)→ 文字与网页内容发糊;
75
+ 声明感知后按显示器真实 DPI 原生渲染,字迹清晰。
71
76
 
72
77
  ## 配置
73
78
 
Binary file
@@ -3,4 +3,12 @@
3
3
  <startup>
4
4
  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
5
5
  </startup>
6
+ <!-- .NET Framework 4.7+ WinForms 高 DPI 支持:
7
+ DpiAwareness 让 WinForms 参与每显示器 DPI 缩放(与 app.manifest 的
8
+ PerMonitorV2 声明配合),EnableWindowsFormsHighDpiAutoResizing 启用
9
+ 控件随 DPI 变化的自动缩放。二者缺一,子控件在非 100% 缩放下会发糊/错位。 -->
10
+ <System.Windows.Forms.ApplicationConfigurationSection>
11
+ <add key="DpiAwareness" value="PerMonitorV2" />
12
+ <add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />
13
+ </System.Windows.Forms.ApplicationConfigurationSection>
6
14
  </configuration>
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-auto-open-web",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "Open the DSH Web GUI in an app-style WebView2 window on profile start, with a settings card for browser paths",
5
5
  "repository": {
6
6
  "type": "git",