Skip to content

Commit

Permalink
Make app icon unthemable
Browse files Browse the repository at this point in the history
In preparation for the new theme system, make the app icon unthemable
since it won't be themable anyways when the new theme system is
implemented.

Signed-off-by: Avery King <[email protected]>
  • Loading branch information
generic-pers0n committed Aug 6, 2024
1 parent 01a6151 commit fb4a1c1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
5 changes: 1 addition & 4 deletions src/LogWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,8 @@ void LogWindow::Show(bool show)
#if !defined(__WXMAC__) && !defined(__WXX11__)
#if defined(__WXMSW__)
wxIcon ic{wxICON(TenacityLogo)};
#elif defined(__WXGTK__)
wxIcon ic{wxICON(TenacityLogoAlpha)};
#else
wxIcon ic{};
ic.CopyFromBitmap(theTheme.Bitmap(bmpAudacityLogo48x48));
wxIcon ic{wxICON(TenacityLogoAlpha)};
#endif
frame->SetIcon(ic);
#endif
Expand Down
5 changes: 1 addition & 4 deletions src/ProjectManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,8 @@ void InitProjectWindow( ProjectWindow &window )
{
#if defined(__WXMSW__)
wxIcon ic{ wxICON(TenacityLogo) };
#elif defined(__WXGTK__)
wxIcon ic{wxICON(TenacityLogoAlpha)};
#else
wxIcon ic{};
ic.CopyFromBitmap(theTheme.Bitmap(bmpAudacityLogo48x48));
wxIcon ic{wxICON(TenacityLogoAlpha)};
#endif
window.SetIcon(ic);
}
Expand Down
2 changes: 1 addition & 1 deletion src/theme/AllThemeResources.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ from there. Audacity will look for a file called "Pause.png".
#define LOGOWITHNAME_HEIGHT 200

SET_THEME_FLAGS( resFlagNewLine );
DEFINE_IMAGE( bmpAudacityLogo48x48, wxImage( 48, 48 ), wxT("TenacityLogo48x48"));
DEFINE_IMAGE( bmpAudacityLogo48x48, wxImage( 48, 48 ), wxT("TenacityLogo48x48")); // UNUSED


DEFINE_COLOUR( clrBlank, wxColour( 64, 64, 64), wxT("Blank"));
Expand Down
8 changes: 2 additions & 6 deletions src/widgets/HelpSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include <lib-files/wxFileNameWrapper.h>
#include <lib-preferences/Prefs.h>

#include "../images/TenacityLogo.xpm"
#include "../theme/AllThemeResources.h"
#include "../shuttle/ShuttleGui.h"
#include "../theme/Theme.h"
Expand Down Expand Up @@ -111,12 +112,7 @@ void HelpSystem::ShowHtmlText(wxWindow *pParent,
// -- START of ICON stuff -----
// If this section (providing an icon) causes compilation errors on linux, comment it out for now.
// it will just mean that the icon is missing. Works OK on Windows.
#ifdef __WXMSW__
wxIcon ic{ wxICON(AudacityLogo) };
#else
wxIcon ic{};
ic.CopyFromBitmap(theTheme.Bitmap(bmpAudacityLogo48x48));
#endif
wxIcon ic{ wxICON(TenacityLogo) };
pWnd.SetIcon( ic );
// -- END of ICON stuff -----

Expand Down

0 comments on commit fb4a1c1

Please sign in to comment.