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 >
0 commit comments