mirror of
https://github.com/alexkay/spek.git
synced 2025-06-04 01:21:21 +03:00
win: Set window icon
This commit is contained in:
parent
a318529ecd
commit
9c736788ed
2
dist/win/bundle.sh
vendored
2
dist/win/bundle.sh
vendored
@ -28,7 +28,7 @@ LDFLAGS="dist/win/spek.res" ./configure \
|
|||||||
--with-wx-config="$WX_CONFIG" \
|
--with-wx-config="$WX_CONFIG" \
|
||||||
--prefix=${PWD}/dist/win/build && \
|
--prefix=${PWD}/dist/win/build && \
|
||||||
"$MAKE" && \
|
"$MAKE" && \
|
||||||
"$MAKE" install
|
"$MAKE" install || exit 1
|
||||||
"$STRIP" dist/win/build/bin/spek.exe
|
"$STRIP" dist/win/build/bin/spek.exe
|
||||||
"$UPX" dist/win/build/bin/spek.exe
|
"$UPX" dist/win/build/bin/spek.exe
|
||||||
|
|
||||||
|
2
dist/win/spek.rc
vendored
2
dist/win/spek.rc
vendored
@ -1 +1 @@
|
|||||||
0 ICON "spek.ico"
|
aaaa ICON "spek.ico"
|
||||||
|
@ -47,6 +47,14 @@ wxIconBundle SpekArtProvider::CreateIconBundle(const wxArtID& id, const wxArtCli
|
|||||||
if (id == ART_SPEK) {
|
if (id == ART_SPEK) {
|
||||||
#ifdef OS_UNIX
|
#ifdef OS_UNIX
|
||||||
return wxArtProvider::GetIconBundle(wxT("spek"), client);
|
return wxArtProvider::GetIconBundle(wxT("spek"), client);
|
||||||
|
#endif
|
||||||
|
#ifdef OS_WIN
|
||||||
|
wxIconBundle bundle;
|
||||||
|
bundle.AddIcon(wxIcon(wxT("aaaa"), wxBITMAP_TYPE_ICO_RESOURCE, 16, 16));
|
||||||
|
bundle.AddIcon(wxIcon(wxT("aaaa"), wxBITMAP_TYPE_ICO_RESOURCE, 24, 24));
|
||||||
|
bundle.AddIcon(wxIcon(wxT("aaaa"), wxBITMAP_TYPE_ICO_RESOURCE, 32, 32));
|
||||||
|
bundle.AddIcon(wxIcon(wxT("aaaa"), wxBITMAP_TYPE_ICO_RESOURCE, 48, 48));
|
||||||
|
return bundle;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
return wxNullIconBundle;
|
return wxNullIconBundle;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user