[GRASS-git] [OSGeo/grass] 6fd5eb: wxGUI/mapdisp: Always respect user-set background ...

Vaclav Petras noreply at github.com
Wed Feb 10 20:07:06 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: 6fd5eb92a0b4707162c048d71c09fc29dc8e8096
      https://github.com/OSGeo/grass/commit/6fd5eb92a0b4707162c048d71c09fc29dc8e8096
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2021-02-10 (Wed, 10 Feb 2021)

  Changed paths:
    M gui/wxpython/mapwin/buffered.py

  Log Message:
  -----------
  wxGUI/mapdisp: Always respect user-set background color in Map Display (#1167)

The background color from user settings was applied only when actual rendering
happened. So with no layers at the start and when all unchecked the color was
the hardcoded white.

Now the color is always the same although it comes from different sources
(backround by default and g.pnmcomp result when displaying data).

This creates consistent behavior and it is a plus for the dark theme support
because when user manually the dark background to fit with the dark theme,
the big empty white area is no longer displayed when no data is there.

This applies to all components which use mapwin.BufferedMapWindow,
e.g., Map Swipe.




More information about the grass-commit mailing list