| | 985 | } |
| | 986 | }}} |
| | 987 | |
| | 988 | === Settings of type `color` === |
| | 989 | |
| | 990 | Create a setting of type `color`. The `default` color can be any color as understood under https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation#Propertyvaluesexplanations: |
| | 991 | {{{ |
| | 992 | #!mapcss |
| | 993 | setting::colordisplay { |
| | 994 | type: color; |
| | 995 | label: tr("key used for displaying"); |
| | 996 | default: colorDisplayCustomPref#FF00FF; |
| | 997 | } |
| | 998 | }}} |
| | 999 | |
| | 1000 | Use a setting of type `color`: |
| | 1001 | {{{ |
| | 1002 | #!mapcss |
| | 1003 | way { |
| | 1004 | color: setting("colordisplay"); |