aboutsummaryrefslogtreecommitdiff
path: root/src/preferences
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-06-03 20:33:17 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-06-03 20:33:17 +0200
commit17eb566c8c7eece81f1628d986e825993f976e2d (patch)
tree5f15cf6164a2db6fe7ae1b9dd76a31614a2f2b2e /src/preferences
parent43c94b509e1486d490d093f3bd49cd3d4c9db08a (diff)
Improve UI icons
Diffstat (limited to 'src/preferences')
-rw-r--r--src/preferences/BoardPrefs.hpp3
-rw-r--r--src/preferences/EditorPrefs.hpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/preferences/BoardPrefs.hpp b/src/preferences/BoardPrefs.hpp
index ce975f3..7be1dfb 100644
--- a/src/preferences/BoardPrefs.hpp
+++ b/src/preferences/BoardPrefs.hpp
@@ -115,6 +115,9 @@ public:
virtual wxBitmap GetLargeIcon() {
return wxArtProvider::GetBitmap(wxART_HELP, wxART_TOOLBAR);
}
+ virtual wxBitmapBundle GetIcon() {
+ return wxBitmapBundle::FromBitmap(LoadPNG("ui_rook"));
+ }
virtual wxWindow *CreateWindow(wxWindow *parent) {
return new BoardPrefsPanel(parent);
}
diff --git a/src/preferences/EditorPrefs.hpp b/src/preferences/EditorPrefs.hpp
index 09abac7..1db5714 100644
--- a/src/preferences/EditorPrefs.hpp
+++ b/src/preferences/EditorPrefs.hpp
@@ -63,6 +63,9 @@ public:
virtual wxBitmap GetLargeIcon() {
return wxArtProvider::GetBitmap(wxART_HELP, wxART_TOOLBAR);
}
+ virtual wxBitmapBundle GetIcon() {
+ return wxBitmapBundle::FromBitmap(LoadPNG("ui_text_alt"));
+ }
virtual wxWindow *CreateWindow(wxWindow *parent) {
return new EditorPrefsPanel(parent);
}