Skip to content

Commit

Permalink
increase tab background contrast (#3764)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Oct 17, 2023
1 parent c1481bb commit 360e83b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/EngineMupdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions src/wingui/WinGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 360e83b

Please sign in to comment.