@ledvance/ui-biz-bundle 1.1.89 → 1.1.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/package.json +1 -1
  2. package/src/modules/flags/FlagEditPage.tsx +180 -179
  3. package/src/modules/flags/FlagItem.tsx +26 -42
  4. package/src/modules/flags/FlagPage.tsx +27 -26
  5. package/src/modules/history/HistoryPage.tsx +111 -103
  6. package/src/modules/music/MusicPage.tsx +90 -88
  7. package/src/modules/timer/TimerPage.tsx +13 -9
  8. package/src/newModules/biorhythm/BiorhythmEditPage.tsx +54 -54
  9. package/src/newModules/biorhythm/BiorhythmPage.tsx +163 -162
  10. package/src/newModules/biorhythm/IconSelect.tsx +5 -4
  11. package/src/newModules/childLock/ChildLockPage.tsx +49 -47
  12. package/src/newModules/energyConsumption/component/EnergyModal.tsx +2 -2
  13. package/src/newModules/fixedTime/FixedTimeDetailPage.tsx +127 -124
  14. package/src/newModules/fixedTime/FixedTimePage.tsx +108 -104
  15. package/src/newModules/lightMode/LightModePage.tsx +74 -67
  16. package/src/newModules/mood/AddMoodPage.tsx +18 -15
  17. package/src/newModules/mood/DynamicMoodEditorPage.tsx +103 -100
  18. package/src/newModules/mood/MixDynamicMoodEditor.tsx +107 -104
  19. package/src/newModules/mood/MoodItem.tsx +59 -55
  20. package/src/newModules/mood/MoodPage.tsx +58 -57
  21. package/src/newModules/mood/RecommendMoodItem.tsx +27 -24
  22. package/src/newModules/mood/StaticMoodEditorPage.tsx +77 -85
  23. package/src/newModules/overchargeSwitch/OverchargeSwitchPage.tsx +36 -48
  24. package/src/newModules/powerOnBehavior/LightBehaviorPage.tsx +137 -135
  25. package/src/newModules/powerOnBehavior/PlugBehaviorPage.tsx +67 -61
  26. package/src/newModules/randomTime/RandomTimeDetailPage.tsx +114 -151
  27. package/src/newModules/randomTime/RandomTimePage.tsx +110 -105
  28. package/src/newModules/randomTime/Summary.tsx +61 -57
  29. package/src/newModules/remoteControl/RemoteControlPage.tsx +4 -3
  30. package/src/newModules/select/SelectPage.tsx +65 -62
  31. package/src/newModules/sleepWakeUp/SleepWakeUpActions.ts +16 -8
  32. package/src/newModules/sleepWakeUp/SleepWakeUpDetailPage.tsx +131 -123
  33. package/src/newModules/sleepWakeUp/SleepWakeUpPage.tsx +144 -140
  34. package/src/newModules/switchGradient/SwitchGradientPage.tsx +24 -25
  35. package/src/newModules/swithInching/SwithInching.tsx +154 -152
  36. package/src/newModules/timeSchedule/TimeScheduleDetailPage.tsx +83 -83
  37. package/src/newModules/timeSchedule/components/ManuaSettings.tsx +3 -2
  38. package/src/newModules/swithInching/pickerView.tsx +0 -91
@@ -7,6 +7,7 @@ import LDVTopBar from '@ledvance/base/src/components/ldvTopBar'
7
7
  import I18n from '@ledvance/base/src/i18n'
8
8
 
9
9
  const cx = Utils.RatioUtils.convertX
10
+ const { withTheme } = Utils.ThemeUtils
10
11
 
