Always use white background color when printing (except for text
with a white foreground) to save ink (should fix #2968998). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5079 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
4d8c71d5ab
commit
ed96015c98
@ -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>
|
||||
|
@ -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 @@ Stylesheet for Geany's documentation based on a version of John Gabriele.
|
||||
<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 @@ older format configuration files.</p>
|
||||
<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 @@ USE OR PERFORMANCE OF THIS SOFTWARE.</p>
|
||||
<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>
|
||||
|
@ -2784,6 +2784,11 @@ 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).
|
||||
|
||||
.. 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
|
||||
|
@ -491,6 +491,9 @@ static void begin_print(GtkPrintOperation *operation, GtkPrintContext *context,
|
||||
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] =
|
||||
|
Loading…
x
Reference in New Issue
Block a user