Skip to content

Commit fbc236a

Browse files
committed
set global application color mode
1 parent 59a6687 commit fbc236a

5 files changed

Lines changed: 5 additions & 4 deletions

File tree

Source/Components/ImageGlass.Base/ImageGlass.Base.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<ImplicitUsings>enable</ImplicitUsings>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
99
<Platforms>x64;ARM64</Platforms>
10-
<Version>9.3.2.520</Version>
10+
<Version>9.3.2.911</Version>
1111
<FileVersion>$(Version)</FileVersion>
1212
<Copyright>Copyright © 2010 - 2025 Duong Dieu Phap</Copyright>
1313
<Configurations>Debug;Release;Publish_Release</Configurations>

Source/Components/ImageGlass.UI/Buttons/ModernButton.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public ModernButton()
235235
ControlStyles.ResizeRedraw |
236236
ControlStyles.UserPaint, true);
237237

238-
base.UseVisualStyleBackColor = false;
238+
base.UseVisualStyleBackColor = true;
239239
base.UseCompatibleTextRendering = false;
240240

241241
SetButtonState(ModernControlState.Normal);

Source/Components/ImageGlass.UI/Forms/ModernForm.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ protected virtual void ApplyTheme(bool darkMode, BackdropStyle? style = null)
304304
{
305305
if (DesignMode) return;
306306

307+
Application.SetColorMode(darkMode ? SystemColorMode.Dark : SystemColorMode.Classic);
307308
DarkMode = darkMode;
308309
BackdropStyle = style ?? _backdropStyle;
309310
}

Source/ImageGlass/ImageGlass.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<Description>A lightweight, versatile image viewer</Description>
1515
<Copyright>Copyright © 2010 - 2025 Duong Dieu Phap</Copyright>
1616
<Company>Duong Dieu Phap</Company>
17-
<Version>9.3.2.904</Version>
17+
<Version>9.3.2.911</Version>
1818
<FileVersion>$(Version)</FileVersion>
1919

2020
<EntryPointExe>$(AssemblyName).exe</EntryPointExe>

Source/igcmd/igcmd.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<AssemblyTitle>Igcmd: Command-line utility for ImageGlass</AssemblyTitle>
1212
<Copyright>Copyright © 2010 - 2025 Duong Dieu Phap</Copyright>
1313
<Company>Duong Dieu Phap</Company>
14-
<Version>9.3.2.520</Version>
14+
<Version>9.3.2.911</Version>
1515
<FileVersion>$(Version)</FileVersion>
1616

1717
<EntryPointExe>$(AssemblyName).exe</EntryPointExe>

0 commit comments

Comments
 (0)