diff --git a/win-linux/res/styles/theme-gray.json b/win-linux/res/styles/theme-gray.json index 7f219d550..8b91688c1 100644 --- a/win-linux/res/styles/theme-gray.json +++ b/win-linux/res/styles/theme-gray.json @@ -16,7 +16,7 @@ "tool-button-background": "#d9d9d9", "tool-button-hover-background": "#e6e6e6", "tool-button-pressed-background": "#b7b7b7", - "tool-button-active-background": "#f7f7f7", + "tool-button-active-background": "#fff", "download-widget-background": "#fff", "download-widget-border": "#cbcbcb", diff --git a/win-linux/src/utils.cpp b/win-linux/src/utils.cpp index fa45ec540..a20236114 100644 --- a/win-linux/src/utils.cpp +++ b/win-linux/src/utils.cpp @@ -1068,6 +1068,8 @@ namespace WindowHelper { } if (DwmGetColorizationColor && SUCCEEDED(DwmGetColorizationColor(&dwcolor, &opaque))) { float a = (float)((dwcolor >> 24) & 0xff)/255; + if (a < 0.8) + a = 0.8; int r = (int)(((dwcolor >> 16) & 0xff) * a + 255 * (1 - a)); int g = (int)(((dwcolor >> 8) & 0xff) * a + 255 * (1 - a)); int b = (int)((dwcolor & 0xff) * a + 255 * (1 - a));