Skip to content

Commit 8bc684b

Browse files
committed
icons adjusted
1 parent dfd25d9 commit 8bc684b

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

client/packages/lowcoder/src/comps/controls/styleControl.tsx

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ import {
2727
TimerFlashIcon,
2828
Timer2Icon,
2929
RefreshLineIcon,
30+
ShadowIcon,
31+
OpacityIcon,
3032
} from 'lowcoder-design';
3133
import { useContext } from "react";
3234
import styled from "styled-components";
@@ -729,7 +731,7 @@ const AnimationIterationCountPropIcon = styled(RefreshLineIcon)`
729731
color: #888;
730732
`;
731733

732-
const OpacityPropIcon = styled(BorderWidthIcon)`
734+
const OpacityPropIcon = styled(OpacityIcon)`
733735
margin: 0 8px 0 -3px;
734736
padding: 3px;
735737
color: #888;
@@ -741,7 +743,7 @@ const BoxShadowColorPropIcon = styled(BorderWidthIcon)`
741743
color: #888;
742744
`;
743745

744-
const BoxShadowPropIcon = styled(BorderWidthIcon)`
746+
const BoxShadowPropIcon = styled(ShadowIcon)`
745747
margin: 0 8px 0 -3px;
746748
padding: 3px;
747749
color: #888;
@@ -788,7 +790,6 @@ export function styleControl<T extends readonly SingleColorConfig[]>(colorConfig
788790
name === 'radius' ||
789791
name === 'borderWidth' ||
790792
name === 'boxShadow' ||
791-
name === 'boxShadowColor' ||
792793
name === 'animationIterationCount' ||
793794
name === 'opacity' ||
794795
name === 'animation' ||
@@ -1061,18 +1062,6 @@ export function styleControl<T extends readonly SingleColorConfig[]>(colorConfig
10611062
),
10621063
placeholder: props[name],
10631064
})
1064-
: name === 'boxShadowColor'
1065-
? (
1066-
children[name] as InstanceType<
1067-
typeof StringControl
1068-
>
1069-
).propertyView({
1070-
label: config.label,
1071-
preInputNode: (
1072-
<BoxShadowColorPropIcon title="BoxShadowColor-Type" />
1073-
),
1074-
placeholder: props[name],
1075-
})
10761065
: name === 'padding' ||
10771066
name ===
10781067
'containerHeaderPadding' ||

client/packages/lowcoder/src/i18n/locales/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ export const en = {
474474
// fourth part
475475

476476
"style": {
477-
"boxShadowColor": 'Box Shadow Color',
477+
"boxShadowColor": 'Shadow Color',
478478
"boxShadow": 'Box Shadow',
479479
"opacity": 'Opacity',
480480
"animation": 'Animation',

0 commit comments

Comments
 (0)