Skip to content

Commit dc4ce93

Browse files
committed
feat(refactor/theme): delete theme/base.less, change variable.less review
1 parent a839fb4 commit dc4ce93

File tree

10 files changed

+6
-66
lines changed

10 files changed

+6
-66
lines changed

packages/settings/styles/src/components/background/ImageSetting.vue

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -268,33 +268,6 @@ onMounted(() => {
268268
}
269269
}
270270
}
271-
.text-wrap {
272-
display: flex;
273-
flex-direction: column;
274-
font-size: 12px;
275-
color: var(--te-common-text-secondary);
276-
margin-left: 8px;
277-
white-space: nowrap;
278-
overflow: hidden;
279-
text-overflow: ellipsis;
280-
& > span {
281-
display: inline-block;
282-
white-space: nowrap;
283-
overflow: hidden;
284-
text-overflow: ellipsis;
285-
&:first-child {
286-
margin-bottom: 4px;
287-
}
288-
&:last-child {
289-
display: flex;
290-
align-items: center;
291-
margin-top: 2px;
292-
}
293-
}
294-
.size {
295-
color: var(--te-common-text-secondary);
296-
}
297-
}
298271
.choose-image {
299272
border-color: var(--te-common-border-default);
300273
outline: 0px;

packages/settings/styles/src/components/background/RadialGradient.vue

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -130,33 +130,6 @@ onMounted(() => {
130130
background-repeat: no-repeat;
131131
background-position: 50% 50%;
132132
}
133-
.text-wrap {
134-
display: flex;
135-
flex-direction: column;
136-
font-size: 12px;
137-
color: var(--te-common-text-secondary);
138-
margin-left: 8px;
139-
white-space: nowrap;
140-
overflow: hidden;
141-
text-overflow: ellipsis;
142-
& > span {
143-
display: inline-block;
144-
white-space: nowrap;
145-
overflow: hidden;
146-
text-overflow: ellipsis;
147-
&:first-child {
148-
margin-bottom: 4px;
149-
}
150-
&:last-child {
151-
display: flex;
152-
align-items: center;
153-
margin-top: 2px;
154-
}
155-
}
156-
.size {
157-
color: var(--ti-lowcode-common-third-text-color);
158-
}
159-
}
160133
.choose-image {
161134
border-color: rgb(54, 54, 54);
162135
outline: 0px;

packages/theme/dark/materials.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// 区块分组下拉选项下边框颜色
99
--ti-lowcode-materials-block-group-item-border-color: var(--te-common-border-checked); // 暗色和亮色不同,需注意
1010
// 添加区块筛选模块字体颜色
11-
--ti-lowcode-materials-block-filter-text-color: var(--ti-lowcode-common-secondary-text-color);
11+
--ti-lowcode-materials-block-filter-text-color: var(--te-common-text-primary);
1212
// 添加区块穿梭框面板背景颜色
1313
--ti-lowcode-materials-block-transfer-bg-color: var(--te-common-bg-default);
1414
// 添加区块穿梭框面板头部字体颜色

packages/theme/dark/variable.less

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
--ti-lowcode-common-transparent-color: transparent;
88
--ti-lowcode-common-secondary-text-color: #adb0b8;
99
--ti-lowcode-common-third-text-color: #ababab;
10-
--ti-lowcode-common-empty-text-color: var(--te-common-text-weaken);
11-
--ti-lowcode-common-danger-color: #c7000b;
12-
--te-common-color-error: var(--te-common-color-error);
1310

1411
// tiny vue 的 css 变量,覆盖掉就好
1512

@@ -50,7 +47,9 @@
5047
--ti-lowcode-plugin-panel-title-color: var(--te-common-text-primary); // 插件面板标题色
5148
--ti-lowcode-plugin-panel-bg: var(--te-common-bg-default); // 插件面板背景色
5249
--ti-lowcode-plugin-panel-border-right-color: var(--te-common-border-divider); // 插件面板右侧边框色
53-
--ti-lowcode-plugin-panel-header-border-bottom-color: #262626; // 插件面板头部区域底部边框线颜色
50+
--ti-lowcode-plugin-panel-header-border-bottom-color: var(
51+
--te-common-border-divider
52+
); // 插件面板头部区域底部边框线颜色
5453
--ti-lowcode-plugin-panel-title-font-weight: 400; // 插件面板标题加粗效果
5554

5655
// 插件设置面板

packages/theme/light/block.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
--ti-lowcode-component-block-version-list-panel-title-color: var(--te-common-text-primary);
1010
--ti-lowcode-component-block-version-list-time-color: var(--te-common-text-primary);
1111
--ti-lowcode-component-block-version-list-desc-color: var(--te-common-text-weaken);
12-
--ti-lowcode-component-block-version-list-time-color: var(--te-common-text-primary);
1312
--ti-lowcode-component-block-setting-popover-bg: var(--te-common-bg-default);
1413
--ti-lowcode-component-block-setting-item-text-color: var(--te-common-text-secondary);
1514
// 区块管理 - 添加分类

packages/theme/light/events.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
--ti-lowcode-events-bind-action-item-border-color: var(--te-common-border-default);
1414
--ti-lowcode-events-event-bind-color: var(--te-common-text-checked);
1515
--ti-lowcode-events-bind-action-item-color: var(--te-common-text-primary);
16-
--ti-lowcode-events-bind-action-item-hover-bg-color: var(---te-common-bg-container);
16+
--ti-lowcode-events-bind-action-item-hover-bg-color: var(--te-common-bg-container);
1717
--ti-lowcode-events-bind-action-item-linked-bg-color: var(--te-common-color-success);
1818
--ti-lowcode-events-bind-action-item-linked-color: var(--te-common-text-dark-inverse);
1919
--ti-lowcode-events-empty-action-bg-color: var(--te-common-bg-container);

packages/theme/light/i18n.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@
77
--ti-lowcode-i18n-border-color: var(--te-common-border-default);
88
// 国际化按钮字体颜色
99
--ti-lowcode-i18n-button-color: var(--te-common-text-primary);
10-
// 国际化按钮图标颜色
11-
--ti-lowcode-i18n-icon-color: var(--te-common-text-weaken);
1210
}

packages/theme/light/pageManage.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
--ti-lowcode-page-manage-tip-text-color: var(--te-common-text-weaken);
44
--ti-lowcode-page-manage-tree-text-background-color: var(--te-common-bg-default);
55
--ti-lowcode-page-manage-tree-node-background-color: var(--te-common-bg-default);
6-
--ti-lowcode-page-manage-tree-node-label-color: var(--te-common-text-primary);
76
--ti-lowcode-page-manage-text-color: var(--te-common-text-secondary);
87
--ti-lowcode-page-manage-input-head-text-color: var(--te-common-text-primary);
98
}

packages/theme/light/toolbar.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
--ti-lowcode-toolbar-border-bottom-color: var(--te-common-border-divider);
44
--ti-lowcode-toolbar-title-color: var(--te-common-text-primary);
55
--ti-lowcode-toolbar-hover-color: var(--te-common-bg-container);
6-
--ti-lowcode-toolbar-view-active-bg: var(--te-common-bg-prompt); // 相当于 规范中定义的 #191919 透明度5%
6+
--ti-lowcode-toolbar-view-active-bg: var(--te-common-bg-prompt);
77
--ti-lowcode-toolbar-left-icon-bg-hover: var(--te-common-icon-primary);
88
--ti-lowcode-toolbar-active-color: var(--te-common-text-secondary);
99
--ti-lowcode-toolbar-user-img-border-color: var(--te-common-border-divider);

packages/theme/light/variable.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// ------ 主要的公共主题色,前缀为 --ti-lowcode-common -------
77
--ti-lowcode-common-secondary-text-color: #c2c2c2;
88
--ti-lowcode-common-third-text-color: #ababab;
9-
--ti-lowcode-common-empty-text-color: var(--te-common-text-weaken);
109

1110
// ------ 公共组件的主题色,前缀为 --ti-lowcode-component-组件名 -------
1211

0 commit comments

Comments
 (0)