config files on 28-11-2023 12:46:43
This commit is contained in:
@@ -2,37 +2,37 @@
|
||||
#include <iostream>
|
||||
|
||||
|
||||
#define ICON_stop "\U000F04DB"
|
||||
#define ICON_play "\U000F040A"
|
||||
#define ICON_pause "\U000F03E4"
|
||||
// #define ICON_stop "\U000F04DB"
|
||||
// #define ICON_play "\U000F040A"
|
||||
// #define ICON_pause "\U000F03E4"
|
||||
|
||||
std::string playbackStatusToIcon(bool playing, bool paused) {
|
||||
if (playing) return ICON_play;
|
||||
else if (paused) return ICON_pause;
|
||||
else return ICON_stop;
|
||||
}
|
||||
// std::string playbackStatusToIcon(bool playing, bool paused) {
|
||||
// if (playing) return ICON_play;
|
||||
// else if (paused) return ICON_pause;
|
||||
// else return ICON_stop;
|
||||
// }
|
||||
|
||||
#define ICON_moon_first_quarter "\U000F0F61"
|
||||
#define ICON_moon_full "\U000F0F62"
|
||||
#define ICON_moon_last_quarter "\U000F0F63"
|
||||
#define ICON_moon_new "\U000F0F64"
|
||||
#define ICON_moon_waning_crescent "\U000F0F65"
|
||||
#define ICON_moon_waning_gibbous "\U000F0F66"
|
||||
#define ICON_moon_waxing_crescent "\U000F0F67"
|
||||
#define ICON_moon_waxing_gibbous "\U000F0F68"
|
||||
// #define ICON_moon_first_quarter "\U000F0F61"
|
||||
// #define ICON_moon_full "\U000F0F62"
|
||||
// #define ICON_moon_last_quarter "\U000F0F63"
|
||||
// #define ICON_moon_new "\U000F0F64"
|
||||
// #define ICON_moon_waning_crescent "\U000F0F65"
|
||||
// #define ICON_moon_waning_gibbous "\U000F0F66"
|
||||
// #define ICON_moon_waxing_crescent "\U000F0F67"
|
||||
// #define ICON_moon_waxing_gibbous "\U000F0F68"
|
||||
|
||||
std::string moonToIcon(std::string moonPhase)
|
||||
{
|
||||
if (moonPhase == "new_moon") return ICON_moon_new;
|
||||
if (moonPhase == "waxing_crescent") return ICON_moon_waxing_crescent;
|
||||
if (moonPhase == "first_quarter") return ICON_moon_first_quarter;
|
||||
if (moonPhase == "waxing_gibbous") return ICON_moon_waxing_gibbous;
|
||||
if (moonPhase == "full_moon") return ICON_moon_full;
|
||||
if (moonPhase == "waning_gibbous") return ICON_moon_waning_gibbous;
|
||||
if (moonPhase == "last_quarter") return ICON_moon_last_quarter;
|
||||
if (moonPhase == "waning_crescent") return ICON_moon_waning_crescent;
|
||||
return "";
|
||||
}
|
||||
// std::string moonToIcon(std::string moonPhase)
|
||||
// {
|
||||
// if (moonPhase == "new_moon") return ICON_moon_new;
|
||||
// if (moonPhase == "waxing_crescent") return ICON_moon_waxing_crescent;
|
||||
// if (moonPhase == "first_quarter") return ICON_moon_first_quarter;
|
||||
// if (moonPhase == "waxing_gibbous") return ICON_moon_waxing_gibbous;
|
||||
// if (moonPhase == "full_moon") return ICON_moon_full;
|
||||
// if (moonPhase == "waning_gibbous") return ICON_moon_waning_gibbous;
|
||||
// if (moonPhase == "last_quarter") return ICON_moon_last_quarter;
|
||||
// if (moonPhase == "waning_crescent") return ICON_moon_waning_crescent;
|
||||
// return "";
|
||||
// }
|
||||
|
||||
// Map weather states to MDI characters.
|
||||
std::map<std::string, std::string> weather_icon_map
|
||||
@@ -50,13 +50,13 @@ std::map<std::string, std::string> weather_icon_map
|
||||
{"night-partly-cloudy", "\U000F0F31"},
|
||||
{"partlycloudy", "\U000F0595"},
|
||||
{"partly-lightning", "\U000F0F32"},
|
||||
{"partly-rainy", "\U000F0F33"},
|
||||
{"partly-snowy", "\U000F0F34"},
|
||||
{"partly-rainy", "\U000F0597"}, //compacting U000F0F33
|
||||
{"partly-snowy", "\U000F0598"}, //compacting U000F0F34
|
||||
{"partly-snowy-rainy", "\U000F0F35"},
|
||||
{"pouring", "\U000F0596"},
|
||||
{"rainy", "\U000F0597"},
|
||||
{"snowy", "\U000F0598"},
|
||||
{"snowy-heavy", "\U000F0F36"},
|
||||
{"snowy-heavy", "\U000F0598"}, //compacting U000F0F36
|
||||
{"snowy-rainy", "\U000F067F"},
|
||||
{"sunny", "\U000F0599"},
|
||||
{"sunny-alert", "\U000F0F37"},
|
||||
@@ -64,22 +64,22 @@ std::map<std::string, std::string> weather_icon_map
|
||||
{"sunset", "\U000F059A"},
|
||||
{"sunset-down", "\U000F059B"},
|
||||
{"sunset-up", "\U000F059C"},
|
||||
{"tornado", "\U000F0F38"},
|
||||
{"tornado", "\U000F059D"}, //compacting U000F0F38
|
||||
{"windy", "\U000F059D"},
|
||||
{"windy-variant", "\U000F059E"},
|
||||
{"windy-variant", "\U000F059D"}, //compacting U000F059E
|
||||
{"car", "\U000f010b"},
|
||||
{"trash", "\U000F0819"},
|
||||
};
|
||||
std::map<std::string, std::string> moon_icon_map
|
||||
{
|
||||
{ "mdi:moon-waxing-crescent", "\U000f0f67" },
|
||||
{ "mdi:moon-first-quarter", "\U000F0F61" },
|
||||
{ "mdi:moon-waxing-gibbous", "\U000F0F68" },
|
||||
{ "mdi:moon-full", "\U000F0F62" },
|
||||
{ "mdi:moon-waning-gibbous", "\U000F0F66" },
|
||||
{ "mdi:moon-last-quarter", "\U000F0F63" },
|
||||
{ "mdi:moon-waning-crescent", "\U000F0F65" },
|
||||
};
|
||||
// std::map<std::string, std::string> moon_icon_map
|
||||
// {
|
||||
// { "mdi:moon-waxing-crescent", "\U000f0f67" },
|
||||
// { "mdi:moon-first-quarter", "\U000F0F61" },
|
||||
// { "mdi:moon-waxing-gibbous", "\U000F0F68" },
|
||||
// { "mdi:moon-full", "\U000F0F62" },
|
||||
// { "mdi:moon-waning-gibbous", "\U000F0F66" },
|
||||
// { "mdi:moon-last-quarter", "\U000F0F63" },
|
||||
// { "mdi:moon-waning-crescent", "\U000F0F65" },
|
||||
// };
|
||||
|
||||
|
||||
#define ICON_w_clear_night "\U000F0594"
|
||||
|
||||
Reference in New Issue
Block a user