@ledvance/base 1.3.6 → 1.3.8
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/localazy.json +21 -1
- package/package.json +1 -1
- package/src/config/dark-theme.ts +23 -20
- package/src/config/light-theme.ts +37 -34
- package/src/config/themeType.ts +5 -0
- package/src/i18n/strings.ts +580 -0
- package/src/res/arrow_temp_down.png +0 -0
- package/src/res/arrow_temp_down@2x.png +0 -0
- package/src/res/arrow_temp_down@3x.png +0 -0
- package/src/res/arrow_temp_up.png +0 -0
- package/src/res/arrow_temp_up@2x.png +0 -0
- package/src/res/arrow_temp_up@3x.png +0 -0
- package/src/res/index.ts +3 -1
- package/translateKey.txt +20 -0
package/localazy.json
CHANGED
|
@@ -871,7 +871,27 @@
|
|
|
871
871
|
"MATCH:CO_alertfree",
|
|
872
872
|
"MATCH:waterleakage_alertfree",
|
|
873
873
|
"MATCH:mute_smokealarm",
|
|
874
|
-
"MATCH:group_energytotal"
|
|
874
|
+
"MATCH:group_energytotal",
|
|
875
|
+
"MATCH:thermostat_title",
|
|
876
|
+
"MATCH:thermostat_tempcurrent",
|
|
877
|
+
"MATCH:thermostat_automode",
|
|
878
|
+
"MATCH:thermostat_powermode",
|
|
879
|
+
"MATCH:thermostat_vacationmode",
|
|
880
|
+
"MATCH:thermostat_triggertimes",
|
|
881
|
+
"MATCH:thermostat_settemp",
|
|
882
|
+
"MATCH:thermostat_startdate",
|
|
883
|
+
"MATCH:thermostat_enddate",
|
|
884
|
+
"MATCH:thermostat_tempsetting",
|
|
885
|
+
"MATCH:thermostat_descriptionvacation",
|
|
886
|
+
"MATCH:thermostat_descriptionrapid",
|
|
887
|
+
"MATCH:thermostat_openwindow",
|
|
888
|
+
"MATCH:thermostat_drifttemp",
|
|
889
|
+
"MATCH:thermostat_difference",
|
|
890
|
+
"MATCH:thermostat_refresh",
|
|
891
|
+
"MATCH:thermostat_quicktemp",
|
|
892
|
+
"MATCH:thermostat_energysaving",
|
|
893
|
+
"MATCH:thermostat_editauto",
|
|
894
|
+
"MATCH:add_new_trigger_time_icon_selection_headline_text"
|
|
875
895
|
],
|
|
876
896
|
"replacements": {
|
|
877
897
|
"REGEX:% %1\\$s.*?\\)%": "{0}",
|
package/package.json
CHANGED
package/src/config/dark-theme.ts
CHANGED
|
@@ -2,14 +2,14 @@ import {Utils} from "tuya-panel-kit";
|
|
|
2
2
|
|
|
3
3
|
const { convertX: cx } = Utils.RatioUtils
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const darkTheme = {
|
|
6
6
|
type: 'dark',
|
|
7
7
|
global: {
|
|
8
|
-
brand: '#
|
|
9
|
-
secondBrand: '#
|
|
8
|
+
brand: '#ffffff',
|
|
9
|
+
secondBrand: '#ffffff',
|
|
10
10
|
thirdBrand: '#FFE0D4',
|
|
11
11
|
background: '#121212',
|
|
12
|
-
fontColor: '#
|
|
12
|
+
fontColor: '#ffffff',
|
|
13
13
|
secondFontColor: '#cccccc',
|
|
14
14
|
disabledFontColor: '#555555',
|
|
15
15
|
success: '#00C931',
|
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
error: '#ff0015',
|
|
18
18
|
},
|
|
19
19
|
card: {
|
|
20
|
-
head: '#
|
|
20
|
+
head: '#666666',
|
|
21
21
|
background: '#2a2a2a',
|
|
22
22
|
border: '#f6f6f6',
|
|
23
23
|
fontColor: '#ffffff',
|
|
@@ -25,28 +25,28 @@ export default {
|
|
|
25
25
|
},
|
|
26
26
|
container: {
|
|
27
27
|
background: '#444444',
|
|
28
|
-
divider: '#
|
|
28
|
+
divider: '#ffffff'
|
|
29
29
|
},
|
|
30
30
|
button: {
|
|
31
|
-
primary: '#
|
|
32
|
-
delete: '#
|
|
33
|
-
cancel: '#
|
|
31
|
+
primary: '#ff6600',
|
|
32
|
+
delete: '#ff6600',
|
|
33
|
+
cancel: '#ff6600',
|
|
34
34
|
disabled: '#FFE0D4',
|
|
35
|
-
fontColor: '#
|
|
35
|
+
fontColor: '#ffffff'
|
|
36
36
|
},
|
|
37
37
|
textInput: {
|
|
38
38
|
background: '#737373',
|
|
39
|
-
fontColor: '#
|
|
40
|
-
line: '#
|
|
39
|
+
fontColor: '#ffffff',
|
|
40
|
+
line: '#ffffff'
|
|
41
41
|
},
|
|
42
42
|
icon: {
|
|
43
|
-
primary: '#
|
|
43
|
+
primary: '#ff6600', /* 明亮的橙色,保持足够的突出 */
|
|
44
44
|
normal: '#a6a6a6', /* 中性灰,适合在深色背景上 */
|
|
45
45
|
disable: '#555555', /* 更深的灰色,表示禁用状态 */
|
|
46
46
|
},
|
|
47
47
|
tag: {
|
|
48
48
|
background: '#737373',
|
|
49
|
-
fontColor: '#
|
|
49
|
+
fontColor: '#ffffff'
|
|
50
50
|
},
|
|
51
51
|
segment: {
|
|
52
52
|
background: '#3a3a3c',
|
|
@@ -56,7 +56,7 @@ export default {
|
|
|
56
56
|
addNode: {
|
|
57
57
|
background: '#4a4a4a',
|
|
58
58
|
border: '#888888',
|
|
59
|
-
fontColor: '#
|
|
59
|
+
fontColor: '#ffffff',
|
|
60
60
|
},
|
|
61
61
|
dialog: {
|
|
62
62
|
width: cx(315), // 弹窗容器宽度
|
|
@@ -89,16 +89,19 @@ export default {
|
|
|
89
89
|
footerRadius: 0, // 底部圆角
|
|
90
90
|
titleBg: "#2a2a2a",
|
|
91
91
|
bottomBg: "#2a2a2a", // 底部栏底色
|
|
92
|
+
cellFontColor: '#ffffff',
|
|
92
93
|
lineColor: "#e5e5e5", // 分隔线颜色
|
|
93
|
-
tintColor: '#
|
|
94
|
+
tintColor: '#ff6600',
|
|
94
95
|
titleFontSize: 14, // 头部栏标题大小
|
|
95
|
-
titleFontColor: "#
|
|
96
|
+
titleFontColor: "#ffffff", // 头部栏标题颜色
|
|
96
97
|
cancelFontSize: 16, // 底部栏取消字体大小
|
|
97
98
|
cancelFontColor: "#cccccc", // 底部栏取消字体颜色
|
|
98
99
|
confirmFontSize: 16, // 底部栏确认字体大小
|
|
99
|
-
confirmFontColor: "#
|
|
100
|
+
confirmFontColor: "#ff6600", // 底部栏确认字体颜色
|
|
100
101
|
list: {
|
|
101
|
-
cellFontColor: '#
|
|
102
|
+
cellFontColor: '#ffffff',
|
|
102
103
|
}
|
|
103
104
|
},
|
|
104
|
-
}
|
|
105
|
+
} as const
|
|
106
|
+
|
|
107
|
+
export default darkTheme
|
|
@@ -2,14 +2,14 @@ import {Utils} from "tuya-panel-kit";
|
|
|
2
2
|
|
|
3
3
|
const {convertX: cx} = Utils.RatioUtils
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const lightTheme = {
|
|
6
6
|
type: 'light',
|
|
7
7
|
global: {
|
|
8
|
-
brand: '#
|
|
8
|
+
brand: '#ff6600',
|
|
9
9
|
secondBrand: '#ff8555',
|
|
10
10
|
thirdBrand: '#FFE0D4',
|
|
11
|
-
background: '#
|
|
12
|
-
fontColor: '#
|
|
11
|
+
background: '#ffffff',
|
|
12
|
+
fontColor: '#000000',
|
|
13
13
|
secondFontColor: '#666666',
|
|
14
14
|
disabledFontColor: '#CBCBCB',
|
|
15
15
|
success: '#00C931',
|
|
@@ -18,60 +18,60 @@ export default {
|
|
|
18
18
|
},
|
|
19
19
|
card: {
|
|
20
20
|
head: '#DFDEDE',
|
|
21
|
-
background: '#
|
|
21
|
+
background: '#ffffff',
|
|
22
22
|
border: '#f6f6f6',
|
|
23
|
-
fontColor: '#
|
|
24
|
-
shadowColor: '#
|
|
23
|
+
fontColor: '#000000',
|
|
24
|
+
shadowColor: '#000000'
|
|
25
25
|
},
|
|
26
26
|
container: {
|
|
27
27
|
background: '#f6f6f6',
|
|
28
28
|
divider: '#cbcbcb'
|
|
29
29
|
},
|
|
30
30
|
button: {
|
|
31
|
-
primary: '#
|
|
32
|
-
delete: '#
|
|
33
|
-
cancel: '#
|
|
31
|
+
primary: '#ff6600',
|
|
32
|
+
delete: '#666666',
|
|
33
|
+
cancel: '#666666',
|
|
34
34
|
disabled: '#FFE0D4',
|
|
35
|
-
fontColor: '#
|
|
35
|
+
fontColor: '#ffffff'
|
|
36
36
|
},
|
|
37
37
|
textInput: {
|
|
38
38
|
background: '#F6F6F6',
|
|
39
|
-
fontColor: '#
|
|
39
|
+
fontColor: '#000000',
|
|
40
40
|
line: '#cbcbcb'
|
|
41
41
|
},
|
|
42
42
|
icon: {
|
|
43
|
-
primary: '#
|
|
44
|
-
normal: '#
|
|
45
|
-
disable: '#
|
|
43
|
+
primary: '#ff6600',
|
|
44
|
+
normal: '#666666',
|
|
45
|
+
disable: '#cccccc',
|
|
46
46
|
},
|
|
47
47
|
tag: {
|
|
48
48
|
background: '#E6E7E8',
|
|
49
|
-
fontColor: '#
|
|
49
|
+
fontColor: '#000000'
|
|
50
50
|
},
|
|
51
51
|
segment: {
|
|
52
52
|
background: '#eeeeef',
|
|
53
|
-
active: '#
|
|
54
|
-
fontColor: '#
|
|
53
|
+
active: '#ffffff',
|
|
54
|
+
fontColor: '#000000',
|
|
55
55
|
},
|
|
56
56
|
addNode: {
|
|
57
57
|
background: '#f6f6f6',
|
|
58
|
-
border: '#
|
|
59
|
-
fontColor: '#
|
|
58
|
+
border: '#666666',
|
|
59
|
+
fontColor: '#000000',
|
|
60
60
|
},
|
|
61
61
|
dialog: {
|
|
62
62
|
width: cx(315), // 弹窗容器宽度
|
|
63
|
-
bg: "#
|
|
63
|
+
bg: "#ffffff", // 弹窗背景色
|
|
64
64
|
radius: cx(8), // 弹窗容器圆角
|
|
65
65
|
cellHeight: 56, // 列表高度(头部、底部)
|
|
66
66
|
lineColor: "#e5e5e5", // 分隔线颜色
|
|
67
67
|
titleFontSize: 18, // 标题字体大小
|
|
68
|
-
titleFontColor: "#
|
|
68
|
+
titleFontColor: "#333333", // 头部栏标题颜色
|
|
69
69
|
subTitleFontSize: 16, // 副标题字体大小
|
|
70
|
-
subTitleFontColor: "#
|
|
70
|
+
subTitleFontColor: "#999999", // 头部栏副标题颜色
|
|
71
71
|
cancelFontSize: 16, // 底部栏取消字体大小
|
|
72
|
-
cancelFontColor: "#
|
|
72
|
+
cancelFontColor: "#666666", // 底部栏取消字体颜色
|
|
73
73
|
confirmFontSize: 16, // 底部栏确认字体大小
|
|
74
|
-
confirmFontColor: "#
|
|
74
|
+
confirmFontColor: "#ff6600", // 底部栏确认字体颜色
|
|
75
75
|
prompt: {
|
|
76
76
|
bg: "#F6F6F6", // 输入框背景色
|
|
77
77
|
radius: cx(4), // 输入框圆角
|
|
@@ -84,21 +84,24 @@ export default {
|
|
|
84
84
|
*/
|
|
85
85
|
popup: {
|
|
86
86
|
cellHeight: 48, // 列表项的高度
|
|
87
|
-
cellBg: "#
|
|
87
|
+
cellBg: "#ffffff", // 列表底色
|
|
88
88
|
titleRadius: cx(8), // 头部圆角
|
|
89
89
|
footerRadius: 0, // 底部圆角
|
|
90
|
-
titleBg: "#
|
|
91
|
-
bottomBg: "#
|
|
90
|
+
titleBg: "#ffffff",
|
|
91
|
+
bottomBg: "#ffffff", // 底部栏底色
|
|
92
|
+
cellFontColor: '#333333',
|
|
92
93
|
lineColor: "#e5e5e5", // 分隔线颜色
|
|
93
|
-
tintColor: '#
|
|
94
|
+
tintColor: '#ff6600',
|
|
94
95
|
titleFontSize: 14, // 头部栏标题大小
|
|
95
|
-
titleFontColor: "#
|
|
96
|
+
titleFontColor: "#333333", // 头部栏标题颜色
|
|
96
97
|
cancelFontSize: 16, // 底部栏取消字体大小
|
|
97
|
-
cancelFontColor: "#
|
|
98
|
+
cancelFontColor: "#666666", // 底部栏取消字体颜色
|
|
98
99
|
confirmFontSize: 16, // 底部栏确认字体大小
|
|
99
|
-
confirmFontColor: "#
|
|
100
|
+
confirmFontColor: "#ff6600", // 底部栏确认字体颜色
|
|
100
101
|
list: {
|
|
101
|
-
cellFontColor: '#
|
|
102
|
+
cellFontColor: '#333333',
|
|
102
103
|
}
|
|
103
104
|
},
|
|
104
|
-
}
|
|
105
|
+
} as const
|
|
106
|
+
|
|
107
|
+
export default lightTheme
|