Skip to content

Commit faa666b

Browse files
vodek3ge0rdi
authored andcommitted
Skin: Adding the ability to localize Immersive/Immersive7 skins
1 parent 42aaaed commit faa666b

File tree

4 files changed

+38
-16
lines changed

4 files changed

+38
-16
lines changed

Src/Skins/Immersive/SkinDescription.txt

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
; Immersive skin
22

3-
About=Immersive skin\n\nA skin that uses immersive colors and modern visual elements in the style of Windows 10.\n\nPart of <A HREF="https://github.com/Open-Shell/Open-Shell-Menu/">Open-Shell</A> (c) 2009-2017, Ivo Beltchev
3+
; About - text to use in the About box for this skin. use \n for new line
4+
About=#7111
5+
6+
; AboutIcon - the ID of an icon resource to use in the About box
47
AboutIcon=1
58

69
; Version - version of the required skin engine. Set to 2 if the skin uses any of the new features introduced in Open-Shell 1.9.0:
@@ -208,10 +211,10 @@ Submenu_separatorV_slices_Y=12,9,12
208211

209212
; OPTIONS
210213

211-
OPTION RADIOGROUP=Menu theme,0,LIGHT|DARK|AUTO
212-
OPTION LIGHT=Light,0
213-
OPTION DARK=Dark,0
214-
OPTION AUTO=Use system setting,1
214+
OPTION RADIOGROUP=#7039,0,LIGHT|DARK|AUTO
215+
OPTION LIGHT=#7040,0
216+
OPTION DARK=#7041,0
217+
OPTION AUTO=#7042,1
215218
OPTION NO_ICONS=#7008,1, TWO_COLUMNS
216219
OPTION CAPTION=#7003,0, NOT TWO_COLUMNS, 0
217220
OPTION USER_IMAGE=#7014,0
@@ -223,9 +226,9 @@ OPTION DISABLE_MASK=#7005,0
223226
OPTION_NUMBER CUSTOM_TEXT_SIZE=#7038,0,TRUE,12
224227
OPTION BLACK_TEXT=#7002,0
225228
OPTION BLACK_FRAMES=#7001,0
226-
OPTION RADIOGROUP=Transparency style,0,TRANSPARENT_LESS|TRANSPARENT_MORE
227-
OPTION TRANSPARENT_LESS=Two-tone#The main section of the menu will use system light/dark colors while additional surfaces use transparent glass with accent color.,1
228-
OPTION TRANSPARENT_MORE=Full glass#The entire main menu will use transparent glass with accent color.,0
229+
OPTION RADIOGROUP=#7043,0,TRANSPARENT_LESS|TRANSPARENT_MORE
230+
OPTION TRANSPARENT_LESS=#7044,1
231+
OPTION TRANSPARENT_MORE=#7045,0
229232

230233
Classic1_options=LIGHT, DARK, AUTO, CAPTION, USER_IMAGE, USER_NAME, CENTER_NAME, SMALL_ICONS, OPAQUE, DISABLE_MASK, CUSTOM_TEXT_SIZE, BLACK_TEXT, BLACK_FRAMES, TRANSPARENT_LESS, TRANSPARENT_MORE
231234
Classic2_options=LIGHT, DARK, AUTO, NO_ICONS, USER_IMAGE, USER_NAME, CENTER_NAME, SMALL_ICONS, OPAQUE, DISABLE_MASK, CUSTOM_TEXT_SIZE, BLACK_TEXT, BLACK_FRAMES, TRANSPARENT_LESS, TRANSPARENT_MORE

Src/Skins/Immersive7/SkinDescription.txt

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
; Immersive skin
22

3-
About=Immersive skin\n\nA skin that uses immersive colors and modern visual elements in the style of Windows 10.\n\nPart of <A HREF="https://github.com/Open-Shell/Open-Shell-Menu/">Open-Shell</A> (c) 2009-2017, Ivo Beltchev
3+
; About - text to use in the About box for this skin. use \n for new line
4+
About=#7111
5+
6+
; AboutIcon - the ID of an icon resource to use in the About box
47
AboutIcon=1
58

69
; Version - version of the required skin engine. Set to 2 if the skin uses any of the new features introduced in Open-Shell 1.9.0:
@@ -336,10 +339,10 @@ Submenu_separatorV_slices_Y=12,9,12
336339

337340
; OPTIONS
338341

