Skip to content

Commit

Permalink
Merge pull request 'Patch/release/v8.2.0' (#14) from fix/patch-releas…
Browse files Browse the repository at this point in the history
…e-8.2.0-r4 into release/v8.2.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/desktop-apps/pulls/14
  • Loading branch information
maxkadushkin committed Sep 18, 2024
2 parents ee656d7 + c6df313 commit 7197402
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion win-linux/res/styles/theme-gray.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions win-linux/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 7197402

Please sign in to comment.