Skip to content

Commit 044d9b6

Browse files
authored
Merge pull request #496 from TcMenu/main-all-builder-theme
#453 all themes are now based on theme builder.
2 parents d7d4173 + e403eb3 commit 044d9b6

16 files changed

+530
-14
lines changed

xmlPlugins/core-themes/CoolBlueModern.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<TcMenuPlugin name="%theme.cool.blue.modern.name" id="850dc0a3-f534-47c2-94d8-1e64ff368a54"
1+
<TcMenuPlugin name="DEPRECATED - Legacy Cool blue modern theme" id="850dc0a3-f534-47c2-94d8-1e64ff368a54"
22
subsystem="THEME" requiresDesigner="2.0"
33
xmlns="https://www.thecoderscorner.com/libraries/tcmenuPluginItem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="https://www.thecoderscorner.com/libraries/tcmenuPluginItem https://www.thecoderscorner.com/products/arduino-libraries/libraries/tcmenu-plugin-item.xsd">
55
<SupportedPlatforms>
66
<All/>
77
</SupportedPlatforms>
8-
<Description>%theme.cool.blue.modern.desc</Description>
8+
<Description>THIS THEME IS DEPRECATED (kept for existing users), cool blue modern theme</Description>
99
<Documentation link="https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/themes/color-themes-for-all-display-sizes/"/>
1010
<RequiredLibraries/>
1111
<ImageFile>theme-cool-blue-modern.jpg</ImageFile>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<TcMenuPlugin name="%theme.cool.blue.modern.name" id="1947F585-9D36-448C-8A80-B425686107BD"
2+
subsystem="THEME" requiresDesigner="2.0"
3+
xmlns="https://www.thecoderscorner.com/libraries/tcmenuPluginItem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="https://www.thecoderscorner.com/libraries/tcmenuPluginItem https://www.thecoderscorner.com/products/arduino-libraries/libraries/tcmenu-plugin-item.xsd">
5+
<SupportedPlatforms>
6+
<All/>
7+
</SupportedPlatforms>
8+
<Description>%theme.cool.blue.modern.desc</Description>
9+
<Documentation link="https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/themes/monochrome-themes-for-oled-5110/"/>
10+
<RequiredLibraries/>
11+
<ImageFile>theme-cool-blue-modern.jpg</ImageFile>
12+
13+
<Properties>
14+
<Property id="ITEM_FONT" name="%theme.item.font" initial="def:,1" desc="%theme.item.font.desc" type="font"/>
15+
<Property id="TITLE_FONT" name="%theme.title.font" initial="def:,1" desc="%theme.title.font.desc" type="font"/>
16+
<Property id="BORDER_FOR_ACTIONS" name="%theme.border.for.action" initial="0" desc="%theme.border.for.action.desc" type="int" min="0" max="3"/>
17+
<Property id="TITLE_SHOW_MODE" name="%theme.title.show.mode" initial="TITLE_FIRST_ROW" desc="%theme.title.show.mode.desc" type="choice">
18+
<Choices>
19+
<Choice desc="%theme.title.none">NO_TITLE</Choice>
20+
<Choice desc="%theme.title.first.row">TITLE_FIRST_ROW</Choice>
21+
<Choice desc="%theme.title.always">TITLE_ALWAYS</Choice>
22+
</Choices>
23+
</Property>
24+
<Property id="USE_TC_UNICODE" name="%theme.use.tcunicode" initial="false" type="boolean" desc="%theme.use.tcunicode.desc"/>
25+
<Property id="USE_SLIDER_ANALOG" name="%theme.use.sliders" initial="true" desc="%theme.use.sliders.desc" type="boolean"/>
26+
<Property id="NEED_EDITING_ICONS" name="%theme.need.edit.icons" initial="false" desc="theme.need.edit.icons.desc" type="boolean"/>
27+
</Properties>
28+
29+
<ApplicabilityDefs/>
30+
31+
<SourceFiles>
32+
<Replacement find="USE_SLIDER_FOR_ANALOG 1" replace="USE_SLIDER_FOR_ANALOG ${USE_SLIDER_ANALOG}"/>
33+
<Replacement find="ACTION_BORDER_WIDTH 0" replace="ACTION_BORDER_WIDTH ${BORDER_FOR_ACTIONS}"/>
34+
<SourceFile name="coolBlue/ThemeCoolBlueModernBuilder.h" overwrite="false"/>
35+
</SourceFiles>
36+
37+
<IncludeFiles>
38+
<Header name="${SRC_DIR_OFFSET}ThemeCoolBlueModernBuilder.h" inSource="cppSrc"/>
39+
<Header name="tcUnicodeHelper.h" inSource="false" priority="high" whenProperty="USE_TC_UNICODE" isValue="true" />
40+
<Header name="${ITEM_FONT}" inSource="font"/>
41+
<Header name="${TITLE_FONT}" inSource="font"/>
42+
</IncludeFiles>
43+
44+
<GlobalVariables>
45+
<Variable name="${ITEM_FONT}" export="font" whenProperty="ITEM_FONT" matches="ad[al]:.*" />
46+
<Variable name="${TITLE_FONT}" export="font" whenProperty="ITEM_FONT" matches="ad[al]:.*" />
47+
</GlobalVariables>
48+
49+
<SetupFunctions>
50+
<Function name="installDarkModeModernTheme">
51+
<Param value="renderer"/>
52+
<Param font="${ITEM_FONT}"/>
53+
<Param font="${TITLE_FONT}"/>
54+
<Param value="${NEED_EDITING_ICONS}"/>
55+
<Param name="BaseGraphicalRenderer::${TITLE_SHOW_MODE}"/>
56+
<Param name="${USE_TC_UNICODE}"/>
57+
</Function>
58+
</SetupFunctions>
59+
</TcMenuPlugin>

