@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 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
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/base",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.3.6",
7
+ "version": "1.3.8",
8
8
  "scripts": {
9
9
  "prepublishOnly": "python update-localazy.py"
10
10
  },
@@ -2,14 +2,14 @@ import {Utils} from "tuya-panel-kit";
2
2
 
3
3
  const { convertX: cx } = Utils.RatioUtils
4
4
 
5
- export default {
5
+ const darkTheme = {
6
6
  type: 'dark',
7
7
  global: {
8
- brand: '#fff',
9
- secondBrand: '#fff',
8
+ brand: '#ffffff',
9
+ secondBrand: '#ffffff',
10
10
  thirdBrand: '#FFE0D4',
11
11
  background: '#121212',
12
- fontColor: '#fff',
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: '#666',
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: '#fff'
28
+ divider: '#ffffff'
29
29
  },
30
30
  button: {
31
- primary: '#f60',
32
- delete: '#f60',
33
- cancel: '#f60',
31
+ primary: '#ff6600',
32
+ delete: '#ff6600',
33
+ cancel: '#ff6600',
34
34
  disabled: '#FFE0D4',
35
- fontColor: '#fff'
35
+ fontColor: '#ffffff'
36
36
  },
37
37
  textInput: {
38
38
  background: '#737373',
39
- fontColor: '#fff',
40
- line: '#fff'
39
+ fontColor: '#ffffff',
40
+ line: '#ffffff'
41
41
  },
42
42
  icon: {
43
- primary: '#f60', /* 明亮的橙色,保持足够的突出 */
43
+ primary: '#ff6600', /* 明亮的橙色,保持足够的突出 */
44
44
  normal: '#a6a6a6', /* 中性灰,适合在深色背景上 */
45
45
  disable: '#555555', /* 更深的灰色,表示禁用状态 */
46
46
  },
47
47
  tag: {
48
48
  background: '#737373',
49
- fontColor: '#fff'
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: '#fff',
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: '#f60',
94
+ tintColor: '#ff6600',
94
95
  titleFontSize: 14, // 头部栏标题大小
95
- titleFontColor: "#fff", // 头部栏标题颜色
96
+ titleFontColor: "#ffffff", // 头部栏标题颜色
96
97
  cancelFontSize: 16, // 底部栏取消字体大小
97
98
  cancelFontColor: "#cccccc", // 底部栏取消字体颜色
98
99
  confirmFontSize: 16, // 底部栏确认字体大小
99
- confirmFontColor: "#f60", // 底部栏确认字体颜色
100
+ confirmFontColor: "#ff6600", // 底部栏确认字体颜色
100
101
  list: {
101
- cellFontColor: '#fff',
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
- export default {
5
+ const lightTheme = {
6
6
  type: 'light',
7
7
  global: {
8
- brand: '#f60',
8
+ brand: '#ff6600',
9
9
  secondBrand: '#ff8555',
10
10
  thirdBrand: '#FFE0D4',
11
- background: '#fff',
12
- fontColor: '#000',
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: '#fff',
21
+ background: '#ffffff',
22
22
  border: '#f6f6f6',
23
- fontColor: '#000',
24
- shadowColor: '#000'
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: '#f60',
32
- delete: '#666',
33
- cancel: '#666',
31
+ primary: '#ff6600',
32
+ delete: '#666666',
33
+ cancel: '#666666',
34
34
  disabled: '#FFE0D4',
35
- fontColor: '#fff'
35
+ fontColor: '#ffffff'
36
36
  },
37
37
  textInput: {
38
38
  background: '#F6F6F6',
39
- fontColor: '#000',
39
+ fontColor: '#000000',
40
40
  line: '#cbcbcb'
41
41
  },
42
42
  icon: {
43
- primary: '#f60',
44
- normal: '#666',
45
- disable: '#ccc',
43
+ primary: '#ff6600',
44
+ normal: '#666666',
45
+ disable: '#cccccc',
46
46
  },
47
47
  tag: {
48
48
  background: '#E6E7E8',
49
- fontColor: '#000'
49
+ fontColor: '#000000'
50
50
  },
51
51
  segment: {
52
52
  background: '#eeeeef',
53
- active: '#fff',
54
- fontColor: '#000',
53
+ active: '#ffffff',
54
+ fontColor: '#000000',
55
55
  },
56
56
  addNode: {
57
57
  background: '#f6f6f6',
58
- border: '#666',
59
- fontColor: '#000',
58
+ border: '#666666',
59
+ fontColor: '#000000',
60
60
  },
61
61
  dialog: {
62
62
  width: cx(315), // 弹窗容器宽度
63
- bg: "#fff", // 弹窗背景色
63
+ bg: "#ffffff", // 弹窗背景色
64
64
  radius: cx(8), // 弹窗容器圆角
65
65
  cellHeight: 56, // 列表高度(头部、底部)
66
66
  lineColor: "#e5e5e5", // 分隔线颜色
67
67
  titleFontSize: 18, // 标题字体大小
68
- titleFontColor: "#333", // 头部栏标题颜色
68
+ titleFontColor: "#333333", // 头部栏标题颜色
69
69
  subTitleFontSize: 16, // 副标题字体大小
70
- subTitleFontColor: "#999", // 头部栏副标题颜色
70
+ subTitleFontColor: "#999999", // 头部栏副标题颜色
71
71
  cancelFontSize: 16, // 底部栏取消字体大小
72
- cancelFontColor: "#666", // 底部栏取消字体颜色
72
+ cancelFontColor: "#666666", // 底部栏取消字体颜色
73
73
  confirmFontSize: 16, // 底部栏确认字体大小
74
- confirmFontColor: "#f60", // 底部栏确认字体颜色
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: "#2a2a2a", // 列表底色
87
+ cellBg: "#ffffff", // 列表底色
88
88
  titleRadius: cx(8), // 头部圆角
89
89
  footerRadius: 0, // 底部圆角
90
- titleBg: "#fff",
91
- bottomBg: "#fff", // 底部栏底色
90
+ titleBg: "#ffffff",
91
+ bottomBg: "#ffffff", // 底部栏底色
92
+ cellFontColor: '#333333',
92
93
  lineColor: "#e5e5e5", // 分隔线颜色
93
- tintColor: '#f60',
94
+ tintColor: '#ff6600',
94
95
  titleFontSize: 14, // 头部栏标题大小
95
- titleFontColor: "#333", // 头部栏标题颜色
96
+ titleFontColor: "#333333", // 头部栏标题颜色
96
97
  cancelFontSize: 16, // 底部栏取消字体大小
97
- cancelFontColor: "#666", // 底部栏取消字体颜色
98
+ cancelFontColor: "#666666", // 底部栏取消字体颜色
98
99
  confirmFontSize: 16, // 底部栏确认字体大小
99
- confirmFontColor: "#f60", // 底部栏确认字体颜色
100
+ confirmFontColor: "#ff6600", // 底部栏确认字体颜色
100
101
  list: {
101
- cellFontColor: '#333',
102
+ cellFontColor: '#333333',
102
103
  }
103
104
  },
104
- }
105
+ } as const
106
+
107
+ export default lightTheme
@@ -0,0 +1,5 @@
1
+ import darkTheme from "./dark-theme";
2
+ import lightTheme from "./light-theme";
3
+
4
+ type ThemeType = (typeof darkTheme) | (typeof lightTheme)
5
+ export default ThemeType