Skip to content

Commit

Permalink
feat(ui): high-res icons (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
nameoverflow authored and lotem committed Jan 10, 2019
1 parent d961c84 commit ad3e202
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WeaselTSF/LanguageBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ STDAPI CLangBarItemButton::OnMenuSelect(UINT wID)

STDAPI CLangBarItemButton::GetIcon(HICON *phIcon)
{
*phIcon = (HICON) LoadImageW(g_hInst, MAKEINTRESOURCEW(ascii_mode ? IDI_EN : IDI_ZH), IMAGE_ICON, 16, 16, LR_SHARED);
*phIcon = (HICON) LoadImageW(g_hInst, MAKEINTRESOURCEW(ascii_mode ? IDI_EN_256 : IDI_ZH_256), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_SHARED);
return (*phIcon == NULL)? E_FAIL: S_OK;
}

Expand Down
Binary file modified WeaselTSF/WeaselTSF.rc
Binary file not shown.
2 changes: 1 addition & 1 deletion WeaselUI/StandardLayout.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace weasel
{
const int MAX_CANDIDATES_COUNT = 10;
const int STATUS_ICON_SIZE = 16;
const int STATUS_ICON_SIZE = GetSystemMetrics(SM_CXSMICON);

class StandardLayout: public Layout
{
Expand Down
Binary file modified include/resource.h
Binary file not shown.
Binary file modified resource/en.ico
Binary file not shown.
Binary file added resource/en_256.ico
Binary file not shown.
Binary file added resource/old/en.ico
Binary file not shown.
Binary file added resource/old/reload.ico
Binary file not shown.
Binary file added resource/old/zh.ico
Binary file not shown.
Binary file modified resource/reload.ico
Binary file not shown.
Binary file modified resource/zh.ico
Binary file not shown.
Binary file added resource/zh_256.ico
Binary file not shown.

0 comments on commit ad3e202

Please sign in to comment.