xmlPlugins/core-themes/CoolBlueTraditional.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<TcMenuPlugin name="%theme.cool.blue.traditional.name" id="03c6b25f-db63-402a-8447-a5ce1484c14d"
1+
<TcMenuPlugin name="DEPRECATED cool blue traditional" id="03c6b25f-db63-402a-8447-a5ce1484c14d"
22
subsystem="THEME" requiresDesigner="2.0"
33
xmlns="https://www.thecoderscorner.com/libraries/tcmenuPluginItem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="https://www.thecoderscorner.com/libraries/tcmenuPluginItem https://www.thecoderscorner.com/products/arduino-libraries/libraries/tcmenu-plugin-item.xsd">
55
<SupportedPlatforms>
66
<All/>
77
</SupportedPlatforms>
8-
<Description>%theme.cool.blue.traditional.desc</Description>
8+
<Description>THIS THEME IS DEPRECATED (kept for existing users), cool blue traditional theme</Description>
99
<Documentation link="https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/themes/color-themes-for-all-display-sizes/"/>
1010
<RequiredLibraries/>
1111
<ImageFile>theme-cool-blue-traditional.jpg</ImageFile>
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<TcMenuPlugin name="%theme.cool.blue.traditional.name" id="57945787-0A04-447B-BBA2-6461FC505397"
2+
subsystem="THEME" requiresDesigner="2.0"
3+
xmlns="https://www.thecoderscorner.com/libraries/tcmenuPluginItem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="https://www.thecoderscorner.com/libraries/tcmenuPluginItem https://www.thecoderscorner.com/products/arduino-libraries/libraries/tcmenu-plugin-item.xsd">
5+
<SupportedPlatforms>
6+
<All/>
7+
</SupportedPlatforms>
8+
<Description>%theme.cool.blue.traditional.desc</Description>
9+
<Documentation link="https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/themes/color-themes-for-all-display-sizes/"/>
10+
<RequiredLibraries/>
11+
<ImageFile>theme-cool-blue-traditional.jpg</ImageFile>
12+
13+
<Properties>
14+
<Property id="ITEM_FONT" name="%theme.item.font" initial="def:,1" desc="%theme.item.font.desc" type="font"/>
15+
<Property id="TITLE_FONT" name="%theme.title.font" initial="def:,1" desc="%theme.title.font.desc" type="font"/>
16+
<Property id="TITLE_SHOW_MODE" name="%theme.title.show.mode" initial="TITLE_FIRST_ROW" desc="%theme.title.show.mode.desc" type="choice">
17+
<Choices>
18+
<Choice desc="%theme.title.none">NO_TITLE</Choice>
19+
<Choice desc="%theme.title.first.row">TITLE_FIRST_ROW</Choice>
20+
<Choice desc="%theme.title.always">TITLE_ALWAYS</Choice>
21+
</Choices>
22+
</Property>
23+
<Property id="USE_TC_UNICODE" name="%theme.use.tcunicode" initial="false" type="boolean" desc="%theme.use.tcunicode.desc"/>
24+
<Property id="NEED_EDITING_ICONS" name="%theme.need.edit.icons" initial="false" desc="theme.need.edit.icons.desc" type="boolean"/>
25+
</Properties>
26+
27+
<ApplicabilityDefs/>
28+
29+
<SourceFiles>
30+
<SourceFile name="coolBlue/ThemeCoolBlueTraditionalBuilder.h" overwrite="false"/>
31+
</SourceFiles>
32+
33+
<IncludeFiles>
34+
<Header name="${SRC_DIR_OFFSET}ThemeCoolBlueTraditionalBuilder.h" inSource="cppSrc"/>
35+
<Header name="tcUnicodeHelper.h" inSource="false" priority="high" whenProperty="USE_TC_UNICODE" isValue="true" />
36+
<Header name="${ITEM_FONT}" inSource="font"/>
37+
<Header name="${TITLE_FONT}" inSource="font"/>
38+
</IncludeFiles>
39+
40+
<GlobalVariables>
41+
<Variable name="${ITEM_FONT}" export="font" whenProperty="ITEM_FONT" matches="ad[al]:.*" />
42+
<Variable name="${TITLE_FONT}" export="font" whenProperty="ITEM_FONT" matches="ad[al]:.*" />
43+
</GlobalVariables>
44+
45+
<SetupFunctions>
46+
<Function name="installCoolBlueTraditionalTheme">
47+
<Param value="renderer"/>
48+
<Param font="${ITEM_FONT}"/>
49+
<Param font="${TITLE_FONT}"/>
50+
<Param value="${NEED_EDITING_ICONS}"/>
51+
<Param name="BaseGraphicalRenderer::${TITLE_SHOW_MODE}"/>
52+
<Param name="${USE_TC_UNICODE}"/>
53+
</Function>
54+
</SetupFunctions>
55+
</TcMenuPlugin>

