Skip to content

Commit 3c8bc96

Browse files
author
FalkWolsky
committedOct 25, 2024·
Small branding changes in Seletable
1 parent 23ba36e commit 3c8bc96

File tree

4 files changed

+25
-21
lines changed

4 files changed

+25
-21
lines changed
 

‎client/packages/lowcoder-design/src/components/colorSelect/colorUtils.ts

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,24 @@ import { generate } from "@ant-design/colors/es";
55
extend([namesPlugin]);
66

77
export const gradientColors = [
8-
"linear-gradient(90deg, #1CB5E0 0%, #000851 100%)",
9-
"linear-gradient(90deg, #00C9FF 0%, #92FE9D 100%)",
10-
"linear-gradient(90deg, #FC466B 0%, #3F5EFB 100%)",
11-
"linear-gradient(90deg, #3F2B96 0%, #A8C0FF 100%)",
12-
"linear-gradient(90deg, #FDBB2D 0%, #22C1C3 100%)",
13-
"linear-gradient(90deg, #FDBB2D 0%, #3A1C71 100%)",
8+
"linear-gradient(0deg, #fdfbfb 0%, #ebedee 100%)",
9+
"linear-gradient(45deg, #cfd9df 0%, #e2ebf0 100%)",
1410
"linear-gradient(90deg, #e3ffe7 0%, #d9e7ff 100%)",
15-
"linear-gradient(90deg, #4b6cb7 0%, #182848 100%)",
16-
"linear-gradient(90deg, #9ebd13 0%, #008552 100%)",
17-
"linear-gradient(90deg, #0700b8 0%, #00ff88 100%)",
18-
"linear-gradient(90deg, #d53369 0%, #daae51 100%)",
19-
"linear-gradient(90deg, #efd5ff 0%, #515ada 100%)",
20-
"linear-gradient(90deg, #00d2ff 0%, #3a47d5 100%)",
21-
"linear-gradient(90deg, #f8ff00 0%, #3ad59f 100%)",
22-
"linear-gradient(90deg, #fcff9e 0%, #c67700 100%)",
11+
12+
"linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)",
13+
"linear-gradient(0deg, #fbc2eb 0%, #a6c1ee 100%)",
14+
"linear-gradient(45deg, #efd5ff 0%, #515ada 100%)",
15+
"linear-gradient(90deg, #4b6cb7 0%, #72afd3 100%)",
16+
"linear-gradient(135deg, #72afd3 0%, #96e6a1 100%)",
17+
18+
"linear-gradient(90deg, #fa709a 0%, #fee140 100%)",
19+
"linear-gradient(45deg, #d53369 0%, #daae51 100%)",
20+
"linear-gradient(0deg, #f43b47 0%, #453a94 100%)",
21+
22+
"linear-gradient(135deg, #00d2ff 0%, #3a47d5 100%)",
23+
"linear-gradient(0deg, #f8ff00 0%, #3ad59f 100%)",
24+
"linear-gradient(45deg, #fcff9e 0%, #c67700 100%)",
25+
"linear-gradient(90deg, #fad0c4 0%, #ffd1ff 100%)",
2326
];
2427

2528
// Color Palette

‎client/packages/lowcoder/src/constants/style.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// brand color
2-
export const PrimaryColor = "#3377ff";
2+
export const PrimaryColor = "#b85fff";
33

44
// module
55
export const ModulePrimaryColor = "#F27A24";
@@ -21,10 +21,10 @@ export const DarkActiveTextColor = "#222222";
2121
export const ActiveTextColor = "#315efb";
2222

2323
// icon
24-
export const NormalMenuIconColor = "#8B8FA3";
24+
export const NormalMenuIconColor = "#b480de";
2525

2626
// Ui Comp
27-
export const UiCompBorderRadius = "2px";
27+
export const UiCompBorderRadius = "4px";
2828

2929
// Tab
3030
export const TabActiveColor = "#222222";

‎client/packages/lowcoder/src/layout/compSelectionWrapper.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const NameDiv = styled.div<{
3535
}
3636
return "#B8B9BF";
3737
}};
38-
border-radius: ${(props) => (props.$position === "top" ? "2px 2px 0 0" : "0 0 2px 2px")};
38+
border-radius: ${(props) => (props.$position === "top" ? "4px 4px 0 0" : "0 0 4px 4px")};
3939
font-weight: 500;
4040
color: #ffffff;
4141
position: absolute;
@@ -97,6 +97,7 @@ function getLineStyle(
9797
}
9898

9999
// padding: ${props => props.hover || props.showDashline ? 3 : 4}px;
100+
100101
const SelectableDiv = styled.div<{
101102
$hover?: boolean;
102103
$showDashLine: boolean;
@@ -174,7 +175,7 @@ const dragCss = (props: DragHandleProps, handle: ResizeHandleAxis) => css`
174175
height: 8px;
175176
width: 8px;
176177
border: 1px solid ${props.$compType === "module" ? ModulePrimaryColor : PrimaryColor};
177-
border-radius: 2px;
178+
border-radius: 4px;
178179
background-color: #f5f5f6;
179180
z-index: 11;
180181
pointer-events: none;

‎client/packages/lowcoder/vite.config.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ export const viteConfig: UserConfig = {
102102
preprocessorOptions: {
103103
less: {
104104
modifyVars: {
105-
"@primary-color": "#3377FF",
105+
"@primary-color": "#b480de",
106106
"@link-color": "#3377FF",
107-
"@border-color-base": "#D7D9E0",
107+
"@border-color-base": "#b480de",
108108
"@border-radius-base": "4px",
109109
},
110110
javascriptEnabled: true,

0 commit comments

Comments
 (0)
Please sign in to comment.