From 17eb566c8c7eece81f1628d986e825993f976e2d Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 3 Jun 2023 20:33:17 +0200 Subject: Improve UI icons --- src/preferences/BoardPrefs.hpp | 3 +++ src/preferences/EditorPrefs.hpp | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/preferences') 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); } -- cgit v1.2.3