xmlPlugins/core-themes/DarkModeModern.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<TcMenuPlugin name="%theme.dark.modern.name" id="e3d447ef-a620-47fa-9a3c-012665b30bdf"
1+
<TcMenuPlugin name="DEPRECATED dark mode modern theme" id="e3d447ef-a620-47fa-9a3c-012665b30bdf"
22
subsystem="THEME" requiresDesigner="2.0"
33
xmlns="https://www.thecoderscorner.com/libraries/tcmenuPluginItem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="https://www.thecoderscorner.com/libraries/tcmenuPluginItem https://www.thecoderscorner.com/products/arduino-libraries/libraries/tcmenu-plugin-item.xsd">
55
<SupportedPlatforms>
66
<All/>
77
</SupportedPlatforms>
8-
<Description>%theme.dark.modern.desc</Description>
8+
<Description>THIS THEME IS DEPRECATED (kept for existing users), dark mode modern theme</Description>
99
<Documentation link="https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/themes/dark-themes-for-all-display-sizes/"/>
1010
<RequiredLibraries/>
1111
<ImageFile>theme-dark-mode-modern.jpg</ImageFile>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<TcMenuPlugin name="%theme.dark.modern.name" id="94D05CB2-952F-4E0C-A402-9F51CAFBD99E"
2+
subsystem="THEME" requiresDesigner="2.0"
3+
xmlns="https://www.thecoderscorner.com/libraries/tcmenuPluginItem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="https://www.thecoderscorner.com/libraries/tcmenuPluginItem https://www.thecoderscorner.com/products/arduino-libraries/libraries/tcmenu-plugin-item.xsd">
5+
<SupportedPlatforms>
6+
<All/>
7+
</SupportedPlatforms>
8+
<Description>%theme.dark.modern.desc</Description>
9+
<Documentation link="https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/themes/dark-themes-for-all-display-sizes/"/>
10+
<RequiredLibraries/>
11+
<ImageFile>theme-dark-mode-modern.jpg</ImageFile>
12+
13+
<Properties>
14+
<Property id="ITEM_FONT" name="%theme.item.font" initial="def:,1" desc="%theme.item.font.desc" type="font"/>
15+
<Property id="TITLE_FONT" name="%theme.title.font" initial="def:,1" desc="%theme.title.font.desc" type="font"/>
16+
<Property id="BORDER_FOR_ACTIONS" name="%theme.border.for.action" initial="0" desc="%theme.border.for.action.desc" type="int" min="0" max="3"/>
17+
<Property id="TITLE_SHOW_MODE" name="%theme.title.show.mode" initial="TITLE_FIRST_ROW" desc="%theme.title.show.mode.desc" type="choice">
18+
<Choices>
19+
<Choice desc="%theme.title.none">NO_TITLE</Choice>
20+
<Choice desc="%theme.title.first.row">TITLE_FIRST_ROW</Choice>
21+
<Choice desc="%theme.title.always">TITLE_ALWAYS</Choice>
22+
</Choices>
23+
</Property>
24+
<Property id="USE_TC_UNICODE" name="%theme.use.tcunicode" initial="false" type="boolean" desc="%theme.use.tcunicode.desc"/>
25+
<Property id="USE_SLIDER_ANALOG" name="%theme.use.sliders" initial="true" desc="%theme.use.sliders.desc" type="boolean"/>
26+
<Property id="NEED_EDITING_ICONS" name="%theme.need.edit.icons" initial="false" desc="theme.need.edit.icons.desc" type="boolean"/>
27+
</Properties>
28+
29+
<ApplicabilityDefs/>
30+
31+
<SourceFiles>
32+
<Replacement find="USE_SLIDER_FOR_ANALOG 1" replace="USE_SLIDER_FOR_ANALOG ${USE_SLIDER_ANALOG}"/>
33+
<Replacement find="ACTION_BORDER_WIDTH 0" replace="ACTION_BORDER_WIDTH ${BORDER_FOR_ACTIONS}"/>
34+
<SourceFile name="darkMode/ThemeDarkModeModernBuilder.h" overwrite="false"/>
35+
</SourceFiles>
36+
37+
<IncludeFiles>
38+
<Header name="${SRC_DIR_OFFSET}ThemeDarkModeModernBuilder.h" inSource="cppSrc"/>
39+
<Header name="tcUnicodeHelper.h" inSource="false" priority="high" whenProperty="USE_TC_UNICODE" isValue="true" />
40+
<Header name="${ITEM_FONT}" inSource="font"/>
41+
<Header name="${TITLE_FONT}" inSource="font"/>
42+
</IncludeFiles>
43+
44+
<GlobalVariables>
45+
<Variable name="${ITEM_FONT}" export="font" whenProperty="ITEM_FONT" matches="ad[al]:.*" />
46+
<Variable name="${TITLE_FONT}" export="font" whenProperty="ITEM_FONT" matches="ad[al]:.*" />
47+
</GlobalVariables>
48+
49+
<SetupFunctions>
50+
<Function name="installDarkModeModernTheme">
51+
<Param value="renderer"/>
52+
<Param font="${ITEM_FONT}"/>
53+
<Param font="${TITLE_FONT}"/>
54+
<Param value="${NEED_EDITING_ICONS}"/>
55+
<Param name="BaseGraphicalRenderer::${TITLE_SHOW_MODE}"/>
56+
<Param name="${USE_TC_UNICODE}"/>
57+
</Function>
58+
</SetupFunctions>
59+
</TcMenuPlugin>

