Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export function getButtonStyle(buttonStyle: ButtonStyleType) {
font-weight: ${buttonStyle.textWeight};
font-family: ${buttonStyle.fontFamily};
font-style: ${buttonStyle.fontStyle};
text-transform:${buttonStyle.textTransform};
text-decoration:${buttonStyle.textDecoration};
background-color: ${buttonStyle.background};
border-radius: ${buttonStyle.radius};
margin: ${buttonStyle.margin};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,41 @@ import {

const StyledDropdownButton = styled(DropdownButton)`
width: 100%;

.ant-btn-group {
width: 100%;

}
`;

const LeftButtonWrapper = styled.div<{ $buttonStyle: ButtonStyleType }>`
width: calc(100%);
${(props) => `margin: ${props.$buttonStyle.margin};`}
margin-right: 0;
.ant-btn span {
${(props) => `text-decoration: ${props.$buttonStyle.textDecoration};`}
${(props) => `font-family: ${props.$buttonStyle.fontFamily};`}
}

.ant-btn {
${(props) => getButtonStyle(props.$buttonStyle)}
margin: 0 !important;
height: 100%;
&.ant-btn-default {
margin: 0 !important;
${(props) => `border-radius: ${props.$buttonStyle.radius} 0 0 ${props.$buttonStyle.radius};`}
${(props) => `text-transform: ${props.$buttonStyle.textTransform};`}
${(props) => `font-weight: ${props.$buttonStyle.textWeight};`}
}
${(props) => `background-color: ${props.$buttonStyle.background};`}
${(props) => `color: ${props.$buttonStyle.text};`}
${(props) => `padding: ${props.$buttonStyle.padding};`}
${(props) => `font-size: ${props.$buttonStyle.textSize};`}
${(props) => `font-style: ${props.$buttonStyle.fontStyle};`}

width: 100%;
}

`;

const RightButtonWrapper = styled.div<{ $buttonStyle: ButtonStyleType }>`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const Link = styled(Button) <{ $style: LinkStyleType }>`
font-weight:${props.$style.textWeight};
border: ${props.$style.borderWidth} solid ${props.$style.border};
border-radius:${props.$style.radius ? props.$style.radius:'0px'};
text-transform:${props.$style.textTransform ? props.$style.textTransform:''};
text-decoration:${props.$style.textDecoration ? props.$style.textDecoration:''} !important;
background-color: ${props.$style.background};
&:hover {
color: ${props.$style.hoverText} !important;
Expand Down
2 changes: 2 additions & 0 deletions client/packages/lowcoder/src/comps/comps/dividerComp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const StyledDivider = styled(Divider) <IProps>`
font-size: ${(props) => props.$style.textSize};
font-weight: ${(props) => props.$style.textWeight};
font-family: ${(props) => props.$style.fontFamily};
text-transform:${(props)=>props.$style.textTransform};
text-decoration:${(props)=>props.$style.textDecoration};
font-style:${(props) => props.$style.fontStyle}
}
min-width: 0;
Expand Down
6 changes: 6 additions & 0 deletions client/packages/lowcoder/src/comps/comps/navComp/navComp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ const Item = styled.div<{
$textSize: string;
$margin: string;
$padding: string;
$textTransform:string;
$textDecoration:string;
}>`
height: 30px;
line-height: 30px;
Expand All @@ -61,6 +63,8 @@ const Item = styled.div<{
font-family:${(props) => (props.$fontFamily ? props.$fontFamily : 'sans-serif')};
font-style:${(props) => (props.$fontStyle ? props.$fontStyle : 'normal')};
font-size:${(props) => (props.$textSize ? props.$textSize : '14px')};
text-transform:${(props) => (props.$textTransform ? props.$textTransform : '')};
text-decoration:${(props) => (props.$textDecoration ? props.$textDecoration : '')};
margin:${(props) => props.$margin ? props.$margin : '0px'};

&:hover {
Expand Down Expand Up @@ -161,6 +165,8 @@ const NavCompBase = new UICompBuilder(childrenMap, (props) => {
$textWeight={props.style.textWeight}
$textSize={props.style.textSize}
$padding={props.style.padding}
$textTransform={props.style.textTransform}
$textDecoration={props.style.textDecoration}
$margin={props.style.margin}
onClick={() => onEvent("click")}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,25 @@ export const getStyle = (style: CheckboxStyleType) => {
border-radius: ${style.radius};
}
}

.ant-checkbox-inner {
border-radius: ${style.radius};
background-color: ${style.uncheckedBackground};
border-color: ${style.uncheckedBorder};
border-width:${!!style.borderWidth ? style.borderWidth : '2px'};
}

&:hover .ant-checkbox-inner,
.ant-checkbox:hover .ant-checkbox-inner,
.ant-checkbox-input + ant-checkbox-inner {
background-color:${style.hoverBackground ? style.hoverBackground :'#fff'};
}

&:hover .ant-checkbox-checked .ant-checkbox-inner,
.ant-checkbox:hover .ant-checkbox-inner,
.ant-checkbox-input + ant-checkbox-inner {
background-color:${style.hoverBackground ? style.hoverBackground:'#ffff'};
}

&:hover .ant-checkbox-inner,
.ant-checkbox:hover .ant-checkbox-inner,
Expand All @@ -67,11 +79,15 @@ export const getStyle = (style: CheckboxStyleType) => {
}
}



.ant-checkbox-group-item {
font-family:${style.fontFamily};
font-size:${style.textSize};
font-weight:${style.textWeight};
font-style:${style.fontStyle};
text-transform:${style.textTransform};
text-decoration:${style.textDecoration};
}
.ant-checkbox-wrapper {
padding: ${style.padding};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const getStyle = (style: RadioStyleType) => {
font-size:${style.textSize};
font-weight:${style.textWeight};
font-style:${style.fontStyle};
text-transform:${style.textTransform};
text-decoration:${style.textDecoration};
}

.ant-radio-checked {
Expand All @@ -47,6 +49,12 @@ const getStyle = (style: RadioStyleType) => {
}
}

&:hover .ant-radio-inner,
.ant-radio:hover .ant-radio-inner,
.ant-radio-input + ant-radio-inner {
background-color:${style.hoverBackground ? style.hoverBackground:'#ffff'};
}

&:hover .ant-radio-inner,
.ant-radio:hover .ant-radio-inner,
.ant-radio-input:focus + .ant-radio-inner {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ const getStyle = (style: SegmentStyleType) => {
.ant-segmented-item-selected {
border-radius: ${style.radius};
}
&.ant-segmented, .ant-segmented-item-label {
font-family:${style.fontFamily};
font-style:${style.fontStyle};
font-size:${style.textSize};
font-weight:${style.textWeight};
text-transform:${style.textTransform};
text-decoration:${style.textDecoration};
}
`;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export const getStyle = (
}
.ant-select-selection-search-input {
font-family:${(style as SelectStyleType).fontFamily} !important;
text-transform:${(style as SelectStyleType).textTransform} !important;
text-decoration:${(style as SelectStyleType).textDecoration} !important;
font-size:${(style as SelectStyleType).textSize} !important;
font-weight:${(style as SelectStyleType).textWeight};
color:${(style as SelectStyleType).text} !important;
Expand Down Expand Up @@ -256,7 +258,6 @@ export const SelectUIView = (
label={option.label}
disabled={option.disabled}
key={option.value}
style={{fontFamily:"Montserrat"}}
>
<Wrapper className="option-label">
{props.options.findIndex((option) => hasIcon(option.prefixIcon)) > -1 &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ const getStyle = (
}
}

.ant-tabs-tab-btn {
font-family:${style.fontFamily};
font-weight:${style.textWeight};
text-transform:${style.textTransform};
text-decoration:${style.textDecoration};
font-style:${style.fontStyle};
}

.ant-tabs-ink-bar {
background-color: ${style.accent};
}
Expand Down
3 changes: 2 additions & 1 deletion client/packages/lowcoder/src/comps/comps/textComp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const getStyle = (style: TextStyleType) => {
font-weight: ${style.textWeight} !important;
font-family: ${style.fontFamily} !important;
font-style:${style.fontStyle} !important;
text-transform:${style.textTransform} !important;
text-decoration:${style.textDecoration} !important;
background-color: ${style.background};
.markdown-body a {
color: ${style.links};
Expand Down Expand Up @@ -146,7 +148,6 @@ let TextTmpComp = (function () {
.setPropertyViewFn((children) => {
return (
<>

<Section name={sectionNames.basic}>
{children.type.propertyView({
label: trans("value"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@ import { EditorContext } from "comps/editorState";
const Wrapper = styled.div<{
$style: InputLikeStyleType;
}>`
height: 100%;
box-sizing:border-box;
.rc-textarea {
background-color:${(props) => props.$style.background};
padding:${(props) => props.$style.padding};
text-transform:${(props)=>props.$style.textTransform};
text-decoration:${(props)=>props.$style.textDecoration};
margin: 0px 3px 0px 3px !important;
}

.ant-input-clear-icon {
opacity: 0.45;
Expand Down Expand Up @@ -196,7 +203,7 @@ let MentionTmpComp = (function () {
height: "100%",
maxHeight: "100%",
resize: "none",
padding: props.style.padding,
// padding: props.style.padding,
fontStyle: props.style.fontStyle,
fontFamily: props.style.fontFamily,
borderWidth: props.style.borderWidth,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ export function getStyle(style: InputLikeStyleType) {
font-weight: ${style.textWeight};
font-family: ${style.fontFamily};
font-style:${style.fontStyle};
text-transform:${style.textTransform};
text-decoration:${style.textDecoration};
background-color: ${style.background};
border-color: ${style.border};

Expand Down
2 changes: 2 additions & 0 deletions client/packages/lowcoder/src/comps/controls/styleControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,8 @@ export function styleControl<T extends readonly SingleColorConfig[]>(colorConfig
name === "cardRadius" ||
name === "textSize" ||
name === "textWeight" ||
name === "textTransform" ||
name === "textDecoration" ||
name === "fontFamily" ||
name === "fontStyle" ||
name === "backgroundImage" ||
Expand Down
Loading