Revision: 5079 http://geany.svn.sourceforge.net/geany/?rev=5079&view=rev Author: ntrel Date: 2010-07-01 16:22:45 +0000 (Thu, 01 Jul 2010)
Log Message: ----------- Always use white background color when printing (except for text with a white foreground) to save ink (should fix #2968998).
Modified Paths: -------------- trunk/ChangeLog trunk/doc/geany.html trunk/doc/geany.txt trunk/src/printing.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-07-01 14:33:41 UTC (rev 5078) +++ trunk/ChangeLog 2010-07-01 16:22:45 UTC (rev 5079) @@ -7,6 +7,9 @@ data/filetypes.common: Add filetypes.common fold_symbol_highlight color setting. Add API macro foreach_range(). + * 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>
Modified: trunk/doc/geany.html =================================================================== --- trunk/doc/geany.html 2010-07-01 14:33:41 UTC (rev 5078) +++ trunk/doc/geany.html 2010-07-01 16:22:45 UTC (rev 5079) @@ -6,7 +6,7 @@ <meta name="generator" content="Docutils 0.4: http://docutils.sourceforge.net/" /> <title>Geany</title> <meta name="authors" content="Enrico Tröger Nick Treleaven Frank Lanitz" /> -<meta name="date" content="2010-06-29" /> +<meta name="date" content="2010-07-01" /> <style type="text/css">
/* @@ -139,7 +139,7 @@ <br />Nick Treleaven <br />Frank Lanitz</td></tr> <tr><th class="docinfo-name">Date:</th> -<td>2010-06-29</td></tr> +<td>2010-07-01</td></tr> <tr><th class="docinfo-name">Version:</th> <td>0.20</td></tr> </tbody> @@ -3052,6 +3052,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 @@ -6146,7 +6152,7 @@ <div class="footer"> <hr class="footer" /> <a class="reference" href="geany.txt">View document source</a>. -Generated on: 2010-07-01 14:28 UTC. +Generated on: 2010-07-01 16:16 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: trunk/doc/geany.txt =================================================================== --- trunk/doc/geany.txt 2010-07-01 14:33:41 UTC (rev 5078) +++ trunk/doc/geany.txt 2010-07-01 16:22:45 UTC (rev 5079) @@ -2784,6 +2784,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: trunk/src/printing.c =================================================================== --- trunk/src/printing.c 2010-07-01 14:33:41 UTC (rev 5078) +++ trunk/src/printing.c 2010-07-01 16:22:45 UTC (rev 5079) @@ -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.