xmlPlugins/core-themes/DarkModeTraditional.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<TcMenuPlugin name="%theme.dark.traditional.name" id="e4524028-edd8-4e0a-ae15-a1f2ba05354f"
1+
<TcMenuPlugin name="DEPRECATED - dark mode traditional theme" id="e4524028-edd8-4e0a-ae15-a1f2ba05354f"
22
subsystem="THEME" requiresDesigner="2.0"
33
xmlns="https://www.thecoderscorner.com/libraries/tcmenuPluginItem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="https://www.thecoderscorner.com/libraries/tcmenuPluginItem https://www.thecoderscorner.com/products/arduino-libraries/libraries/tcmenu-plugin-item.xsd">
55
<SupportedPlatforms>
66
<All/>
77
</SupportedPlatforms>
8-
<Description>%theme.dark.traditional.desc</Description>
8+
<Description>THIS THEME IS DEPRECATED (kept for existing users), dark mode traditional theme</Description>
99
<Documentation link="https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/themes/dark-themes-for-all-display-sizes/"/>
1010
<RequiredLibraries/>
1111
<ImageFile>theme-dark-mode-traditional.jpg</ImageFile>
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<TcMenuPlugin name="%theme.dark.traditional.name" id="2F1EAB1E-0469-42C8-A222-BE2DF96D6D81"
2+
subsystem="THEME" requiresDesigner="2.0"
3+
xmlns="https://www.thecoderscorner.com/libraries/tcmenuPluginItem" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="https://www.thecoderscorner.com/libraries/tcmenuPluginItem https://www.thecoderscorner.com/products/arduino-libraries/libraries/tcmenu-plugin-item.xsd">
5+
<SupportedPlatforms>
6+
<All/>
7+
</SupportedPlatforms>
8+
<Description>%theme.dark.traditional.desc</Description>
9+
<Documentation link="https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/themes/dark-themes-for-all-display-sizes/"/>
10+
<RequiredLibraries/>
11+
<ImageFile>theme-dark-mode-traditional.jpg</ImageFile>
12+
13+
<Properties>
14+
<Property id="ITEM_FONT" name="%theme.item.font" initial="def:,1" desc="%theme.item.font.desc" type="font"/>
15+
<Property id="TITLE_FONT" name="%theme.title.font" initial="def:,1" desc="%theme.title.font.desc" type="font"/>
16+
<Property id="TITLE_SHOW_MODE" name="%theme.title.show.mode" initial="TITLE_FIRST_ROW" desc="%theme.title.show.mode.desc" type="choice">
17+
<Choices>
18+
<Choice desc="%theme.title.none">NO_TITLE</Choice>
19+
<Choice desc="%theme.title.first.row">TITLE_FIRST_ROW</Choice>
20+
<Choice desc="%theme.title.always">TITLE_ALWAYS</Choice>
21+
</Choices>
22+
</Property>
23+
<Property id="USE_TC_UNICODE" name="%theme.use.tcunicode" initial="false" type="boolean" desc="%theme.use.tcunicode.desc"/>
24+
<Property id="NEED_EDITING_ICONS" name="%theme.need.edit.icons" initial="false" desc="theme.need.edit.icons.desc" type="boolean"/> </Properties>
25+
26+
<ApplicabilityDefs/>
27+
28+
<SourceFiles>
29+
<SourceFile name="darkMode/ThemeDarkModeTraditionalBuilder.h" overwrite="false"/>
30+
</SourceFiles>
31+
32+
<IncludeFiles>
33+
<Header name="${SRC_DIR_OFFSET}ThemeDarkModeTraditionalBuilder.h" inSource="cppSrc"/>
34+
<Header name="tcUnicodeHelper.h" inSource="false" priority="high" whenProperty="USE_TC_UNICODE" isValue="true" />
35+
<Header name="${ITEM_FONT}" inSource="font"/>
36+
<Header name="${TITLE_FONT}" inSource="font"/>
37+
</IncludeFiles>
38+
39+
<GlobalVariables>
40+
<Variable name="${ITEM_FONT}" export="font" whenProperty="ITEM_FONT" matches="ad[al]:.*" />
41+
<Variable name="${TITLE_FONT}" export="font" whenProperty="ITEM_FONT" matches="ad[al]:.*" />
42+
</GlobalVariables>
43+
44+
<SetupFunctions>
45+
<Function name="installDarkModeTraditionalTheme">
46+
<Param value="renderer"/>
47+
<Param font="${ITEM_FONT}"/>
48+
<Param font="${TITLE_FONT}"/>
49+
<Param value="${NEED_EDITING_ICONS}"/>
50+
<Param name="BaseGraphicalRenderer::${TITLE_SHOW_MODE}"/>
51+
<Param name="${USE_TC_UNICODE}"/>
52+
</Function>
53+
</SetupFunctions>
54+
</TcMenuPlugin>

xmlPlugins/core-themes/MonoInverseTitle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<SupportedPlatforms>
66
<All/>
77
</SupportedPlatforms>
8-
<Description>THIS THEME IS DEPRECATED (kept existing users), mono inverse theme for lower resolution.</Description>
8+
<Description>THIS THEME IS DEPRECATED (kept for existing users), mono inverse theme for lower resolution.</Description>
99
<Documentation link="https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/themes/monochrome-themes-for-oled-5110/"/>
1010
<RequiredLibraries/>
1111
<ImageFile>theme-oled-inverse.jpg</ImageFile>

0 commit comments

Comments
 (0)