summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/AuthState/src/options.cpp5
-rw-r--r--plugins/CountryFlags/src/options.cpp10
-rw-r--r--plugins/FingerprintNG/src/options.cpp7
-rw-r--r--src/mir_app/res/resource.rc23
-rw-r--r--src/mir_app/src/skin2opts.cpp4
-rw-r--r--src/mir_app/src/skinicons.cpp2
6 files changed, 32 insertions, 19 deletions
diff --git a/plugins/AuthState/src/options.cpp b/plugins/AuthState/src/options.cpp
index 9ea7b6b17b..c2dc544cc4 100644
--- a/plugins/AuthState/src/options.cpp
+++ b/plugins/AuthState/src/options.cpp
@@ -48,8 +48,9 @@ public:
int onOptInitialise(WPARAM wParam, LPARAM)
{
OPTIONSDIALOGPAGE odp = {};
- odp.szGroup.a = LPGEN("Icons");
- odp.szTitle.a = LPGEN("Auth state");
+ odp.szGroup.a = LPGEN("Customize");
+ odp.szTitle.a = LPGEN("Icons");
+ odp.szTab.a = LPGEN("Auth state");
odp.flags = ODPF_BOLDGROUPS;
odp.pDialog = new COptionsDialog();
g_plugin.addOptions(wParam, &odp);
diff --git a/plugins/CountryFlags/src/options.cpp b/plugins/CountryFlags/src/options.cpp
index 29a2f9c4de..f6f0dc9978 100644
--- a/plugins/CountryFlags/src/options.cpp
+++ b/plugins/CountryFlags/src/options.cpp
@@ -83,13 +83,13 @@ static INT_PTR CALLBACK ExtraImgOptDlgProc(HWND hwndDlg, UINT msg, WPARAM, LPARA
int OnOptionsInit(WPARAM wParam, LPARAM)
{
OPTIONSDIALOGPAGE odp = {};
- odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_EXTRAIMG);
- odp.position = 900000002;
- odp.szGroup.a = LPGEN("Icons"); /* autotranslated */
- odp.szTitle.a = LPGEN("Country Flags"); /* autotranslated */
- odp.szTab.a = LPGEN("Country Flags"); /* autotranslated, can be made a tab */
odp.flags = ODPF_BOLDGROUPS;
+ odp.position = 900000002;
+ odp.szGroup.a = LPGEN("Customize");
+ odp.szTitle.a = LPGEN("Icons");
+ odp.szTab.a = LPGEN("Country Flags");
odp.pfnDlgProc = ExtraImgOptDlgProc;
+ odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_EXTRAIMG);
g_plugin.addOptions(wParam, &odp);
return 0;
}
diff --git a/plugins/FingerprintNG/src/options.cpp b/plugins/FingerprintNG/src/options.cpp
index d9b56c26ac..6cde2061ff 100644
--- a/plugins/FingerprintNG/src/options.cpp
+++ b/plugins/FingerprintNG/src/options.cpp
@@ -120,10 +120,11 @@ public:
int OnOptInitialise(WPARAM wParam, LPARAM)
{
OPTIONSDIALOGPAGE odp = {};
- odp.szGroup.w = LPGENW("Icons");
- odp.szTitle.w = LPGENW("Fingerprint");
+ odp.flags = ODPF_BOLDGROUPS;
+ odp.szGroup.a = LPGEN("Customize");
+ odp.szTitle.a = LPGEN("Icons");
+ odp.szTab.a = LPGEN("Fingerprint");
odp.pDialog = new COptDialog;
- odp.flags = ODPF_BOLDGROUPS | ODPF_UNICODE;
g_plugin.addOptions(wParam, &odp);
return 0;
}
diff --git a/src/mir_app/res/resource.rc b/src/mir_app/res/resource.rc
index 528a2df3b2..76b7ea66a7 100644
--- a/src/mir_app/res/resource.rc
+++ b/src/mir_app/res/resource.rc
@@ -432,17 +432,17 @@ BEGIN
LTEXT "Choose font",IDC_STATIC,231,231,79,14,SS_CENTERIMAGE
END
-IDD_OPT_ICOLIB DIALOGEX 0, 0, 316, 251
+IDD_OPT_ICOLIB DIALOGEX 0, 0, 316, 237
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
EXSTYLE WS_EX_CONTROLPARENT
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
- GROUPBOX "Icons",IDC_STICONSGROUP,0,0,315,250
- CONTROL "List1",IDC_PREVIEW,"SysListView32",LVS_AUTOARRANGE | WS_BORDER | WS_TABSTOP,107,10,203,207
- PUSHBUTTON "&Load icon set...",IDC_LOADICONS,116,220,94,13
- PUSHBUTTON "&Import icons >>",IDC_IMPORT,215,220,89,13
- CONTROL "Download more icons",IDC_GETMORE,"Hyperlink",WS_TABSTOP | 0x1,109,237,201,8
- CONTROL "Tree1",IDC_CATEGORYLIST,"SysTreeView32",TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | TVS_SHOWSELALWAYS | TVS_FULLROWSELECT | TVS_NOHSCROLL | WS_BORDER | WS_TABSTOP,4,10,100,235
+ GROUPBOX "Icons",IDC_STICONSGROUP,0,0,315,236
+ CONTROL "List1",IDC_PREVIEW,"SysListView32",LVS_AUTOARRANGE | WS_BORDER | WS_TABSTOP,107,10,203,192
+ PUSHBUTTON "&Load icon set...",IDC_LOADICONS,116,205,94,13
+ PUSHBUTTON "&Import icons >>",IDC_IMPORT,215,205,89,13
+ CONTROL "Download more icons",IDC_GETMORE,"Hyperlink",WS_TABSTOP | 0x1,109,222,201,8
+ CONTROL "Tree1",IDC_CATEGORYLIST,"SysTreeView32",TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | TVS_SHOWSELALWAYS | TVS_FULLROWSELECT | TVS_NOHSCROLL | WS_BORDER | WS_TABSTOP,4,10,100,221
END
IDD_ICOLIB_IMPORT DIALOGEX 0, 0, 217, 194
@@ -1315,6 +1315,10 @@ BEGIN
TOPMARGIN, 4
END
+ IDD_OPT_ICOLIB, DIALOG
+ BEGIN
+ END
+
IDD_OPT_GENMENU, DIALOG
BEGIN
END
@@ -1785,6 +1789,11 @@ BEGIN
0
END
+IDD_OPT_ICOLIB AFX_DIALOG_LAYOUT
+BEGIN
+ 0
+END
+
#endif // English (United States) resources
/////////////////////////////////////////////////////////////////////////////
diff --git a/src/mir_app/src/skin2opts.cpp b/src/mir_app/src/skin2opts.cpp
index 6586e4d3e6..288ef2a5da 100644
--- a/src/mir_app/src/skin2opts.cpp
+++ b/src/mir_app/src/skin2opts.cpp
@@ -926,8 +926,10 @@ int SkinOptionsInit(WPARAM wParam, LPARAM)
OPTIONSDIALOGPAGE odp = {};
odp.flags = ODPF_BOLDGROUPS;
odp.position = -180000000;
- odp.pDialog = new CIcoLibOptsDlg();
+ odp.szGroup.a = LPGEN("Customize");
odp.szTitle.a = LPGEN("Icons");
+ odp.szTab.a = LPGEN("Icons");
+ odp.pDialog = new CIcoLibOptsDlg();
g_plugin.addOptions(wParam, &odp);
return 0;
}
diff --git a/src/mir_app/src/skinicons.cpp b/src/mir_app/src/skinicons.cpp
index ff07e277c0..ed74917d67 100644
--- a/src/mir_app/src/skinicons.cpp
+++ b/src/mir_app/src/skinicons.cpp
@@ -390,7 +390,7 @@ int LoadSkinIcons(void)
continue;
mir_snprintf(iconName, "%s%d", mainIconsFmt, i);
- sid.section.a = mainIcons[i].section == nullptr ? (char*)LPGEN("Main icons") : (char*)mainIcons[i].section;
+ sid.section.a = mainIcons[i].section == nullptr ? LPGEN("Main icons") : mainIcons[i].section;
sid.description.a = (char*)mainIcons[i].description;
sid.iDefaultIndex = mainIcons[i].resource_id;
mainIcons[i].hIcolib = IcoLib_AddIcon(&sid, 0);