@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.
- package/package.json +1 -1
- package/src/modules/flags/FlagEditPage.tsx +180 -179
- package/src/modules/flags/FlagItem.tsx +26 -42
- package/src/modules/flags/FlagPage.tsx +27 -26
- package/src/modules/history/HistoryPage.tsx +111 -103
- package/src/modules/music/MusicPage.tsx +90 -88
- package/src/modules/timer/TimerPage.tsx +13 -9
- package/src/newModules/biorhythm/BiorhythmEditPage.tsx +54 -54
- package/src/newModules/biorhythm/BiorhythmPage.tsx +163 -162
- package/src/newModules/biorhythm/IconSelect.tsx +5 -4
- package/src/newModules/childLock/ChildLockPage.tsx +49 -47
- package/src/newModules/energyConsumption/component/EnergyModal.tsx +2 -2
- package/src/newModules/fixedTime/FixedTimeDetailPage.tsx +127 -124
- package/src/newModules/fixedTime/FixedTimePage.tsx +108 -104
- package/src/newModules/lightMode/LightModePage.tsx +74 -67
- package/src/newModules/mood/AddMoodPage.tsx +18 -15
- package/src/newModules/mood/DynamicMoodEditorPage.tsx +103 -100
- package/src/newModules/mood/MixDynamicMoodEditor.tsx +107 -104
- package/src/newModules/mood/MoodItem.tsx +59 -55
- package/src/newModules/mood/MoodPage.tsx +58 -57
- package/src/newModules/mood/RecommendMoodItem.tsx +27 -24
- package/src/newModules/mood/StaticMoodEditorPage.tsx +77 -85
- package/src/newModules/overchargeSwitch/OverchargeSwitchPage.tsx +36 -48
- package/src/newModules/powerOnBehavior/LightBehaviorPage.tsx +137 -135
- package/src/newModules/powerOnBehavior/PlugBehaviorPage.tsx +67 -61
- package/src/newModules/randomTime/RandomTimeDetailPage.tsx +114 -151
- package/src/newModules/randomTime/RandomTimePage.tsx +110 -105
- package/src/newModules/randomTime/Summary.tsx +61 -57
- package/src/newModules/remoteControl/RemoteControlPage.tsx +4 -3
- package/src/newModules/select/SelectPage.tsx +65 -62
- package/src/newModules/sleepWakeUp/SleepWakeUpActions.ts +16 -8
- package/src/newModules/sleepWakeUp/SleepWakeUpDetailPage.tsx +131 -123
- package/src/newModules/sleepWakeUp/SleepWakeUpPage.tsx +144 -140
- package/src/newModules/switchGradient/SwitchGradientPage.tsx +24 -25
- package/src/newModules/swithInching/SwithInching.tsx +154 -152
- package/src/newModules/timeSchedule/TimeScheduleDetailPage.tsx +83 -83
- package/src/newModules/timeSchedule/components/ManuaSettings.tsx +3 -2
- package/src/newModules/swithInching/pickerView.tsx +0 -91
|
@@ -43,6 +43,7 @@ import { MoodNodeInfo } from './Interface';
|
|
|
43
43
|
import { showDialog } from '@ledvance/base/src/utils/common';
|
|
44
44
|
|
|
45
45
|
const cx = Utils.RatioUtils.convertX;
|
|
46
|
+
const { withTheme } = Utils.ThemeUtils
|
|
46
47
|
interface DynamicMoodEditorPageState {
|
|
47
48
|
headline: string;
|
|
48
49
|
mood: MoodUIInfo;
|
|
@@ -51,7 +52,7 @@ interface DynamicMoodEditorPageState {
|
|
|
51
52
|
sceneMode: StripLightMoodMode;
|
|
52
53
|
loading: boolean;
|
|
53
54
|
}
|
|
54
|
-
const DynamicMoodEditorPage = () => {
|
|
55
|
+
const DynamicMoodEditorPage = (props: { theme?: any }) => {
|
|
55
56
|
const navigation = useNavigation();
|
|
56
57
|
const routeParams = useRoute().params as StaticMoodEditorPageParams;
|
|
57
58
|
const params = cloneDeep(routeParams);
|
|
@@ -65,8 +66,8 @@ const DynamicMoodEditorPage = () => {
|
|
|
65
66
|
sceneMode: moduleParams.isStringLight
|
|
66
67
|
? stringLightMoodMode
|
|
67
68
|
: moduleParams.isStripLight
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
? stripLightMoodMode
|
|
70
|
+
: lightMoodMode,
|
|
70
71
|
});
|
|
71
72
|
|
|
72
73
|
useEffect(() => {
|
|
@@ -134,6 +135,98 @@ const DynamicMoodEditorPage = () => {
|
|
|
134
135
|
return state.mood.name.length > 0 && state.mood.name.length < 33 && !nameRepeat && (params.mode === 'add' || !checkMoodChanged)
|
|
135
136
|
}, [nameRepeat, state.mood.name, checkMoodChanged, params.mode])
|
|
136
137
|
|
|
138
|
+
const styles = StyleSheet.create({
|
|
139
|
+
root: {
|
|
140
|
+
flex: 1,
|
|
141
|
+
flexDirection: 'column',
|
|
142
|
+
},
|
|
143
|
+
name: {
|
|
144
|
+
marginHorizontal: cx(24),
|
|
145
|
+
},
|
|
146
|
+
adjustCard: {
|
|
147
|
+
marginVertical: cx(12),
|
|
148
|
+
marginHorizontal: cx(24),
|
|
149
|
+
},
|
|
150
|
+
fanAdjustCard: {
|
|
151
|
+
marginHorizontal: cx(24),
|
|
152
|
+
},
|
|
153
|
+
lightLine: {
|
|
154
|
+
flexDirection: 'row',
|
|
155
|
+
marginHorizontal: cx(16),
|
|
156
|
+
},
|
|
157
|
+
light: {
|
|
158
|
+
color: props.theme.global.fontColor,
|
|
159
|
+
fontSize: cx(18),
|
|
160
|
+
fontFamily: 'helvetica_neue_lt_std_bd',
|
|
161
|
+
},
|
|
162
|
+
transitionMode: {
|
|
163
|
+
marginHorizontal: cx(16),
|
|
164
|
+
},
|
|
165
|
+
preview: {
|
|
166
|
+
width: cx(20),
|
|
167
|
+
height: cx(20),
|
|
168
|
+
marginStart: cx(12),
|
|
169
|
+
borderRadius: cx(4),
|
|
170
|
+
},
|
|
171
|
+
nodesAdjust: {
|
|
172
|
+
flexDirection: 'row',
|
|
173
|
+
alignItems: 'center',
|
|
174
|
+
},
|
|
175
|
+
adjustButtons: {
|
|
176
|
+
width: cx(44),
|
|
177
|
+
marginStart: cx(16),
|
|
178
|
+
},
|
|
179
|
+
adjustButton: {
|
|
180
|
+
width: cx(44),
|
|
181
|
+
height: cx(44),
|
|
182
|
+
},
|
|
183
|
+
nodeList: {
|
|
184
|
+
flex: 1,
|
|
185
|
+
marginHorizontal: cx(16),
|
|
186
|
+
},
|
|
187
|
+
nodeItem: {
|
|
188
|
+
flexDirection: 'row',
|
|
189
|
+
alignItems: 'center',
|
|
190
|
+
},
|
|
191
|
+
nodeBlock: {
|
|
192
|
+
flex: 1,
|
|
193
|
+
height: cx(40),
|
|
194
|
+
borderRadius: cx(8),
|
|
195
|
+
},
|
|
196
|
+
nodeDeleteBtn: {
|
|
197
|
+
width: cx(24),
|
|
198
|
+
height: cx(30),
|
|
199
|
+
justifyContent: 'center',
|
|
200
|
+
alignItems: 'center',
|
|
201
|
+
},
|
|
202
|
+
nodeDeleteIcon: {
|
|
203
|
+
width: cx(16),
|
|
204
|
+
height: cx(16),
|
|
205
|
+
},
|
|
206
|
+
nodeAddBtn: {
|
|
207
|
+
height: cx(40),
|
|
208
|
+
justifyContent: 'center',
|
|
209
|
+
alignItems: 'center',
|
|
210
|
+
marginEnd: cx(26),
|
|
211
|
+
borderRadius: cx(8),
|
|
212
|
+
borderWidth: cx(1),
|
|
213
|
+
borderStyle: 'dashed',
|
|
214
|
+
borderColor: props.theme.addNode.border,
|
|
215
|
+
backgroundColor: props.theme.addNode.background,
|
|
216
|
+
},
|
|
217
|
+
deleteBtn: {
|
|
218
|
+
width: '100%',
|
|
219
|
+
height: cx(50),
|
|
220
|
+
backgroundColor: props.theme.button.delete,
|
|
221
|
+
borderRadius: cx(8),
|
|
222
|
+
},
|
|
223
|
+
deleteBtnText: {
|
|
224
|
+
color: props.theme.button.fontColor,
|
|
225
|
+
fontSize: cx(16),
|
|
226
|
+
fontFamily: 'helvetica_neue_lt_std_bd',
|
|
227
|
+
},
|
|
228
|
+
})
|
|
229
|
+
|
|
137
230
|
return (
|
|
138
231
|
<Page
|
|
139
232
|
backText={Strings.getLang('mesh_device_detail_mode')}
|
|
@@ -172,7 +265,7 @@ const DynamicMoodEditorPage = () => {
|
|
|
172
265
|
}}
|
|
173
266
|
maxLength={33}
|
|
174
267
|
showError={state.mood.name.length > 32 || nameRepeat}
|
|
175
|
-
tipColor={nameRepeat ?
|
|
268
|
+
tipColor={nameRepeat ? props.theme.global.error : undefined}
|
|
176
269
|
tipIcon={nameRepeat ? res.ic_text_field_input_error : undefined}
|
|
177
270
|
errorText={Strings.getLang(
|
|
178
271
|
nameRepeat ? 'string_light_pp_field_sm_add_error1' : 'add_new_dynamic_mood_alert_text'
|
|
@@ -289,7 +382,7 @@ const DynamicMoodEditorPage = () => {
|
|
|
289
382
|
<Image
|
|
290
383
|
style={[
|
|
291
384
|
styles.adjustButton,
|
|
292
|
-
{ tintColor: state.mainBucketSelected ?
|
|
385
|
+
{ tintColor: state.mainBucketSelected ? props.theme.icon.primary : props.theme.icon.normal },
|
|
293
386
|
]}
|
|
294
387
|
source={res.ic_paint_bucket}
|
|
295
388
|
/>
|
|
@@ -302,7 +395,7 @@ const DynamicMoodEditorPage = () => {
|
|
|
302
395
|
<Image
|
|
303
396
|
style={[
|
|
304
397
|
styles.adjustButton,
|
|
305
|
-
{ tintColor: state.mainBucketSelected ?
|
|
398
|
+
{ tintColor: state.mainBucketSelected ? props.theme.icon.normal : props.theme.icon.primary },
|
|
306
399
|
]}
|
|
307
400
|
source={res.ic_colorize}
|
|
308
401
|
/>
|
|
@@ -337,7 +430,7 @@ const DynamicMoodEditorPage = () => {
|
|
|
337
430
|
style={[
|
|
338
431
|
styles.nodeDeleteIcon,
|
|
339
432
|
{
|
|
340
|
-
tintColor: state.mood.mainLamp.nodes.length < 3 ?
|
|
433
|
+
tintColor: state.mood.mainLamp.nodes.length < 3 ? props.theme.icon.disable : props.theme.icon.normal,
|
|
341
434
|
},
|
|
342
435
|
]}
|
|
343
436
|
source={res.ic_mood_del}
|
|
@@ -369,7 +462,7 @@ const DynamicMoodEditorPage = () => {
|
|
|
369
462
|
style={{
|
|
370
463
|
width: cx(18),
|
|
371
464
|
height: cx(18),
|
|
372
|
-
tintColor:
|
|
465
|
+
tintColor: props.theme.global.fontColor,
|
|
373
466
|
}}
|
|
374
467
|
source={{ uri: res.add }}
|
|
375
468
|
/>
|
|
@@ -550,98 +643,8 @@ const DynamicMoodEditorPage = () => {
|
|
|
550
643
|
</Page>
|
|
551
644
|
);
|
|
552
645
|
};
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
flex: 1,
|
|
556
|
-
flexDirection: 'column',
|
|
557
|
-
},
|
|
558
|
-
name: {
|
|
559
|
-
marginHorizontal: cx(24),
|
|
560
|
-
},
|
|
561
|
-
adjustCard: {
|
|
562
|
-
marginVertical: cx(12),
|
|
563
|
-
marginHorizontal: cx(24),
|
|
564
|
-
},
|
|
565
|
-
fanAdjustCard: {
|
|
566
|
-
marginHorizontal: cx(24),
|
|
567
|
-
},
|
|
568
|
-
lightLine: {
|
|
569
|
-
flexDirection: 'row',
|
|
570
|
-
marginHorizontal: cx(16),
|
|
571
|
-
},
|
|
572
|
-
light: {
|
|
573
|
-
color: '#000',
|
|
574
|
-
fontSize: cx(18),
|
|
575
|
-
fontFamily: 'helvetica_neue_lt_std_bd',
|
|
576
|
-
},
|
|
577
|
-
transitionMode: {
|
|
578
|
-
marginHorizontal: cx(16),
|
|
579
|
-
},
|
|
580
|
-
preview: {
|
|
581
|
-
width: cx(20),
|
|
582
|
-
height: cx(20),
|
|
583
|
-
marginStart: cx(12),
|
|
584
|
-
borderRadius: cx(4),
|
|
585
|
-
},
|
|
586
|
-
nodesAdjust: {
|
|
587
|
-
flexDirection: 'row',
|
|
588
|
-
alignItems: 'center',
|
|
589
|
-
},
|
|
590
|
-
adjustButtons: {
|
|
591
|
-
width: cx(44),
|
|
592
|
-
marginStart: cx(16),
|
|
593
|
-
},
|
|
594
|
-
adjustButton: {
|
|
595
|
-
width: cx(44),
|
|
596
|
-
height: cx(44),
|
|
597
|
-
},
|
|
598
|
-
nodeList: {
|
|
599
|
-
flex: 1,
|
|
600
|
-
marginHorizontal: cx(16),
|
|
601
|
-
},
|
|
602
|
-
nodeItem: {
|
|
603
|
-
flexDirection: 'row',
|
|
604
|
-
alignItems: 'center',
|
|
605
|
-
},
|
|
606
|
-
nodeBlock: {
|
|
607
|
-
flex: 1,
|
|
608
|
-
height: cx(40),
|
|
609
|
-
borderRadius: cx(8),
|
|
610
|
-
},
|
|
611
|
-
nodeDeleteBtn: {
|
|
612
|
-
width: cx(24),
|
|
613
|
-
height: cx(30),
|
|
614
|
-
justifyContent: 'center',
|
|
615
|
-
alignItems: 'center',
|
|
616
|
-
},
|
|
617
|
-
nodeDeleteIcon: {
|
|
618
|
-
width: cx(16),
|
|
619
|
-
height: cx(16),
|
|
620
|
-
},
|
|
621
|
-
nodeAddBtn: {
|
|
622
|
-
height: cx(40),
|
|
623
|
-
justifyContent: 'center',
|
|
624
|
-
alignItems: 'center',
|
|
625
|
-
marginEnd: cx(26),
|
|
626
|
-
borderRadius: cx(8),
|
|
627
|
-
borderWidth: cx(1),
|
|
628
|
-
borderStyle: 'dashed',
|
|
629
|
-
borderColor: '#666',
|
|
630
|
-
backgroundColor: '#f6f6f6',
|
|
631
|
-
},
|
|
632
|
-
deleteBtn: {
|
|
633
|
-
width: '100%',
|
|
634
|
-
height: cx(50),
|
|
635
|
-
backgroundColor: '#666',
|
|
636
|
-
borderRadius: cx(8),
|
|
637
|
-
},
|
|
638
|
-
deleteBtnText: {
|
|
639
|
-
color: '#fff',
|
|
640
|
-
fontSize: cx(16),
|
|
641
|
-
fontFamily: 'helvetica_neue_lt_std_bd',
|
|
642
|
-
},
|
|
643
|
-
});
|
|
644
|
-
export default DynamicMoodEditorPage;
|
|
646
|
+
|
|
647
|
+
export default withTheme(DynamicMoodEditorPage)
|
|
645
648
|
export function getTransitionModeString(transitionMode: MoodNodeTransitionMode): string {
|
|
646
649
|
if (transitionMode === MoodNodeTransitionMode.Jump) {
|
|
647
650
|
return Strings.getLang('other_lights_modes_jump_text');
|
|
@@ -42,6 +42,7 @@ import ColorTempAdjustView from '@ledvance/base/src/components/ColorTempAdjustVi
|
|
|
42
42
|
import { showDialog } from '@ledvance/base/src/utils/common';
|
|
43
43
|
|
|
44
44
|
const cx = Utils.RatioUtils.convertX;
|
|
45
|
+
const { withTheme } = Utils.ThemeUtils
|
|
45
46
|
interface MixDynamicMoodEditorPageState extends StaticMoodEditorPageState {
|
|
46
47
|
mainBucketSelected: boolean;
|
|
47
48
|
secondaryBucketSelected: boolean;
|
|
@@ -50,7 +51,7 @@ interface MixDynamicMoodEditorPageState extends StaticMoodEditorPageState {
|
|
|
50
51
|
sceneMode: StripLightMoodMode;
|
|
51
52
|
mainSceneMode: any
|
|
52
53
|
}
|
|
53
|
-
const MixDynamicMoodEditorPage = () => {
|
|
54
|
+
const MixDynamicMoodEditorPage = (props: { theme?: any }) => {
|
|
54
55
|
const navigation = useNavigation();
|
|
55
56
|
const routeParams = useRoute().params as StaticMoodEditorPageParams;
|
|
56
57
|
const params = cloneDeep(routeParams);
|
|
@@ -146,6 +147,98 @@ const MixDynamicMoodEditorPage = () => {
|
|
|
146
147
|
return state.mood.name.length > 0 && state.mood.name.length < 33 && !nameRepeat && (params.mode === 'add' || !checkMoodChanged)
|
|
147
148
|
}, [nameRepeat, state.mood.name, checkMoodChanged, params.mode])
|
|
148
149
|
|
|
150
|
+
const styles = StyleSheet.create({
|
|
151
|
+
root: {
|
|
152
|
+
flex: 1,
|
|
153
|
+
flexDirection: 'column',
|
|
154
|
+
},
|
|
155
|
+
name: {
|
|
156
|
+
marginHorizontal: cx(24),
|
|
157
|
+
},
|
|
158
|
+
adjustCard: {
|
|
159
|
+
marginVertical: cx(12),
|
|
160
|
+
marginHorizontal: cx(24),
|
|
161
|
+
},
|
|
162
|
+
fanAdjustCard: {
|
|
163
|
+
marginHorizontal: cx(24),
|
|
164
|
+
},
|
|
165
|
+
lightLine: {
|
|
166
|
+
flexDirection: 'row',
|
|
167
|
+
marginHorizontal: cx(16),
|
|
168
|
+
},
|
|
169
|
+
light: {
|
|
170
|
+
color: props.theme.global.fontColor,
|
|
171
|
+
fontSize: cx(18),
|
|
172
|
+
fontFamily: 'helvetica_neue_lt_std_bd',
|
|
173
|
+
},
|
|
174
|
+
transitionMode: {
|
|
175
|
+
marginHorizontal: cx(16),
|
|
176
|
+
},
|
|
177
|
+
preview: {
|
|
178
|
+
width: cx(20),
|
|
179
|
+
height: cx(20),
|
|
180
|
+
marginStart: cx(12),
|
|
181
|
+
borderRadius: cx(4),
|
|
182
|
+
},
|
|
183
|
+
nodesAdjust: {
|
|
184
|
+
flexDirection: 'row',
|
|
185
|
+
alignItems: 'center',
|
|
186
|
+
},
|
|
187
|
+
adjustButtons: {
|
|
188
|
+
width: cx(44),
|
|
189
|
+
marginStart: cx(16),
|
|
190
|
+
},
|
|
191
|
+
adjustButton: {
|
|
192
|
+
width: cx(44),
|
|
193
|
+
height: cx(44),
|
|
194
|
+
},
|
|
195
|
+
nodeList: {
|
|
196
|
+
flex: 1,
|
|
197
|
+
marginHorizontal: cx(16),
|
|
198
|
+
},
|
|
199
|
+
nodeItem: {
|
|
200
|
+
flexDirection: 'row',
|
|
201
|
+
alignItems: 'center',
|
|
202
|
+
},
|
|
203
|
+
nodeBlock: {
|
|
204
|
+
flex: 1,
|
|
205
|
+
height: cx(40),
|
|
206
|
+
borderRadius: cx(8),
|
|
207
|
+
},
|
|
208
|
+
nodeDeleteBtn: {
|
|
209
|
+
width: cx(24),
|
|
210
|
+
height: cx(30),
|
|
211
|
+
justifyContent: 'center',
|
|
212
|
+
alignItems: 'center',
|
|
213
|
+
},
|
|
214
|
+
nodeDeleteIcon: {
|
|
215
|
+
width: cx(16),
|
|
216
|
+
height: cx(16),
|
|
217
|
+
},
|
|
218
|
+
nodeAddBtn: {
|
|
219
|
+
height: cx(40),
|
|
220
|
+
justifyContent: 'center',
|
|
221
|
+
alignItems: 'center',
|
|
222
|
+
marginEnd: cx(26),
|
|
223
|
+
borderRadius: cx(8),
|
|
224
|
+
borderWidth: cx(1),
|
|
225
|
+
borderStyle: 'dashed',
|
|
226
|
+
borderColor: props.theme.addNode.border,
|
|
227
|
+
backgroundColor: props.theme.addNode.background,
|
|
228
|
+
},
|
|
229
|
+
deleteBtn: {
|
|
230
|
+
width: '100%',
|
|
231
|
+
height: cx(50),
|
|
232
|
+
backgroundColor: props.theme.button.delete,
|
|
233
|
+
borderRadius: cx(8),
|
|
234
|
+
},
|
|
235
|
+
deleteBtnText: {
|
|
236
|
+
color: props.theme.button.fontColor,
|
|
237
|
+
fontSize: cx(16),
|
|
238
|
+
fontFamily: 'helvetica_neue_lt_std_bd',
|
|
239
|
+
},
|
|
240
|
+
})
|
|
241
|
+
|
|
149
242
|
return (
|
|
150
243
|
<Page
|
|
151
244
|
backText={Strings.getLang('mesh_device_detail_mode')}
|
|
@@ -196,7 +289,7 @@ const MixDynamicMoodEditorPage = () => {
|
|
|
196
289
|
}}
|
|
197
290
|
maxLength={33}
|
|
198
291
|
showError={state.mood.name.length > 32 || nameRepeat}
|
|
199
|
-
tipColor={nameRepeat ?
|
|
292
|
+
tipColor={nameRepeat ? props.theme.global.error : undefined}
|
|
200
293
|
tipIcon={nameRepeat ? res.ic_text_field_input_error : undefined}
|
|
201
294
|
errorText={Strings.getLang(
|
|
202
295
|
nameRepeat ? 'string_light_pp_field_sm_add_error1' : 'add_new_dynamic_mood_alert_text'
|
|
@@ -205,7 +298,7 @@ const MixDynamicMoodEditorPage = () => {
|
|
|
205
298
|
<Card style={styles.adjustCard}>
|
|
206
299
|
<LdvSwitch
|
|
207
300
|
title={I18n.getLang('light_sources_tile_main_lighting_headline')}
|
|
208
|
-
color=
|
|
301
|
+
color={props.theme.card.background}
|
|
209
302
|
colorAlpha={1}
|
|
210
303
|
enable={!!state.mood.mainLamp.enable}
|
|
211
304
|
setEnable={v => {
|
|
@@ -275,7 +368,7 @@ const MixDynamicMoodEditorPage = () => {
|
|
|
275
368
|
<Image
|
|
276
369
|
style={[
|
|
277
370
|
styles.adjustButton,
|
|
278
|
-
{ tintColor: state.mainBucketSelected ?
|
|
371
|
+
{ tintColor: state.mainBucketSelected ? props.theme.icon.primary : props.theme.icon.normal },
|
|
279
372
|
]}
|
|
280
373
|
source={res.ic_paint_bucket}
|
|
281
374
|
/>
|
|
@@ -288,7 +381,7 @@ const MixDynamicMoodEditorPage = () => {
|
|
|
288
381
|
<Image
|
|
289
382
|
style={[
|
|
290
383
|
styles.adjustButton,
|
|
291
|
-
{ tintColor: state.mainBucketSelected ?
|
|
384
|
+
{ tintColor: state.mainBucketSelected ? props.theme.icon.normal : props.theme.icon.primary },
|
|
292
385
|
]}
|
|
293
386
|
source={res.ic_colorize}
|
|
294
387
|
/>
|
|
@@ -324,7 +417,7 @@ const MixDynamicMoodEditorPage = () => {
|
|
|
324
417
|
style={[
|
|
325
418
|
styles.nodeDeleteIcon,
|
|
326
419
|
{
|
|
327
|
-
tintColor: state.mood.mainLamp.nodes.length < 3 ?
|
|
420
|
+
tintColor: state.mood.mainLamp.nodes.length < 3 ? props.theme.icon.disable : props.theme.icon.normal,
|
|
328
421
|
},
|
|
329
422
|
]}
|
|
330
423
|
source={res.ic_mood_del}
|
|
@@ -356,7 +449,7 @@ const MixDynamicMoodEditorPage = () => {
|
|
|
356
449
|
style={{
|
|
357
450
|
width: cx(18),
|
|
358
451
|
height: cx(18),
|
|
359
|
-
tintColor:
|
|
452
|
+
tintColor: props.theme.addNode.fontColor,
|
|
360
453
|
}}
|
|
361
454
|
source={{ uri: res.add }}
|
|
362
455
|
/>
|
|
@@ -400,7 +493,7 @@ const MixDynamicMoodEditorPage = () => {
|
|
|
400
493
|
<Card style={styles.adjustCard}>
|
|
401
494
|
<LdvSwitch
|
|
402
495
|
title={I18n.getLang('light_sources_tile_sec_lighting_headline')}
|
|
403
|
-
color={
|
|
496
|
+
color={props.theme.card.background}
|
|
404
497
|
colorAlpha={1}
|
|
405
498
|
enable={!!state.mood.secondaryLamp.enable}
|
|
406
499
|
setEnable={v => {
|
|
@@ -540,7 +633,7 @@ const MixDynamicMoodEditorPage = () => {
|
|
|
540
633
|
<Image
|
|
541
634
|
style={[
|
|
542
635
|
styles.adjustButton,
|
|
543
|
-
{ tintColor: state.secondaryBucketSelected ?
|
|
636
|
+
{ tintColor: state.secondaryBucketSelected ? props.theme.icon.primary : props.theme.icon.normal },
|
|
544
637
|
]}
|
|
545
638
|
source={res.ic_paint_bucket}
|
|
546
639
|
/>
|
|
@@ -553,7 +646,7 @@ const MixDynamicMoodEditorPage = () => {
|
|
|
553
646
|
<Image
|
|
554
647
|
style={[
|
|
555
648
|
styles.adjustButton,
|
|
556
|
-
{ tintColor: state.secondaryBucketSelected ?
|
|
649
|
+
{ tintColor: state.secondaryBucketSelected ? props.theme.icon.normal : props.theme.icon.primary },
|
|
557
650
|
]}
|
|
558
651
|
source={res.ic_colorize}
|
|
559
652
|
/>
|
|
@@ -589,7 +682,7 @@ const MixDynamicMoodEditorPage = () => {
|
|
|
589
682
|
styles.nodeDeleteIcon,
|
|
590
683
|
{
|
|
591
684
|
tintColor:
|
|
592
|
-
state.mood.secondaryLamp.nodes.length < 3 ?
|
|
685
|
+
state.mood.secondaryLamp.nodes.length < 3 ? props.theme.icon.disable : props.theme.icon.normal,
|
|
593
686
|
},
|
|
594
687
|
]}
|
|
595
688
|
source={res.ic_mood_del}
|
|
@@ -621,7 +714,7 @@ const MixDynamicMoodEditorPage = () => {
|
|
|
621
714
|
style={{
|
|
622
715
|
width: cx(18),
|
|
623
716
|
height: cx(18),
|
|
624
|
-
tintColor:
|
|
717
|
+
tintColor: props.theme.addNode.fontColor,
|
|
625
718
|
}}
|
|
626
719
|
source={{ uri: res.add }}
|
|
627
720
|
/>
|
|
@@ -701,98 +794,8 @@ const MixDynamicMoodEditorPage = () => {
|
|
|
701
794
|
</Page>
|
|
702
795
|
);
|
|
703
796
|
};
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
flex: 1,
|
|
707
|
-
flexDirection: 'column',
|
|
708
|
-
},
|
|
709
|
-
name: {
|
|
710
|
-
marginHorizontal: cx(24),
|
|
711
|
-
},
|
|
712
|
-
adjustCard: {
|
|
713
|
-
marginVertical: cx(12),
|
|
714
|
-
marginHorizontal: cx(24),
|
|
715
|
-
},
|
|
716
|
-
fanAdjustCard: {
|
|
717
|
-
marginHorizontal: cx(24),
|
|
718
|
-
},
|
|
719
|
-
lightLine: {
|
|
720
|
-
flexDirection: 'row',
|
|
721
|
-
marginHorizontal: cx(16),
|
|
722
|
-
},
|
|
723
|
-
light: {
|
|
724
|
-
color: '#000',
|
|
725
|
-
fontSize: cx(18),
|
|
726
|
-
fontFamily: 'helvetica_neue_lt_std_bd',
|
|
727
|
-
},
|
|
728
|
-
transitionMode: {
|
|
729
|
-
marginHorizontal: cx(16),
|
|
730
|
-
},
|
|
731
|
-
preview: {
|
|
732
|
-
width: cx(20),
|
|
733
|
-
height: cx(20),
|
|
734
|
-
marginStart: cx(12),
|
|
735
|
-
borderRadius: cx(4),
|
|
736
|
-
},
|
|
737
|
-
nodesAdjust: {
|
|
738
|
-
flexDirection: 'row',
|
|
739
|
-
alignItems: 'center',
|
|
740
|
-
},
|
|
741
|
-
adjustButtons: {
|
|
742
|
-
width: cx(44),
|
|
743
|
-
marginStart: cx(16),
|
|
744
|
-
},
|
|
745
|
-
adjustButton: {
|
|
746
|
-
width: cx(44),
|
|
747
|
-
height: cx(44),
|
|
748
|
-
},
|
|
749
|
-
nodeList: {
|
|
750
|
-
flex: 1,
|
|
751
|
-
marginHorizontal: cx(16),
|
|
752
|
-
},
|
|
753
|
-
nodeItem: {
|
|
754
|
-
flexDirection: 'row',
|
|
755
|
-
alignItems: 'center',
|
|
756
|
-
},
|
|
757
|
-
nodeBlock: {
|
|
758
|
-
flex: 1,
|
|
759
|
-
height: cx(40),
|
|
760
|
-
borderRadius: cx(8),
|
|
761
|
-
},
|
|
762
|
-
nodeDeleteBtn: {
|
|
763
|
-
width: cx(24),
|
|
764
|
-
height: cx(30),
|
|
765
|
-
justifyContent: 'center',
|
|
766
|
-
alignItems: 'center',
|
|
767
|
-
},
|
|
768
|
-
nodeDeleteIcon: {
|
|
769
|
-
width: cx(16),
|
|
770
|
-
height: cx(16),
|
|
771
|
-
},
|
|
772
|
-
nodeAddBtn: {
|
|
773
|
-
height: cx(40),
|
|
774
|
-
justifyContent: 'center',
|
|
775
|
-
alignItems: 'center',
|
|
776
|
-
marginEnd: cx(26),
|
|
777
|
-
borderRadius: cx(8),
|
|
778
|
-
borderWidth: cx(1),
|
|
779
|
-
borderStyle: 'dashed',
|
|
780
|
-
borderColor: '#666',
|
|
781
|
-
backgroundColor: '#f6f6f6',
|
|
782
|
-
},
|
|
783
|
-
deleteBtn: {
|
|
784
|
-
width: '100%',
|
|
785
|
-
height: cx(50),
|
|
786
|
-
backgroundColor: '#666',
|
|
787
|
-
borderRadius: cx(8),
|
|
788
|
-
},
|
|
789
|
-
deleteBtnText: {
|
|
790
|
-
color: '#fff',
|
|
791
|
-
fontSize: cx(16),
|
|
792
|
-
fontFamily: 'helvetica_neue_lt_std_bd',
|
|
793
|
-
},
|
|
794
|
-
});
|
|
795
|
-
export default MixDynamicMoodEditorPage;
|
|
797
|
+
|
|
798
|
+
export default withTheme(MixDynamicMoodEditorPage)
|
|
796
799
|
export function getTransitionModeString(transitionMode: MoodNodeTransitionMode): string {
|
|
797
800
|
if (transitionMode === MoodNodeTransitionMode.Jump) {
|
|
798
801
|
return Strings.getLang('other_lights_modes_jump_text');
|