Feature request #7846

print composer should offer a way to change paper background color

Added by Mathieu Pellerin - nIRV over 7 years ago. Updated almost 7 years ago.

Status:Closed
Priority:Normal
Assignee:Nyall Dawson
Category:Map Composer/Printing
Pull Request or Patch supplied:No Resolution:fixed/implemented
Easy fix?:No Copied to github as #:16727

Description

A lot of work has been applied to QGIS 2.0 to insure color of all print composer items can be modified (for e.g. the grid annotation font color, legend font color, scale bar {border, fill, font} colors, etc).

This opens the door to rendering composer pages on non-white backgrounds. QGIS however currently doesn't offer a way for user to change the page background color. An easy workaround is to draw a rectangle over the entire page, but that is not very elegant.

Here's what Larry had to say about this:
<dakcarto> we want QGraphicsScene instead, I think: http://qt-project.org/doc/qt-4.7/qgraphicsscene.html#id-26144b63-12f2-4816-a82e-f00bf70d4f29
<sigq> Title: QGraphicsScene | Documentation | Qt Project (at qt-project.org)
<dakcarto> that's whats already done for the map canvas, when changing the color via prefs

map-on-black.jpg (614 KB) Mathieu Pellerin - nIRV, 2013-05-16 08:26 PM

Associated revisions

Revision d0b84e67
Added by Nyall Dawson almost 7 years ago

[FEATURE] Allow setting composer page background style (fix #7846)

History

#1 Updated by Mathieu Pellerin - nIRV over 7 years ago

  • File map-on-black.jpg added

I've attached a map which (hopefully) shows a nice non-white composer page. The background color is set using the above mentioned rectangle hack.

#2 Updated by Mathieu Pellerin - nIRV over 7 years ago

  • File deleted (map-on-black.jpg)

#4 Updated by Nyall Dawson over 7 years ago

  • Assignee set to Nyall Dawson
  • Category set to Map Composer/Printing

#5 Updated by Nyall Dawson almost 7 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

Implemented in master.

#6 Updated by Mathieu Pellerin - nIRV almost 7 years ago

Wa-hou this is fantastic, bye bye paper-white constraint.

#7 Updated by Nyall Dawson almost 7 years ago

Try it with a gradient or semitransparent fill... Or, for bonus marks, using a data defined expression on an atlas print! I expect some sweet looking additions to the flickr group using this ;)

#8 Updated by Mathieu Pellerin - nIRV almost 7 years ago

As you wish, master: http://www.flickr.com/photos/[email protected]/11681101764/in/pool-qgis ;)

It's beautifully implemented Nyall, kudos.

Also available in: Atom PDF