@ledvance/base 1.3.5 → 1.3.7
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 +19 -1
- package/package.json +1 -1
- package/src/components/DrawToolView.tsx +136 -132
- package/src/components/FanAdjustView.tsx +22 -20
- package/src/components/Popup.tsx +7 -10
- package/src/components/Segmented.tsx +36 -35
- package/src/components/StripAdjustView.tsx +68 -66
- package/src/components/StripLightView.tsx +6 -2
- package/src/components/Summary.tsx +64 -61
- package/src/components/TextFieldStyleButton.tsx +1 -0
- package/src/components/UATabTitle.tsx +14 -9
- package/src/components/UATabs.tsx +32 -29
- package/src/components/ldvPickerView.tsx +2 -1
- package/src/config/dark-theme.ts +40 -16
- package/src/config/light-theme.ts +50 -26
- package/src/config/themeType.ts +5 -0
- package/src/i18n/strings.ts +19358 -18836
- package/translateKey.txt +18 -0
|
@@ -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), // 输入框圆角
|
|
@@ -79,4 +79,28 @@ export default {
|
|
|
79
79
|
placeholder: "#d6d6de", // 占位符字体颜色
|
|
80
80
|
},
|
|
81
81
|
},
|
|
82
|
-
|
|
82
|
+
/**
|
|
83
|
+
* Popup 弹出层变量
|
|
84
|
+
*/
|
|
85
|
+
popup: {
|
|
86
|
+
cellHeight: 48, // 列表项的高度
|
|
87
|
+
cellBg: "#2a2a2a", // 列表底色
|
|
88
|
+
titleRadius: cx(8), // 头部圆角
|
|
89
|
+
footerRadius: 0, // 底部圆角
|
|
90
|
+
titleBg: "#ffffff",
|
|
91
|
+
bottomBg: "#ffffff", // 底部栏底色
|
|
92
|
+
lineColor: "#e5e5e5", // 分隔线颜色
|
|
93
|
+
tintColor: '#ff6600',
|
|
94
|
+
titleFontSize: 14, // 头部栏标题大小
|
|
95
|
+
titleFontColor: "#333333", // 头部栏标题颜色
|
|
96
|
+
cancelFontSize: 16, // 底部栏取消字体大小
|
|
97
|
+
cancelFontColor: "#666666", // 底部栏取消字体颜色
|
|
98
|
+
confirmFontSize: 16, // 底部栏确认字体大小
|
|
99
|
+
confirmFontColor: "#ff6600", // 底部栏确认字体颜色
|
|
100
|
+
list: {
|
|
101
|
+
cellFontColor: '#333333',
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
} as const
|
|
105
|
+
|
|
106
|
+
export default lightTheme
|