Skip to content

Commit

Permalink
Replace weather icons with color icons
Browse files Browse the repository at this point in the history
Refs: #92
  • Loading branch information
orontee committed Nov 22, 2024
1 parent 17009c3 commit 181b6a4
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 27 deletions.
Binary file added icons/icon_01d_2x.bmp
Binary file not shown.
Binary file removed icons/icon_01n_2x.bmp
Binary file not shown.
Binary file renamed icons/icon_13n_2x.bmp → icons/icon_02d_2x.bmp
Binary file not shown.
Binary file removed icons/icon_02n_2x.bmp
Binary file not shown.
Binary file added icons/icon_03d_2x.bmp
Binary file not shown.
Binary file renamed icons/icon_04n_2x.bmp → icons/icon_04d_2x.bmp
Binary file not shown.
Binary file added icons/icon_09d_2x.bmp
Binary file not shown.
Binary file removed icons/icon_09n_2x.bmp
Binary file not shown.
Binary file added icons/icon_10d_2x.bmp
Binary file not shown.
Binary file removed icons/icon_10n_2x.bmp
Binary file not shown.
Binary file added icons/icon_11d_2x.bmp
Binary file not shown.
Binary file removed icons/icon_11n_2x.bmp
Binary file not shown.
Binary file renamed icons/icon_03n_2x.bmp → icons/icon_13d_2x.bmp
Binary file not shown.
Binary file renamed icons/icon_50n_2x.bmp → icons/icon_50d_2x.bmp
Binary file not shown.
18 changes: 9 additions & 9 deletions icons/meson.build
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
icons = files(
'icon_01n_2x.bmp',
'icon_02n_2x.bmp',
'icon_03n_2x.bmp',
'icon_04n_2x.bmp',
'icon_09n_2x.bmp',
'icon_10n_2x.bmp',
'icon_11n_2x.bmp',
'icon_13n_2x.bmp',
'icon_50n_2x.bmp',
'icon_01d_2x.bmp',
'icon_02d_2x.bmp',
'icon_03d_2x.bmp',
'icon_04d_2x.bmp',
'icon_09d_2x.bmp',
'icon_10d_2x.bmp',
'icon_11d_2x.bmp',
'icon_13d_2x.bmp',
'icon_50d_2x.bmp',
'icon_close.bmp',
'icon_direction.bmp',
'icon_display_settings.bmp',
Expand Down
36 changes: 18 additions & 18 deletions src/icons.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

#include <inkview.h>

extern const ibitmap icon_01n_2x;
extern const ibitmap icon_02n_2x;
extern const ibitmap icon_03n_2x;
extern const ibitmap icon_04n_2x;
extern const ibitmap icon_09n_2x;
extern const ibitmap icon_10n_2x;
extern const ibitmap icon_11n_2x;
extern const ibitmap icon_13n_2x;
extern const ibitmap icon_50n_2x;
extern const ibitmap icon_01d_2x;
extern const ibitmap icon_02d_2x;
extern const ibitmap icon_03d_2x;
extern const ibitmap icon_04d_2x;
extern const ibitmap icon_09d_2x;
extern const ibitmap icon_10d_2x;
extern const ibitmap icon_11d_2x;
extern const ibitmap icon_13d_2x;
extern const ibitmap icon_50d_2x;
extern const ibitmap icon_close;
extern const ibitmap icon_direction;
extern const ibitmap icon_display_settings;
Expand All @@ -39,31 +39,31 @@ class Icons {
public:
ibitmap *get(const std::string &name) {
if (name == "01d" or name == "01n") {
return const_cast<ibitmap *>(&icon_01n_2x);
return const_cast<ibitmap *>(&icon_01d_2x);
}
if (name == "02d" or name == "02n") {
return const_cast<ibitmap *>(&icon_02n_2x);
return const_cast<ibitmap *>(&icon_02d_2x);
}
if (name == "03d" or name == "03n") {
return const_cast<ibitmap *>(&icon_03n_2x);
return const_cast<ibitmap *>(&icon_03d_2x);
}
if (name == "04d" or name == "04n") {
return const_cast<ibitmap *>(&icon_04n_2x);
return const_cast<ibitmap *>(&icon_04d_2x);
}
if (name == "09d" or name == "09n") {
return const_cast<ibitmap *>(&icon_09n_2x);
return const_cast<ibitmap *>(&icon_09d_2x);
}
if (name == "10d" or name == "10n") {
return const_cast<ibitmap *>(&icon_10n_2x);
return const_cast<ibitmap *>(&icon_10d_2x);
}
if (name == "11d" or name == "11n") {
return const_cast<ibitmap *>(&icon_11n_2x);
return const_cast<ibitmap *>(&icon_11d_2x);
}
if (name == "13d" or name == "13n") {
return const_cast<ibitmap *>(&icon_13n_2x);
return const_cast<ibitmap *>(&icon_13d_2x);
}
if (name == "50d" or name == "50n") {
return const_cast<ibitmap *>(&icon_50n_2x);
return const_cast<ibitmap *>(&icon_50d_2x);
}
if (name == "close") {
return const_cast<ibitmap *>(&icon_close);
Expand Down

0 comments on commit 181b6a4

Please sign in to comment.