Skip to content

Commit

Permalink
Add Medium size (24px) option to Toolbar icons
Browse files Browse the repository at this point in the history
  • Loading branch information
sdottaka committed Oct 26, 2024
1 parent 312ab2f commit 5420fcd
Show file tree
Hide file tree
Showing 41 changed files with 130 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Src/MainFrm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2610,8 +2610,8 @@ BOOL CMainFrame::CreateToolbar()
/** @brief Load toolbar images from the resource. */
void CMainFrame::LoadToolbarImages()
{
const int toolbarNewImgSize = MulDiv(16, GetSystemMetrics(SM_CXSMICON), 16) *
(1 + std::clamp(GetOptionsMgr()->GetInt(OPT_TOOLBAR_SIZE), 0, ID_TOOLBAR_HUGE - ID_TOOLBAR_SMALL));
const int toolbarNewImgSize = MulDiv(8, GetSystemMetrics(SM_CXSMICON), 16) *
(2 + std::clamp(GetOptionsMgr()->GetInt(OPT_TOOLBAR_SIZE), 0, ID_TOOLBAR_HUGE - ID_TOOLBAR_SMALL));
const int toolbarOrgImgSize = toolbarNewImgSize <= 20 ? 16 : 32;
CToolBarCtrl& BarCtrl = m_wndToolBar.GetToolBarCtrl();
CImageList imgEnabled, imgDisabled;
Expand Down
3 changes: 3 additions & 0 deletions Src/Merge.rc
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ BEGIN
BEGIN
MENUITEM "&None", ID_TOOLBAR_NONE
MENUITEM "&Small", ID_TOOLBAR_SMALL
MENUITEM "&Medium", ID_TOOLBAR_MEDIUM
MENUITEM "&Big", ID_TOOLBAR_BIG
MENUITEM "&Huge", ID_TOOLBAR_HUGE
END
Expand Down Expand Up @@ -502,6 +503,7 @@ BEGIN
BEGIN
MENUITEM "&None", ID_TOOLBAR_NONE
MENUITEM "&Small", ID_TOOLBAR_SMALL
MENUITEM "&Medium", ID_TOOLBAR_MEDIUM
MENUITEM "&Big", ID_TOOLBAR_BIG
MENUITEM "&Huge", ID_TOOLBAR_HUGE
END
Expand Down Expand Up @@ -742,6 +744,7 @@ BEGIN
BEGIN
MENUITEM "&None", ID_TOOLBAR_NONE
MENUITEM "&Small", ID_TOOLBAR_SMALL
MENUITEM "&Medium", ID_TOOLBAR_MEDIUM
MENUITEM "&Big", ID_TOOLBAR_BIG
MENUITEM "&Huge", ID_TOOLBAR_HUGE
END
Expand Down
19 changes: 10 additions & 9 deletions Src/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -973,15 +973,16 @@
#define ID_COLORSCHEME_LAST 33196
#define ID_TOOLBAR_NONE 33200
#define ID_TOOLBAR_SMALL 33201
#define ID_TOOLBAR_BIG 33202
#define ID_TOOLBAR_HUGE 33203
#define ID_VIEW_RESIZE_PANES 33204
#define ID_VIEW_ZOOMIN 33205
#define ID_VIEW_ZOOMOUT 33206
#define ID_VIEW_ZOOMNORMAL 33207
#define ID_PLUGINS_LIST 33208
#define ID_PREDIFFER_MANUAL 33209
#define ID_PREDIFFER_AUTO 33210
#define ID_TOOLBAR_MEDIUM 33202
#define ID_TOOLBAR_BIG 33203
#define ID_TOOLBAR_HUGE 33204
#define ID_VIEW_RESIZE_PANES 33205
#define ID_VIEW_ZOOMIN 33206
#define ID_VIEW_ZOOMOUT 33207
#define ID_VIEW_ZOOMNORMAL 33208
#define ID_PLUGINS_LIST 33209
#define ID_PREDIFFER_MANUAL 33210
#define ID_PREDIFFER_AUTO 33211
#define ID_VIEW_DIFFCONTEXT_ALL 33218
#define ID_VIEW_DIFFCONTEXT_0 33219
#define ID_VIEW_DIFFCONTEXT_1 33220
Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Arabic.po
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,9 @@ msgstr "&شريط الأدوات"
msgid "&Small"
msgstr "&صغير"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "&كبير"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Basque.po
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,9 @@ msgstr "Tre&snabarra"
msgid "&Small"
msgstr "&Txikia"

msgid "&Medium"
msgstr ""

#, c-format
msgid "&Big"
msgstr "&Handia"
Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Brazilian.po
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ msgstr "&Barra de ferramentas"
msgid "&Small"
msgstr "&Pequeno"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "&Grande"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Bulgarian.po
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ msgstr "Лента с &инструменти"
msgid "&Small"
msgstr "&Малък"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "&Голям"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Catalan.po
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@ msgstr "Barra d'ei&nes"
msgid "&Small"
msgstr "&Petita"

msgid "&Medium"
msgstr ""

#, c-format
msgid "&Big"
msgstr "&Gran"
Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/ChineseSimplified.po
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ msgstr "工具栏(&T)"
msgid "&Small"
msgstr "小(&S)"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "大(&B)"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/ChineseTraditional.po
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@ msgstr "工具列 (&T)"
msgid "&Small"
msgstr "小圖示 (&S)"

msgid "&Medium"
msgstr ""

#, c-format
msgid "&Big"
msgstr "大圖示 (&B)"
Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Corsican.po
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ msgstr "&Barra d’attrezzi"
msgid "&Small"
msgstr "&Chjuca"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "&Maiò"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Croatian.po
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,9 @@ msgstr "Traka &alata"
msgid "&Small"
msgstr "&Male ikone"

msgid "&Medium"
msgstr ""

#, c-format
msgid "&Big"
msgstr "&Velike ikone"
Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Czech.po
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,9 @@ msgstr "Panel &nástrojů"
msgid "&Small"
msgstr "&Malý"

msgid "&Medium"
msgstr ""

#, c-format
msgid "&Big"
msgstr "&Velký"
Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Danish.po
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@ msgstr "&Værktøjslinje"
msgid "&Small"
msgstr "&Lille"

msgid "&Medium"
msgstr ""

#, c-format
msgid "&Big"
msgstr "&Stor"
Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Dutch.po
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ msgstr "Werkbalk"
msgid "&Small"
msgstr "Klein"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "Groot"

Expand Down
5 changes: 4 additions & 1 deletion Translations/WinMerge/English.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WinMerge\n"
"Report-Msgid-Bugs-To: https://bugs.winmerge.org/\n"
"POT-Creation-Date: 2024-10-16 08:43+0000\n"
"POT-Creation-Date: 2024-10-26 14:25+0000\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: English <[email protected]>\n"
Expand Down Expand Up @@ -367,6 +367,9 @@ msgstr ""
msgid "&Small"
msgstr ""

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr ""

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Finnish.po
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ msgstr "Työkalurivi"
msgid "&Small"
msgstr "Pieni"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "Iso"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/French.po
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ msgstr "Barre d'ou&tils"
msgid "&Small"
msgstr "&Petite"

msgid "&Medium"
msgstr ""

#, c-format
msgid "&Big"
msgstr "&Grande"
Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Galician.po
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,9 @@ msgstr "Barra de ferramen&tas"
msgid "&Small"
msgstr "&Pequena"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "&Grande"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/German.po
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,9 @@ msgstr "&Symbolleiste"
msgid "&Small"
msgstr "&Klein"

msgid "&Medium"
msgstr ""

#, c-format
msgid "&Big"
msgstr "&Groß"
Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Greek.po
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@ msgstr "Γραμμή Ε&ργαλείων"
msgid "&Small"
msgstr "Μι&κρή"

msgid "&Medium"
msgstr ""

#, c-format
msgid "&Big"
msgstr "Με&γάλη"
Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Hungarian.po
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,9 @@ msgstr "Eszköztár"
msgid "&Small"
msgstr "Kicsi"

msgid "&Medium"
msgstr ""

#, c-format
msgid "&Big"
msgstr "Nagy"
Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Italian.po
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,9 @@ msgstr "Barra s&trumenti"
msgid "&Small"
msgstr "&Piccola"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "&Grande"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Japanese.po
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ msgstr "ツールバー(&T)"
msgid "&Small"
msgstr "小(&S)"

msgid "&Medium"
msgstr "中(&M)"

msgid "&Big"
msgstr "大(&B)"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Korean.po
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,9 @@ msgstr "도구 모음(&T)"
msgid "&Small"
msgstr "작게(&S)"

msgid "&Medium"
msgstr ""

#, c-format
msgid "&Big"
msgstr "크게(&B)"
Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Lithuanian.po
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ msgstr "Mygtukų juos&ta"
msgid "&Small"
msgstr "Maž&i mygtukai"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "&Dideli mygtukai"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Norwegian.po
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ msgstr "Verkt&øylinje"
msgid "&Small"
msgstr "&Liten"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "&Stor"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Persian.po
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@ msgstr "&T ميله ابزار "
msgid "&Small"
msgstr "&S کوچک "

msgid "&Medium"
msgstr ""

#, c-format
msgid "&Big"
msgstr "&B بزرگ"
Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Polish.po
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,9 @@ msgstr "Pasek narzędzi"
msgid "&Small"
msgstr "Mały"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "Duży"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Portuguese.po
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,9 @@ msgstr "&Barra de ferramentas"
msgid "&Small"
msgstr "&Pequena"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "&Grande"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Romanian.po
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ msgstr "Bară de unel&te"
msgid "&Small"
msgstr "&Mic"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "Ma&re"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Russian.po
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ msgstr "Па&нель инструментов"
msgid "&Small"
msgstr "&Мелкие значки"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "&Крупные значки"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Serbian.po
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,9 @@ msgstr "&Трака алата"
msgid "&Small"
msgstr "&Мала"

msgid "&Medium"
msgstr ""

#, c-format
msgid "&Big"
msgstr "&Велика"
Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Sinhala.po
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,9 @@ msgstr "මෙවලම් තීරය"
msgid "&Small"
msgstr "කුඩා"

msgid "&Medium"
msgstr ""

#, c-format
msgid "&Big"
msgstr "විශාල"
Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Slovak.po
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ msgstr "Lišta &nástrojov"
msgid "&Small"
msgstr "&Malá"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "&Veľká"

Expand Down
3 changes: 3 additions & 0 deletions Translations/WinMerge/Slovenian.po
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ msgstr "&Orodna vrstica"
msgid "&Small"
msgstr "&Male"

msgid "&Medium"
msgstr ""

msgid "&Big"
msgstr "&Velike"

Expand Down
Loading

0 comments on commit 5420fcd

Please sign in to comment.