[core] Prefer color aliases for default property values
This commit is contained in:
@@ -17,7 +17,7 @@ public:
|
||||
void cascade(const CascadeParameters&);
|
||||
bool recalculate(const CalculationParameters&);
|
||||
|
||||
PaintProperty<Color> backgroundColor { { 0, 0, 0, 1 } };
|
||||
PaintProperty<Color> backgroundColor { Color::black() };
|
||||
PaintProperty<std::string, CrossFadedPropertyEvaluator> backgroundPattern { "" };
|
||||
PaintProperty<float> backgroundOpacity { 1 };
|
||||
};
|
||||
|
||||
@@ -18,7 +18,7 @@ public:
|
||||
bool recalculate(const CalculationParameters&);
|
||||
|
||||
PaintProperty<float> circleRadius { 5 };
|
||||
PaintProperty<Color> circleColor { { 0, 0, 0, 1 } };
|
||||
PaintProperty<Color> circleColor { Color::black() };
|
||||
PaintProperty<float> circleBlur { 0 };
|
||||
PaintProperty<float> circleOpacity { 1 };
|
||||
PaintProperty<std::array<float, 2>> circleTranslate { {{ 0, 0 }} };
|
||||
|
||||
@@ -19,7 +19,7 @@ public:
|
||||
|
||||
PaintProperty<bool> fillAntialias { true };
|
||||
PaintProperty<float> fillOpacity { 1 };
|
||||
PaintProperty<Color> fillColor { { 0, 0, 0, 1 } };
|
||||
PaintProperty<Color> fillColor { Color::black() };
|
||||
PaintProperty<Color> fillOutlineColor { {} };
|
||||
PaintProperty<std::array<float, 2>> fillTranslate { {{ 0, 0 }} };
|
||||
PaintProperty<TranslateAnchorType> fillTranslateAnchor { TranslateAnchorType::Map };
|
||||
|
||||
@@ -28,7 +28,7 @@ public:
|
||||
bool recalculate(const CalculationParameters&);
|
||||
|
||||
PaintProperty<float> lineOpacity { 1 };
|
||||
PaintProperty<Color> lineColor { { 0, 0, 0, 1 } };
|
||||
PaintProperty<Color> lineColor { Color::black() };
|
||||
PaintProperty<std::array<float, 2>> lineTranslate { {{ 0, 0 }} };
|
||||
PaintProperty<TranslateAnchorType> lineTranslateAnchor { TranslateAnchorType::Map };
|
||||
PaintProperty<float> lineWidth { 1 };
|
||||
|
||||
@@ -58,15 +58,15 @@ public:
|
||||
bool recalculate(const CalculationParameters&);
|
||||
|
||||
PaintProperty<float> iconOpacity { 1 };
|
||||
PaintProperty<Color> iconColor { { 0, 0, 0, 1 } };
|
||||
PaintProperty<Color> iconHaloColor { { 0, 0, 0, 0 } };
|
||||
PaintProperty<Color> iconColor { Color::black() };
|
||||
PaintProperty<Color> iconHaloColor { {} };
|
||||
PaintProperty<float> iconHaloWidth { 0 };
|
||||
PaintProperty<float> iconHaloBlur { 0 };
|
||||
PaintProperty<std::array<float, 2>> iconTranslate { {{ 0, 0 }} };
|
||||
PaintProperty<TranslateAnchorType> iconTranslateAnchor { TranslateAnchorType::Map };
|
||||
PaintProperty<float> textOpacity { 1 };
|
||||
PaintProperty<Color> textColor { { 0, 0, 0, 1 } };
|
||||
PaintProperty<Color> textHaloColor { { 0, 0, 0, 0 } };
|
||||
PaintProperty<Color> textColor { Color::black() };
|
||||
PaintProperty<Color> textHaloColor { {} };
|
||||
PaintProperty<float> textHaloWidth { 0 };
|
||||
PaintProperty<float> textHaloBlur { 0 };
|
||||
PaintProperty<std::array<float, 2>> textTranslate { {{ 0, 0 }} };
|
||||
|
||||
Reference in New Issue
Block a user