Revision: 5137 http://geany.svn.sourceforge.net/geany/?rev=5137&view=rev Author: ntrel Date: 2010-08-11 14:26:41 +0000 (Wed, 11 Aug 2010)
Log Message: ----------- r5079
Modified Paths: -------------- branches/Geany-0_19_1/ChangeLog branches/Geany-0_19_1/doc/geany.html branches/Geany-0_19_1/doc/geany.txt branches/Geany-0_19_1/src/printing.c
Modified: branches/Geany-0_19_1/ChangeLog =================================================================== --- branches/Geany-0_19_1/ChangeLog 2010-08-11 14:19:57 UTC (rev 5136) +++ branches/Geany-0_19_1/ChangeLog 2010-08-11 14:26:41 UTC (rev 5137) @@ -1,3 +1,10 @@ +2010-07-01 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> + + * src/printing.c, doc/geany.txt, doc/geany.html: + Always use white background color when printing (except for text + with a white foreground) to save ink (should fix #2968998). + + 2010-06-30 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/highlighting.c:
Modified: branches/Geany-0_19_1/doc/geany.html =================================================================== --- branches/Geany-0_19_1/doc/geany.html 2010-08-11 14:19:57 UTC (rev 5136) +++ branches/Geany-0_19_1/doc/geany.html 2010-08-11 14:26:41 UTC (rev 5137) @@ -3043,6 +3043,12 @@ <p>Since Geany 0.13 there has been printing support using GTK's printing API. The printed page(s) will look nearly the same as on your screen in Geany. Additionally, there are some options to modify the printed page(s).</p> +<div class="note"> +<p class="first admonition-title">Note</p> +<p class="last">The background text color is set to white, except for text with +a white foreground. This allows dark color schemes to save ink +when printing.</p> +</div> <p>You can define whether to print line numbers, page numbers at the bottom of each page and whether to print a page header on each page. This header contains the filename of the printed document, the current page number and @@ -6109,7 +6115,7 @@ <div class="footer"> <hr class="footer" /> <a class="reference" href="geany.txt">View document source</a>. -Generated on: 2010-06-04 16:33 UTC. +Generated on: 2010-08-11 14:25 UTC. Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
</div>
Modified: branches/Geany-0_19_1/doc/geany.txt =================================================================== --- branches/Geany-0_19_1/doc/geany.txt 2010-08-11 14:19:57 UTC (rev 5136) +++ branches/Geany-0_19_1/doc/geany.txt 2010-08-11 14:26:41 UTC (rev 5137) @@ -2775,6 +2775,11 @@ The printed page(s) will look nearly the same as on your screen in Geany. Additionally, there are some options to modify the printed page(s).
+.. note:: + The background text color is set to white, except for text with + a white foreground. This allows dark color schemes to save ink + when printing. + You can define whether to print line numbers, page numbers at the bottom of each page and whether to print a page header on each page. This header contains the filename of the printed document, the current page number and
Modified: branches/Geany-0_19_1/src/printing.c =================================================================== --- branches/Geany-0_19_1/src/printing.c 2010-08-11 14:19:57 UTC (rev 5136) +++ branches/Geany-0_19_1/src/printing.c 2010-08-11 14:26:41 UTC (rev 5137) @@ -491,6 +491,9 @@ dinfo->styles[i][BACK] = ROTATE_RGB(scintilla_send_message( dinfo->doc->editor->sci, SCI_STYLEGETBACK, i, 0)); } + /* use white background color unless foreground is white to save ink */ + if (dinfo->styles[i][FORE] != 0xffffff) + dinfo->styles[i][BACK] = 0xffffff; dinfo->styles[i][BOLD] = scintilla_send_message(dinfo->doc->editor->sci, SCI_STYLEGETBOLD, i, 0); dinfo->styles[i][ITALIC] =
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.