339-
OPTION RADIOGROUP=Menu theme,0,LIGHT|DARK|AUTO
340-
OPTION LIGHT=Light,0
341-
OPTION DARK=Dark,0
342-
OPTION AUTO=Use system setting,1
342+
OPTION RADIOGROUP=#7039,0,LIGHT|DARK|AUTO
343+
OPTION LIGHT=#7040,0
344+
OPTION DARK=#7041,0
345+
OPTION AUTO=#7042,1
343346
OPTION USER_IMAGE=#7014,1
344347
OPTION USER_NAME=#7015,0
345348
OPTION CENTER_NAME=#7004,0, USER_NAME, 0
@@ -349,9 +352,9 @@ OPTION DISABLE_MASK=#7005,0
349352
OPTION_NUMBER CUSTOM_TEXT_SIZE=#7038,0,TRUE,12
350353
OPTION BLACK_TEXT=#7002,0
351354
OPTION BLACK_FRAMES=#7001,0
352-
OPTION RADIOGROUP=Transparency style,0,TRANSPARENT_LESS|TRANSPARENT_MORE
353-
OPTION TRANSPARENT_LESS=Two-tone#The main section of the menu will use system light/dark colors while additional surfaces use transparent glass with accent color.,1
354-
OPTION TRANSPARENT_MORE=Full glass#The entire main menu will use transparent glass with accent color.,0
355+
OPTION RADIOGROUP=#7043,0,TRANSPARENT_LESS|TRANSPARENT_MORE
356+
OPTION TRANSPARENT_LESS=#7044,1
357+
OPTION TRANSPARENT_MORE=#7045,0
355358

356359
[SMALL_ICONS]
357360
Main_large_icons=0

Src/StartMenu/StartMenuDLL/StartMenuDLL.rc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,13 @@ BEGIN
11621162
IDS_STRING7036 "Text color for first column (RRGGBB)#Select custom color for the first column of the main menu text"
11631163
IDS_STRING7037 "Text color for second column (RRGGBB)#Select custom color for the second column of the main menu text"
11641164
IDS_STRING7038 "Text size#Select custom size for the main menu text"
1165+
IDS_STRING7039 "Menu theme"
1166+
IDS_STRING7040 "Light"
1167+
IDS_STRING7041 "Dark"
1168+
IDS_STRING7042 "Use system setting"
1169+
IDS_STRING7043 "Transparency style"
1170+
IDS_STRING7044 "Two-tone#The main section of the menu will use system light/dark colors while additional surfaces use transparent glass with accent color."
1171+
IDS_STRING7045 "Full glass#The entire main menu will use transparent glass with accent color."
11651172
END
11661173

11671174
STRINGTABLE
@@ -1181,6 +1188,7 @@ BEGIN
11811188
IDS_STRING7108 "Midnight skin\n\nSkin with dark background.\n\nPart of <A HREF=""https://github.com/Open-Shell/Open-Shell-Menu/"">Open-Shell</A> (c) 2009-2017, Ivo Beltchev"
11821189
IDS_STRING7109 "Metro skin\n\nSkin that uses the start screen colors.\n\nPart of <A HREF=""https://github.com/Open-Shell/Open-Shell-Menu/"">Open-Shell</A> (c) 2009-2017, Ivo Beltchev"
11831190
IDS_STRING7110 "Metallic skin\n\nA start menu skin with metallic look.\n\nPart of <A HREF=""https://github.com/Open-Shell/Open-Shell-Menu/"">Open-Shell</A> (c) 2009-2017, Ivo Beltchev"
1191+
IDS_STRING7111 "Immersive skin\n\nA skin that uses immersive colors and modern visual elements in the style of Windows 10.\n\nPart of <A HREF=""https://github.com/Open-Shell/Open-Shell-Menu/"">Open-Shell</A> (c) 2023, The Open-Shell Team"
11841192
END
11851193

11861194
STRINGTABLE

Src/StartMenu/StartMenuDLL/resource.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,13 @@
824824
#define IDS_STRING7036 7036
825825
#define IDS_STRING7037 7037
826826
#define IDS_STRING7038 7038
827+
#define IDS_STRING7039 7039
828+
#define IDS_STRING7040 7040
829+
#define IDS_STRING7041 7041
830+
#define IDS_STRING7042 7042
831+
#define IDS_STRING7043 7043
832+
#define IDS_STRING7044 7044
833+
#define IDS_STRING7045 7045
827834
#define IDS_STRING7100 7100
828835
#define IDS_STRING7101 7101
829836
#define IDS_STRING7102 7102
@@ -835,6 +842,7 @@
835842
#define IDS_STRING7108 7108
836843
#define IDS_STRING7109 7109
837844
#define IDS_STRING7110 7110
845+
#define IDS_STRING7111 7111
838846

839847
// Next default values for new objects
840848
//

0 commit comments

Comments
 (0)