Skip to content

Commit 5c5c42e

Browse files
authored
feat(build): use modern dialog styles on Windows, closes #4709 (#4840)
1 parent 75d3d67 commit 5c5c42e

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-build": patch
3+
---
4+
5+
Enhance the dialog style on Windows via the manifest dependency `Microsoft.Windows.Common-Controls v6.0.0.0`.

core/tauri-build/src/lib.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,26 @@ pub fn try_build(attributes: Attributes) -> Result<()> {
334334

335335
if window_icon_path.exists() {
336336
let mut res = WindowsResource::new();
337+
338+
res.set_manifest(
339+
r#"
340+
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
341+
<dependency>
342+
<dependentAssembly>
343+
<assemblyIdentity
344+
type="win32"
345+
name="Microsoft.Windows.Common-Controls"
346+
version="6.0.0.0"
347+
processorArchitecture="*"
348+
publicKeyToken="6595b64144ccf1df"
349+
language="*"
350+
/>
351+
</dependentAssembly>
352+
</dependency>
353+
</assembly>
354+
"#,
355+
);
356+
337357
if let Some(sdk_dir) = &attributes.windows_attributes.sdk_dir {
338358
if let Some(sdk_dir_str) = sdk_dir.to_str() {
339359
res.set_toolkit_path(sdk_dir_str);

0 commit comments

Comments
 (0)