Browse Source

Change default color for rendering vectors (gray->blue) [news] (#1166)

Use light and dark blue as defaults in d.vect and in the default GUI settings
for rendering vector maps.

The d.vect values are applied in d.mon and with direct rendering,
the GUI values when user does not have user settings yet and
when user settings is saved for the first time (since then it is driven
by value there, so this needs settings to not exists to take its effect).
Vaclav Petras 4 years ago
parent
commit
90cdef87a3
2 changed files with 4 additions and 3 deletions
  1. 2 1
      display/d.vect/main.c
  2. 2 2
      gui/wxpython/core/settings.py

+ 2 - 1
display/d.vect/main.c

@@ -118,11 +118,12 @@ int main(int argc, char **argv)
     /* Colors */
     color_opt = G_define_standard_option(G_OPT_CN);
     color_opt->label = _("Feature color");
+    color_opt->answer = "0:29:57";
     color_opt->guisection = _("Colors");
     
     fcolor_opt = G_define_standard_option(G_OPT_CN);
     fcolor_opt->key = "fill_color";
-    fcolor_opt->answer = "200:200:200";
+    fcolor_opt->answer = "0:103:204";
     fcolor_opt->label = _("Area fill color");
     fcolor_opt->guisection = _("Colors");
 

+ 2 - 2
gui/wxpython/core/settings.py

@@ -339,13 +339,13 @@ class Settings:
             #
             'vectorLayer': {
                 'featureColor': {
-                    'color': (0, 0, 0),
+                    'color': (0, 29, 57),
                     'transparent': {
                         'enabled': False
                     }
                 },
                 'areaFillColor': {
-                    'color': (200, 200, 200),
+                    'color': (0, 103, 204),
                     'transparent': {
                         'enabled': False
                     }