Just backup the original /usr/lib/libevdocument.so.2.0.0, and replace it with the modified libdocument/.libs/libevdocument.so.2.0.0 manually. configure -prefix=/usr -enable-nls -disable-scrollkeeper -disable-dbus -disable-debug -disable-tests -disable-nautilus -disable-thumbnailer -disable-previewer -disable-comics -without-keyring -without-gconf -without-gtk-unix-printĪfter compilation, DONOT run make install, because this may change your locale settings of Evince. Note that the code position may vary for different versions of Evince. Here is what I did to achieve the light green background in Evince 2.30.3.Īs mentioned in a thread( ) posted by me several years ago, I replaced the source code from Line 327 to 329 of libdocument/ev-document-misc.c with the following snippet: // make sure that we just turn the near "white" back ground to light green When click the view->Inverted Color, your background color will change to light green Then change the config in /usr/share/applications/sktop change Exec=$YOUR-Evince-PLACE/bin/evince %U (please add # before the pragma in the following code) #pragma GCC diagnostic push In the version of Ubuntu 18.04, I found several errors as the above case and ![]() Result = fprintf(stderr,"SyncTeX ERROR: ") #pragma GCC diagnostic ignored "-Wformat-nonliteral" Of course, fix it by: #pragma GCC diagnostic push Makefile:545: recipe for target 'libsynctex_la-synctex_parser_utils.lo' failed Synctex_parser_utils.c:106:29: error: format string is not a string literal Make: Entering directory '/home/luopeng/Downloads/evince-3.28.4/cut-n-paste/synctex' Then make, and I get the error: Making all in synctex configure -prefix=$YOUR-PLACE -enable-nls -disable-scrollkeeper -disable-dbus -disable-debug -disable-tests -disable-nautilus -disable-thumbnailer -disable-previewer -disable-comics -without-keyring -without-gconf -without-gtk-unix-print To cairo_set_operator (cr, CAIRO_OPERATOR_DARKEN) Ĭairo_set_source_rgb (cr, 0.8, 0.9098, 0.8117647) Ĭonfig and make and make install cd evince I hope this will prove handy to many of you!Ĭhange the background color of evince to the light greed and protect your eyesĬonfig the compile environment and download source sudo apt source evinceĬhange the source to your color, such as the light green(R:199,G:237,B:204)Įdit the function ev_document_misc_invert_surface in file: libdocument/ev-document-misc.c at line 467Ĭhange cairo_set_operator (cr, CAIRO_OPERATOR_DIFFERENCE) Gamma will produce a darker/lighter result and playing with the Contrast between channels will adjust the resulting color.Īnother TIP: Set the "Paper Mode" shortcut to first reset and then set the color (e.g., "xcalib -clear & xcalib -red 1.7 1 64 -green 1.7 1 57 -blue 1.7 1 28 -alter"), so that if accidentally use it multiple times it does not change you display color to black. Play around only with Gamma and Contrast. IMPORTANT TIP: In order not to loose the blackness of letters always keep Brightness to 1 as shown above. The -clear send a "Clear" message to the adapter to clear all adjustments back to normal. The -alter feeds the signal to the adapter. The command usage is xcalib -ChannelName Gamma Brightness Contrast and are all separated with a single space. It will take you a couple of minutes to get used to it, but you'll never go back. ![]() Of course this adjusts the screen as a whole but, for me at least, this has been a blessing for those all white IDEs. Obviously you can and should adjust these according to your preferences and screens. To (re)set back to "Screen Mode" use: xcalib -clearĪs you can probably tell I am adjusting the parameters per-channel and my effort was to produce a Kindle like result. To set the "Paper Mode" use: xcalib -red 1.7 1 64 -green 1.7 1 57 -blue 1.7 1 28 -alter Then set your two launchers with these commands: You can forget about the heavy specialist software like argyll+dispcalgui etc.įirstly install xcalib with: sudo apt-get install xcalib Note that xcalib is the smallest bit of software and won't take any space or memory as it passes the configurations to the display adapter and exits. With the help of xcalib I can activate on-the-fly two different screen configurations without profiles and other bloat. I have named them " Screen Mode" and " Paper Mode". The best solution I have come up with is to use the xcalib command via two easily accessible application launchers on my tool/app bar. ![]() I have have been fighting this issue for quite a while now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |