mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 19:32:19 +01:00
Don't mark COLOR_* constants as static in header (#2141)
This commit is contained in:
@@ -5,4 +5,7 @@ namespace esphome {
|
|||||||
const Color Color::BLACK(0, 0, 0, 0);
|
const Color Color::BLACK(0, 0, 0, 0);
|
||||||
const Color Color::WHITE(255, 255, 255, 255);
|
const Color Color::WHITE(255, 255, 255, 255);
|
||||||
|
|
||||||
|
const Color COLOR_BLACK(0, 0, 0, 0);
|
||||||
|
const Color COLOR_WHITE(255, 255, 255, 255);
|
||||||
|
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
@@ -149,8 +149,8 @@ struct Color {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ESPDEPRECATED("Use Color::BLACK instead of COLOR_BLACK", "v1.21")
|
ESPDEPRECATED("Use Color::BLACK instead of COLOR_BLACK", "v1.21")
|
||||||
static const Color COLOR_BLACK(0, 0, 0, 0);
|
extern const Color COLOR_BLACK;
|
||||||
ESPDEPRECATED("Use Color::WHITE instead of COLOR_WHITE", "v1.21")
|
ESPDEPRECATED("Use Color::WHITE instead of COLOR_WHITE", "v1.21")
|
||||||
static const Color COLOR_WHITE(255, 255, 255, 255);
|
extern const Color COLOR_WHITE;
|
||||||
|
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
Reference in New Issue
Block a user