[go: up one dir, main page]

Menu

#201 Smoother background lines

open
nobody
None
5
2015-04-29
2015-04-29
No

Small tweak to make background lines more subtle, but still visible. This way the notes are easier to read.

./src/xo-misc.h:

define RULING_COLOR 0x40a0ff80

define RULING_THICKNESS 0

Zero width means always 1px, no matter what zoom is used. 50% transparency makes them like 0.5px width.

Discussion

  • Josef Kufner

    Josef Kufner - 2015-04-29

    (Sorry for not using preview button.)

     
    • Denis Auroux

      Denis Auroux - 2015-04-29

      This is a nice idea for some use cases, but it won't work for everyone
      -- in particular, you are also setting the thickness to zero for PDF
      export and printing, and in a PDF or a printout, zero thickness probably
      does mean zero, or the thinnest line that the printer can produce.
      (Also note that there is no guarantee that future evolutions using
      another display renderer -- eg Daniel German's gtk3 port -- will still
      interpret zero thickness as one pixel -- it's really a misfeature of
      gnomecanvas, which you're putting to good use in a clever way but
      probably shouldn't be relied on too extensively).

      Denis

       
  • Josef Kufner

    Josef Kufner - 2015-04-29

    Zero width in Postscript also means "thinnest possible". So it is not accidental feature ;)

    But I just tested PDF output and there zero means real zero, so no lines.

     
  • Josef Kufner

    Josef Kufner - 2015-04-29

    ... which is actually good, because PDF export does not use 50% transparency. So lines are visible only during drawing and not in export. I guess it would be best to have separate option for print/export and for drawing.

     

Log in to post a comment.