From 360e83b94f17f329d489e1d7381db7e9081873ff Mon Sep 17 00:00:00 2001 From: Krzysztof Kowalczyk Date: Wed, 18 Oct 2023 01:22:59 +0200 Subject: [PATCH] increase tab background contrast (#3764) --- src/EngineMupdf.cpp | 2 +- src/wingui/WinGui.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/EngineMupdf.cpp b/src/EngineMupdf.cpp index c33332fde0ac..d2176c00272e 100644 --- a/src/EngineMupdf.cpp +++ b/src/EngineMupdf.cpp @@ -3329,7 +3329,7 @@ bool EngineMupdfSaveUpdated(EngineBase* engine, const char* path, std::function< pdf_save_document(ctx, epdf->pdfdoc, path, &save_opts); ok = true; auto dur = TimeSinceInMs(timeStart); - logf("Saved annotations to '%s' in %.2f ms\n", path, dur); + logf("Saved annotations to '%s' in %.2f ms, incremental: %d\n", path, dur, save_opts.do_incremental); } fz_catch(ctx) { const char* mupdfErr = fz_caught_message(epdf->ctx); diff --git a/src/wingui/WinGui.cpp b/src/wingui/WinGui.cpp index bed35ce64429..b3fdc4ef0af7 100644 --- a/src/wingui/WinGui.cpp +++ b/src/wingui/WinGui.cpp @@ -3471,11 +3471,11 @@ void TabsCtrl::Paint(HDC hdc, RECT& rc) { COLORREF tabBgHighlight; COLORREF tabBgBackground; if (IsLightColor(tabBgSelected)) { - tabBgBackground = AdjustLightness2(tabBgSelected, -15); - tabBgHighlight = AdjustLightness2(tabBgSelected, -25); + tabBgBackground = AdjustLightness2(tabBgSelected, -25); + tabBgHighlight = AdjustLightness2(tabBgSelected, -35); } else { - tabBgBackground = AdjustLightness2(tabBgSelected, 15); - tabBgHighlight = AdjustLightness2(tabBgSelected, 25); + tabBgBackground = AdjustLightness2(tabBgSelected, 25); + tabBgHighlight = AdjustLightness2(tabBgSelected, 35); } COLORREF tabBgCol;