11
12
  interface SceneDetailPageParams {
12
13
  id: any
@@ -14,7 +15,7 @@ interface SceneDetailPageParams {
14
15
  iconIdList: any
15
16
  }
16
17
 
17
- function IconSelect() {
18
+ function IconSelect(props: { theme?: any }) {
18
19
  const [list, setList] = useState(iconList)
19
20
  const navigation = useNavigation()
20
21
  const params = useRoute().params as SceneDetailPageParams
@@ -52,7 +53,7 @@ function IconSelect() {
52
53
  />
53
54
  <ScrollView nestedScrollEnabled={true} style={{ marginHorizontal: cx(24) }}>
54
55
  <View style={{ marginTop: cx(40), marginBottom: cx(20) }}>
55
- <Text style={{ fontSize: cx(24), color: '#ff6600' }}>Select an icon</Text>
56
+ <Text style={{ fontSize: cx(24), color: props.theme.global.brand }}>Select an icon</Text>
56
57
  </View>
57
58
  <View
58
59
  style={{ flexDirection: 'row', flex: 1, flexWrap: 'wrap', justifyContent: 'space-between', alignItems: 'flex-start' }}>
@@ -71,7 +72,7 @@ function IconSelect() {
71
72
  width: cx(32),
72
73
  height: cx(32),
73
74
  margin: cx(10),
74
- tintColor: item?.selectStatus ? '#ff757d' : item?.disabled && '#e6e7e8' || '#474e5d',
75
+ tintColor: item?.selectStatus ? props.theme.icon.primary : item?.disabled && props.theme.icon.disable || props.theme.icon.normal,
75
76
  }}
76
77
  />
77
78
  </TouchableOpacity>
@@ -82,4 +83,4 @@ function IconSelect() {
82
83
  )
83
84
  }
84
85
 
85
- export default IconSelect
86
+ export default withTheme(IconSelect)
@@ -11,6 +11,7 @@ import res from "@ledvance/base/src/res";
11
11
  import {useParams} from "@ledvance/base/src/hooks/Hooks";
12
12
 
13
13
  const { convertX: cx } = Utils.RatioUtils
14
+ const { withTheme } = Utils.ThemeUtils
14
15
 
15
16
  export interface ChildLockPageParams {
16
17
  childLockCode: string
@@ -20,20 +21,65 @@ export function useChildLock(childLockCode: string): [boolean, (v: boolean) => P
20
21
  return useDp(childLockCode)
21
22
  }
22
23
 
23
- const ChildLockPage = () => {
24
+ const ChildLockPage = (props: { theme?: any }) => {
24
25
  const params = useParams<ChildLockPageParams>()
25
26
  const devInfo = useDeviceInfo()
26
27
  const [childLock, setChildLock] = useChildLock(params.childLockCode)
27
28
  const state = useReactive({
28
29
  loading: false
29
30
  })
31
+
32
+ const styles = StyleSheet.create({
33
+ tipInfoContainer: {
34
+ flexDirection: 'row',
35
+ marginHorizontal: cx(24),
36
+ marginVertical: cx(10)
37
+ },
38
+ image: {
39
+ width: cx(16),
40
+ height: cx(16),
41
+ marginRight: cx(5),
42
+ tintColor: props.theme.global.fontColor
43
+ },
44
+ titleBGView: {
45
+ flexDirection: 'row',
46
+ alignItems: 'center',
47
+ paddingHorizontal: cx(16),
48
+ marginHorizontal: cx(24),
49
+ },
50
+ colorBlock: {
51
+ width: cx(20),
52
+ height: cx(20),
53
+ marginStart: cx(12),
54
+ borderRadius: cx(4),
55
+ },
56
+ title: {
57
+ color: props.theme.global.fontColor,
58
+ fontSize: cx(14),
59
+ fontFamily: 'helvetica_neue_lt_std_bd',
60
+ paddingVertical: cx(16),
61
+ },
62
+ shadow: {
63
+ shadowColor: props.theme.card.shadowColor,
64
+ shadowOpacity: 0.2,
65
+ shadowRadius: 8,
66
+ elevation:8,
67
+ shadowOffset: {
68
+ width: 0,
69
+ height: 4,
70
+ },
71
+ backgroundColor: props.theme.card.background,
72
+ borderRadius: 8,
73
+ },
74
+ })
75
+
30
76
  return (<Page
31
77
  backText={devInfo.name}
32
78
  headlineText={I18n.getLang('sockets_specific_settings_child_lock')}
33
79
  loading={state.loading}>
34
80
  <View style={styles.tipInfoContainer}>
35
81
  <Image style={styles.image} source={res.ic_info} />
36
- <Text style={{ color: '#000' }}>
82
+ <Text style={{ color: props.theme.global.fontColor }}>
37
83
  {I18n.getLang('childlock_overview_description_text')}
38
84
  </Text>
39
85
  </View>
@@ -50,48 +96,4 @@ const ChildLockPage = () => {
50
96
  </Page>)
51
97
  }
52
98
 
53
- const styles = StyleSheet.create({
54
- tipInfoContainer: {
55
- flexDirection: 'row',
56
- marginHorizontal: cx(24),
57
- marginVertical: cx(10)
58
- },
59
- image: {
60
- width: cx(16),
61
- height: cx(16),
62
- marginRight: cx(5),
63
- tintColor: '#000'
64
- },
65
- titleBGView: {
66
- flexDirection: 'row',
67
- alignItems: 'center',
68
- paddingHorizontal: cx(16),
69
- marginHorizontal: cx(24),
70
- },
71
- colorBlock: {
72
- width: cx(20),
73
- height: cx(20),
74
- marginStart: cx(12),
75
- borderRadius: cx(4),
76
- },
77
- title: {
78
- color: '#000',
79
- fontSize: cx(14),
80
- fontFamily: 'helvetica_neue_lt_std_bd',
81
- paddingVertical: cx(16),
82
- },
83
- shadow: {
84
- shadowColor: '#000000',
85
- shadowOpacity: 0.2,
86
- shadowRadius: 8,
87
- elevation:8,
88
- shadowOffset: {
89
- width: 0,
90
- height: 4,
91
- },
92
- backgroundColor: '#fff',
93
- borderRadius: 8,
94
- },
95
- })
96
-
97
- export default ChildLockPage
99
+ export default withTheme(ChildLockPage)
@@ -264,13 +264,13 @@ const EnergyModal = (props: EnergyModalProps) => {
264
264
  <TouchableOpacity onPress={() => {
265
265
  props.onCancel && props.onCancel()
266
266
  }}>
267
- <Text style={{ color: props.theme.global.brand, fontSize: cx(16) }}>{props.cancelText}</Text>
267
+ <Text style={{ color: props.theme.button.cancel, fontSize: cx(16) }}>{props.cancelText}</Text>
268
268
  </TouchableOpacity>
269
269
  <Text style={{ color: props.theme.global.fontColor, fontSize: cx(16), fontWeight: 'bold' }}>{props.title}</Text>
270
270
  <TouchableOpacity onPress={() => {
271
271
  props.onConfirm && props.onConfirm(state.energyData)
272
272
  }}>
273
- <Text style={{ color: props.theme.global.brand, fontSize: cx(16) }}>{props.confirmText}</Text>
273
+ <Text style={{ color: props.theme.button.primary, fontSize: cx(16) }}>{props.confirmText}</Text>
274
274
  </TouchableOpacity>
275
275
  </View>
276
276
  <View style={{ height: height - cx(100), paddingHorizontal: cx(16), backgroundColor: props.theme.global.background }}>
@@ -24,6 +24,7 @@ import { useSystemTimeFormate } from "@ledvance/base/src/models/modules/NativePr
24
24
  import { useParams } from "@ledvance/base/src/hooks/Hooks";
25
25
 
26
26
  const { convertX: cx } = Utils.RatioUtils;
27
+ const { withTheme } = Utils.ThemeUtils
27
28
  const { toFixedString } = Utils.NumberUtils;
28
29
  const {parseTimer} = Utils.TimeUtils
29
30
 
@@ -33,7 +34,7 @@ export interface FixedTimeDetailPageParams extends FixedTimePageParams {
33
34
  onPost: (mode: 'add' | 'edit' | 'del', fixedTime: FixedTimerUiItem) => Promise<Result<any>>
34
35
  }
35
36
 
36
- const FixedTimeDetailPage = () => {
37
+ const FixedTimeDetailPage = (props: { theme?: any }) => {
37
38
  const navigation = useNavigation()
38
39
  const params = useParams<FixedTimeDetailPageParams>()
39
40
  const is24Hour = useSystemTimeFormate()
@@ -77,6 +78,41 @@ const FixedTimeDetailPage = () => {
77
78
  return state.fixedTime.name?.length > 0 && state.fixedTime.name?.length < 33 && !checkItemChanged && inRangeTime && state.fixedTime.channel !== undefined
78
79
  }, [JSON.stringify(state.fixedTime), checkItemChanged, inRangeTime])
79
80
 
81
+ const styles = StyleSheet.create({
82
+ cardContainer: {
83
+ marginHorizontal: cx(24)
84
+ },
85
+ itemTitle: {
86
+ color: props.theme.global.fontColor,
87
+ fontSize: cx(16),
88
+ fontWeight: 'bold',
89
+ fontFamily: 'helvetica_neue_lt_std_bd',
90
+ },
91
+ applyContent: {
92
+ backgroundColor: props.theme.container.background,
93
+ borderRadius: 4,
94
+ minHeight: cx(55),
95
+ flex: 1,
96
+ justifyContent: 'center',
97
+ paddingHorizontal: cx(10),
98
+ paddingTop: cx(10)
99
+ },
100
+ applyItem: {
101
+ paddingLeft: cx(5),
102
+ flexDirection: 'row',
103
+ justifyContent: 'space-between',
104
+ alignItems: 'center',
105
+ backgroundColor: props.theme.global.background,
106
+ height: cx(35),
107
+ },
108
+ summaryTag: {
109
+ backgroundColor: props.theme.tag.background,
110
+ borderRadius: cx(16),
111
+ paddingHorizontal: cx(12),
112
+ alignSelf: 'flex-start'
113
+ }
114
+ })
115
+
80
116
  return (
81
117
  <Page
82
118
  backText={I18n.getLang('fixedTimeCycle_socket_headline')}
@@ -124,7 +160,8 @@ const FixedTimeDetailPage = () => {
124
160
  {/* pick */}
125
161
  <TimerPicker
126
162
  itemTextColor='#aeadb5'
127
- style={{ paddingVertical: cx(0), marginVertical: cx(0) }}
163
+ style={{ paddingVertical: cx(0), marginVertical: cx(0), backgroundColor: props.theme.global.background }}
164
+ pickerFontColor={props.theme.global.fontColor}
128
165
  is12Hours={!is24Hour}
129
166
  startTime={state.fixedTime.startTime}
130
167
  endTime={state.fixedTime.endTime}
@@ -140,7 +177,9 @@ const FixedTimeDetailPage = () => {
140
177
  state.fixedTime.weeks[rawIndex] = state.fixedTime.weeks[rawIndex] === 1 ? 0 : 1
141
178
  }} />
142
179
  <Spacer />
143
- <Text style={styles.cardContainer}>{loopText(state.fixedTime.weeks, parseTimer(state.fixedTime.endTime * 60))}</Text>
180
+ <Text style={{ ...styles.cardContainer, color: props.theme.global.fontColor, fontSize: cx(14) }}>
181
+ {loopText(state.fixedTime.weeks, parseTimer(state.fixedTime.endTime * 60))}
182
+ </Text>
144
183
  <Spacer />
145
184
  {/* Apply for */}
146
185
  <View style={styles.cardContainer}>
@@ -148,15 +187,15 @@ const FixedTimeDetailPage = () => {
148
187
  <Spacer height={cx(10)} />
149
188
  <View style={[styles.applyContent, { paddingTop: state.fixedTime.channel === undefined ? 0 : cx(10) }]}>
150
189
  {state.fixedTime.channel === undefined ?
151
- <Text>{I18n.getLang('timer_ceiling_fan_selectionfield_no_components_text')}</Text> :
190
+ <Text style={{color: props.theme.global.fontColor}}>{I18n.getLang('timer_ceiling_fan_selectionfield_no_components_text')}</Text> :
152
191
  <View style={[styles.applyItem, { marginBottom: cx(10), borderRadius: 4 }]}>
153
- <Text style={{ color: '#000' }}>{params.applyForList[params.isPlug ? state.fixedTime.channel : 0]?.key}</Text>
192
+ <Text style={{ color: props.theme.global.fontColor }}>{params.applyForList[params.isPlug ? state.fixedTime.channel : 0]?.key}</Text>
154
193
  {params.applyForList.length > 1 && <TouchableOpacity
155
- onPress={() => {
156
- state.fixedTime.channel = undefined
157
- }}
158
- style={{ paddingHorizontal: cx(5) }}>
159
- <Image style={{ width: cx(16), height: cx(16) }} source={res.ic_arrows_nav_clear} />
194
+ onPress={() => {
195
+ state.fixedTime.channel = undefined
196
+ }}
197
+ style={{ paddingHorizontal: cx(5) }}>
198
+ <Image style={{ width: cx(16), height: cx(16), tintColor: props.theme.global.fontColor }} source={res.ic_arrows_nav_clear} />
160
199
  </TouchableOpacity>}
161
200
  </View>
162
201
  }
@@ -170,8 +209,8 @@ const FixedTimeDetailPage = () => {
170
209
  onPress={() => {
171
210
  state.fixedTime.channel = params.isPlug ? index : 1
172
211
  }}>
173
- <Text style={{ color: '#000' }}>{item.key}</Text>
174
- <Image style={{ width: cx(16), height: cx(16) }} source={res.device_panel_timer_add} />
212
+ <Text style={{ color: props.theme.global.fontColor }}>{item.key}</Text>
213
+ <Image style={{ width: cx(16), height: cx(16), tintColor: props.theme.global.fontColor }} source={res.device_panel_timer_add} />
175
214
  </TouchableOpacity>
176
215
  )
177
216
  })}
@@ -179,63 +218,63 @@ const FixedTimeDetailPage = () => {
179
218
  <Spacer />
180
219
  {/* Devices */}
181
220
  {state.fixedTime.color && !params.isPlug && <View style={styles.cardContainer}>
182
- <Text style={styles.itemTitle}>{I18n.getLang('timeschedule_add_schedule_subheadline2_text')}</Text>
183
- <Spacer height={cx(10)} />
184
- <Card>
185
- <LdvSwitch
186
- title={I18n.getLang('light_sources_tile_tw_lighting_headline')}
187
- color={'#fff'}
188
- colorAlpha={1}
189
- enable={true}
190
- setEnable={() => { }}
191
- showSwitch={false}
192
- />
193
- <LampAdjustView
194
- isSupportColor={!!params.isSupportColor}
195
- isSupportBrightness={!!params.isSupportBrightness}
196
- isSupportTemperature={!!params.isSupportTemperature}
197
- isColorMode={state.fixedTime.isColorMode ?? false}
198
- reserveSV={true}
199
- setIsColorMode={(v) => state.fixedTime.isColorMode = v}
200
- h={state.fixedTime.color.h}
201
- s={state.fixedTime.color.s}
202
- v={state.fixedTime.color.v}
203
- colorTemp={state.fixedTime.color.temperature}
204
- brightness={state.fixedTime.color.brightness}
205
- onHSVChangeComplete={(h, s, v) => {
206
- state.fixedTime.color = {
207
- ...state.fixedTime.color,
208
- h,
209
- s,
210
- v
211
- }
212
- }}
213
- onCCTChangeComplete={(v) => {
214
- state.fixedTime.color = {
215
- ...state.fixedTime.color,
216
- temperature: v
217
- }
218
- }}
219
- onBrightnessChangeComplete={(v) => {
220
- state.fixedTime.color = {
221
- ...state.fixedTime.color,
222
- brightness: v
223
- }
224
- }}
225
- />
226
- </Card>
227
- <Spacer />
221
+ <Text style={styles.itemTitle}>{I18n.getLang('timeschedule_add_schedule_subheadline2_text')}</Text>
222
+ <Spacer height={cx(10)} />
223
+ <Card>
224
+ <LdvSwitch
225
+ title={I18n.getLang('light_sources_tile_tw_lighting_headline')}
226
+ color={props.theme.card.background}
227
+ colorAlpha={1}
228
+ enable={true}
229
+ setEnable={() => { }}
230
+ showSwitch={false}
231
+ />
232
+ <LampAdjustView
233
+ isSupportColor={!!params.isSupportColor}
234
+ isSupportBrightness={!!params.isSupportBrightness}
235
+ isSupportTemperature={!!params.isSupportTemperature}
236
+ isColorMode={state.fixedTime.isColorMode ?? false}
237
+ reserveSV={true}
238
+ setIsColorMode={(v) => state.fixedTime.isColorMode = v}
239
+ h={state.fixedTime.color.h}
240
+ s={state.fixedTime.color.s}
241
+ v={state.fixedTime.color.v}
242
+ colorTemp={state.fixedTime.color.temperature}
243
+ brightness={state.fixedTime.color.brightness}
244
+ onHSVChangeComplete={(h, s, v) => {
245
+ state.fixedTime.color = {
246
+ ...state.fixedTime.color,
247
+ h,
248
+ s,
249
+ v
250
+ }
251
+ }}
252
+ onCCTChangeComplete={(v) => {
253
+ state.fixedTime.color = {
254
+ ...state.fixedTime.color,
255
+ temperature: v
256
+ }
257
+ }}
258
+ onBrightnessChangeComplete={(v) => {
259
+ state.fixedTime.color = {
260
+ ...state.fixedTime.color,
261
+ brightness: v
262
+ }
263
+ }}
264
+ />
265
+ </Card>
266
+ <Spacer />
228
267
  </View>}
229
268
  {/* Settings */}
230
269
  <View style={styles.cardContainer}>
231
270
  <Text style={styles.itemTitle}>{I18n.getLang('timeschedule_add_schedule_subheadline4_text')}</Text>
232
271
  <Spacer height={cx(10)} />
233
272
  {!inRangeTime && <View style={{ flexDirection: 'row', alignItems: 'center' }}>
234
- <Image style={{ width: cx(16), height: cx(16), tintColor: 'rgb(255,149,0)' }} source={res.ic_warning_amber} />
235
- <Text style={{ fontSize: cx(12), color: 'rgb(255,149,0)' }}>{I18n.getLang('addTimeCycle_warning_text')}</Text>
273
+ <Image style={{ width: cx(16), height: cx(16), tintColor: props.theme.global.warning }} source={res.ic_warning_amber} />
274
+ <Text style={{ fontSize: cx(12), color: props.theme.global.warning }}>{I18n.getLang('addTimeCycle_warning_text')}</Text>
236
275
  </View>}
237
276
  <View >
238
- <Text style={{ color: '#000', marginVertical: cx(10) }}>{I18n.getLang('addTimeCycle_settings_sec_text')}</Text>
277
+ <Text style={{ color: props.theme.global.fontColor, marginVertical: cx(10) }}>{I18n.getLang('addTimeCycle_settings_sec_text')}</Text>
239
278
  <LdvPickerView
240
279
  hour={toFixedString(Math.trunc(state.fixedTime.openTime / 60), 2)}
241
280
  minute={toFixedString(state.fixedTime.openTime % 60, 2)}
@@ -249,7 +288,7 @@ const FixedTimeDetailPage = () => {
249
288
  />
250
289
  </View>
251
290
  <View>
252
- <Text style={{ color: '#000', marginVertical: cx(10) }}>{I18n.getLang('addTimeCycle_settings_sec_text2')}</Text>
291
+ <Text style={{ color: props.theme.global.fontColor, marginVertical: cx(10) }}>{I18n.getLang('addTimeCycle_settings_sec_text2')}</Text>
253
292
  <LdvPickerView
254
293
  hour={toFixedString(Math.trunc(state.fixedTime.closeTime / 60), 2)}
255
294
  minute={toFixedString(state.fixedTime.closeTime % 60, 2)}
@@ -270,81 +309,45 @@ const FixedTimeDetailPage = () => {
270
309
  time={`${convertMinutesTo12HourFormat(state.fixedTime.startTime, is24Hour)} - ${convertMinutesTo12HourFormat(state.fixedTime.endTime, is24Hour)}`}
271
310
  actions={(
272
311
  <View style={{ flexDirection: 'column' }}>
273
- <Text style={{ color: '#000' }}>{I18n.formatValue('feature_summary_action_txt_4', `${Math.trunc(state.fixedTime.openTime / 60)}`, `${state.fixedTime.openTime % 60}`)}</Text>
312
+ <Text style={{ color: props.theme.global.fontColor }}>{I18n.formatValue('feature_summary_action_txt_4', `${Math.trunc(state.fixedTime.openTime / 60)}`, `${state.fixedTime.openTime % 60}`)}</Text>
274
313
  <View style={styles.summaryTag}>
275
- <Text style={{ color: '#000' }}>{params.applyForList[params.isPlug ? (state.fixedTime.channel ?? 0) : 0]?.key}</Text>
314
+ <Text style={{ color: props.theme.tag.fontColor }}>{params.applyForList[params.isPlug ? (state.fixedTime.channel ?? 0) : 0]?.key}</Text>
276
315
  </View>
277
316
  <Spacer height={cx(5)} />
278
- <Text style={{ color: '#000' }}>{I18n.formatValue('feature_summary_action_txt_6', `${Math.trunc(state.fixedTime.closeTime / 60)}`, `${state.fixedTime.closeTime % 60}`)}</Text>
317
+ <Text style={{ color: props.theme.global.fontColor }}>{I18n.formatValue('feature_summary_action_txt_6', `${Math.trunc(state.fixedTime.closeTime / 60)}`, `${state.fixedTime.closeTime % 60}`)}</Text>
279
318
  <View style={styles.summaryTag}>
280
- <Text style={{ color: '#000' }}>{params.applyForList[params.isPlug ? (state.fixedTime.channel ?? 0) : 0]?.key}</Text>
319
+ <Text style={{ color: props.theme.tag.fontColor }}>{params.applyForList[params.isPlug ? (state.fixedTime.channel ?? 0) : 0]?.key}</Text>
281
320
  </View>
282
321
  </View>
283
322
  )}
284
323
  />
285
324
  <Spacer />
286
325
  {params.mode === 'edit' &&
287
- <View style={{ marginHorizontal: cx(24) }}>
288
- <DeleteButton
289
- text={I18n.getLang('edit_fixedtimecycle_bttn_text')}
290
- onPress={() => {
291
- showDialog({
292
- method: 'confirm',
293
- title: I18n.getLang('cancel_dialog_delete_item_fixedtimecycle_titel'),
294
- subTitle: I18n.getLang('cancel_dialog_delete_item_fixedtimecycle_description'),
295
- onConfirm: async (_, { close }) => {
296
- close()
297
- state.loading = true
298
- const res = await params.onPost('del', state.fixedTime)
299
- state.loading = false
300
- if (res.success) {
301
- navigation.goBack()
302
- }
303
- }
304
- })
305
- }} />
306
- <Spacer />
307
- </View>
326
+ <View style={{ marginHorizontal: cx(24) }}>
327
+ <DeleteButton
328
+ text={I18n.getLang('edit_fixedtimecycle_bttn_text')}
329
+ onPress={() => {
330
+ showDialog({
331
+ method: 'confirm',
332
+ title: I18n.getLang('cancel_dialog_delete_item_fixedtimecycle_titel'),
333
+ subTitle: I18n.getLang('cancel_dialog_delete_item_fixedtimecycle_description'),
334
+ onConfirm: async (_, { close }) => {
335
+ close()
336
+ state.loading = true
337
+ const res = await params.onPost('del', state.fixedTime)
338
+ state.loading = false
339
+ if (res.success) {
340
+ navigation.goBack()
341
+ }
342
+ }
343
+ })
344
+ }} />
345
+ <Spacer />
346
+ </View>
308
347
  }
309
348
  </ScrollView>
310
349
  </Page>
311
350
  )
312
351
  }
313
352
 
314
-
315
- const styles = StyleSheet.create({
316
- cardContainer: {
317
- marginHorizontal: cx(24)
318
- },
319
- itemTitle: {
320
- color: '#000',
321
- fontSize: cx(16),
322
- fontWeight: 'bold',
323
- fontFamily: 'helvetica_neue_lt_std_bd',
324
- },
325
- applyContent: {
326
- backgroundColor: '#f6f6f6',
327
- borderRadius: 4,
328
- minHeight: cx(55),
329
- flex: 1,
330
- justifyContent: 'center',
331
- paddingHorizontal: cx(10),
332
- paddingTop: cx(10)
333
- },
334
- applyItem: {
335
- paddingLeft: cx(5),
336
- flexDirection: 'row',
337
- justifyContent: 'space-between',
338
- alignItems: 'center',
339
- backgroundColor: '#fff',
340
- height: cx(35),
341
- },
342
- summaryTag: {
343
- backgroundColor: '#cbcbcb',
344
- borderRadius: cx(16),
345
- paddingHorizontal: cx(12),
346
- alignSelf: 'flex-start'
347
- }
348
- })
349
-
350
- export default FixedTimeDetailPage
353
+ export default withTheme(FixedTimeDetailPage)