@@ -93,34 +93,6 @@ inline SettingInfo buildFontFamilySetting(const SdCardFontRegistry* registry) {
9393// Shared settings list used by both the device settings UI and the web settings API.
9494// Each entry has a key (for JSON API) and category (for grouping).
9595// ACTION-type entries and entries without a key are device-only.
96- <<<<<<< HEAD
97- inline const std::vector<SettingInfo>& getSettingsList () {
98- <<<<<<< HEAD
99- static const std::vector<SettingInfo> list = {
100- // --- Display ---
101- SettingInfo::Enum (StrId::STR_SLEEP_SCREEN , &CrossPointSettings::sleepScreen,
102- {StrId::STR_DARK , StrId::STR_LIGHT , StrId::STR_CUSTOM , StrId::STR_COVER , StrId::STR_NONE_OPT ,
103- StrId::STR_COVER_CUSTOM },
104- " sleepScreen" , StrId::STR_CAT_DISPLAY ),
105- SettingInfo::Enum (StrId::STR_SLEEP_COVER_MODE , &CrossPointSettings::sleepScreenCoverMode,
106- {StrId::STR_FIT , StrId::STR_CROP }, " sleepScreenCoverMode" , StrId::STR_CAT_DISPLAY ),
107- SettingInfo::Enum (StrId::STR_SLEEP_COVER_FILTER , &CrossPointSettings::sleepScreenCoverFilter,
108- {StrId::STR_NONE_OPT , StrId::STR_FILTER_CONTRAST , StrId::STR_INVERTED },
109- " sleepScreenCoverFilter" , StrId::STR_CAT_DISPLAY ),
110- SettingInfo::Enum (StrId::STR_HIDE_BATTERY , &CrossPointSettings::hideBatteryPercentage,
111- {StrId::STR_NEVER , StrId::STR_IN_READER , StrId::STR_ALWAYS }, " hideBatteryPercentage" ,
112- StrId::STR_CAT_DISPLAY ),
113- SettingInfo::Enum (
114- StrId::STR_REFRESH_FREQ , &CrossPointSettings::refreshFrequency,
115- {StrId::STR_PAGES_1 , StrId::STR_PAGES_5 , StrId::STR_PAGES_10 , StrId::STR_PAGES_15 , StrId::STR_PAGES_30 },
116- " refreshFrequency" , StrId::STR_CAT_DISPLAY ),
117- SettingInfo::Enum (StrId::STR_UI_THEME , &CrossPointSettings::uiTheme,
118- {StrId::STR_THEME_CLASSIC , StrId::STR_THEME_COMPACT , StrId::STR_THEME_LYRA , StrId::STR_THEME_LYRA_EXTENDED }, " uiTheme" ,
119- StrId::STR_CAT_DISPLAY ),
120- SettingInfo::Toggle (StrId::STR_SUNLIGHT_FADING_FIX , &CrossPointSettings::fadingFix, " fadingFix" ,
121- =======
122- static const std::vector<SettingInfo> list = [] {
123- =======
12496//
12597// The static list is constructed exactly once (master's optimization, #1086 +
12698// #1636) so the per-entry SettingInfo cost is paid once. When an
@@ -129,7 +101,6 @@ inline const std::vector<SettingInfo>& getSettingsList() {
129101// version. Callers without SD fonts pay only a vector copy.
130102inline std::vector<SettingInfo> getSettingsList (const SdCardFontRegistry* registry = nullptr ) {
131103 static const std::vector<SettingInfo> baseList = [] {
132- >>>>>>> upstream/master
133104 std::vector<SettingInfo> v = {
134105 // --- Display ---
135106 SettingInfo::Enum (StrId::STR_SLEEP_SCREEN , &CrossPointSettings::sleepScreen,
@@ -143,7 +114,6 @@ inline std::vector<SettingInfo> getSettingsList(const SdCardFontRegistry* regist
143114 " sleepScreenCoverFilter" , StrId::STR_CAT_DISPLAY ),
144115 SettingInfo::Enum (StrId::STR_HIDE_BATTERY , &CrossPointSettings::hideBatteryPercentage,
145116 {StrId::STR_NEVER , StrId::STR_IN_READER , StrId::STR_ALWAYS }, " hideBatteryPercentage" ,
146- >>>>>>> origin/master
147117 StrId::STR_CAT_DISPLAY ),
148118 SettingInfo::Enum (
149119 StrId::STR_REFRESH_FREQ , &CrossPointSettings::refreshFrequency,
@@ -280,4 +250,4 @@ inline std::vector<SettingInfo> getSettingsList(const SdCardFontRegistry* regist
280250 }
281251 }
282252 return v;
283- }
253+ }
0 commit comments