<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
  Application manifest for the Fresh GUI binary on Windows.

  Embedded into fresh.exe at link time by crates/fresh-editor/build.rs via
  winresource::WindowsResource::set_manifest_file when the gui feature is
  enabled.  See PRODUCTIZATION_PLAN.md §1.1.
-->
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <assemblyIdentity
      type="win32"
      name="dev.getfresh.Fresh"
      version="1.0.0.0"
      processorArchitecture="*"/>

  <!-- Run as the invoking user; never trigger the heuristic UAC prompt that
       fires on binary names like "setup", "patch", etc. -->
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
      </requestedPrivileges>
    </security>
  </trustInfo>

  <!-- Tell Windows that the app handles its own DPI scaling.  Without this,
       Windows bitmap-scales the window on a 4K / Retina monitor, producing
       severe blur.  PerMonitorV2 lets us re-render cleanly when the user
       drags the window between monitors at different scale factors. -->
  <application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings>
      <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2,PerMonitor</dpiAwareness>
      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">True/PM</dpiAware>
      <activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage>
    </windowsSettings>
  </application>

  <!-- Declare compatibility with Windows 10 and 11. -->
  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
    <application>
      <!-- Windows 10 / 11 -->
      <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
      <!-- Windows 8.1 -->
      <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
      <!-- Windows 8 -->
      <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
      <!-- Windows 7 -->
      <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
    </application>
  </compatibility>

  <!-- Common Controls v6: gives any native dialogs / scrollbars the modern
       look instead of the Windows-95-era visual style. -->
  <dependency>
    <dependentAssembly>
      <assemblyIdentity
          type="win32"
          name="Microsoft.Windows.Common-Controls"
          version="6.0.0.0"
          processorArchitecture="*"
          publicKeyToken="6595b64144ccf1df"
          language="*"/>
    </dependentAssembly>
  </dependency>
</assembly>
