Skip to content

Sumatrapdf 3.3 with NEW Annotation Colors & Dark Mode

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
COPYING
Unknown
COPYING.BSD
Notifications You must be signed in to change notification settings

dennischancs/sumatrapdf3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom SumatraPDF Reader

The original software contains annotation bad colors. This customised version has new pretty colors from Microsoft Edge PDF Reader and also includes a moon-star button on the toolbar which will toggle Dark Mode.

based version: sumatrapdfreader/sumatrapdf@ad91707

add ToggleDarkMode

  1. add a new macro #define IDC_TOGGLEDARKMODE 1035 in .\src\resource.h

  2. add toolbar svg icon in .\src\SvgIcons.cpp and .\src\Toolbar.cpp

  3. add function in .\src\SumatraPDF.cpp

ref: ImmutableGlitch/SumatraPDF_Custom: Modified version of SumatraPDF

DarkMode

new pretty colors from Microsoft Edge PDF Reader

edit 3 files below:

.\src\gl-annotate.c and .\mupdf\platform\gl\gl-annotate.c

.\src\EditAnnotations.cpp


SumatraPDF Reader

SumatraPDF is a multi-format (PDF, EPUB, MOBI, FB2, CHM, XPS, DjVu) reader for Windows under (A)GPLv3 license, with some code under BSD license (see AUTHORS).

More information:

To compile you need Visual Studio 2019 16.6 or later. Free Community edition works.

Open vs2019/SumatraPDF.sln and hit F5 to compile and run.

For best results use the latest release available as that's what I use and test with. If things don't compile, first make sure you're using the latest version of Visual Studio.

Notes on targets:

  • x32_asan target is for enabling address sanitizer, only works in 32-bit Release build and requires installing an optional "C++ AddressSanitizers" component

Asan notes

Docs:

Flags:

Can be set with env variable:

  • ASAN_OPTIONS=halt_on_error=0:allocator_may_return_null=1:verbosity=2:check_malloc_usable_size=false:print_suppressions=true:suppressions="C:\Users\kjk\src\sumatrapdf\asan.supp"

In Visual Studio, this is in Debugging, Environment section.

Note:

About

Sumatrapdf 3.3 with NEW Annotation Colors & Dark Mode

Resources

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
COPYING
Unknown
COPYING.BSD

Stars

Watchers

Forks

Packages

No packages published