Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd3e6771

Browse files
styling updates
1 parent203ea02 commitd3e6771

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -865,17 +865,21 @@ export function styleControl<T extends readonly SingleColorConfig[]>(
865865
constbgColor=useContext(BackgroundColorContext);
866866
const{ themeId}=theme||{};
867867
constisPreviewTheme=themeId==='preview-theme';
868+
constisDefaultTheme=themeId==='default-theme-id';
868869

869870

870871
constappSettingsComp=editorState?.getAppSettingsComp();
871872
constpreventAppStylesOverwriting=appSettingsComp?.getView()?.preventAppStylesOverwriting;
872873
const{ appliedThemeId, preventStyleOverwriting}=comp?.comp?.container||comp?.comp||{};
873-
constappTheme=isPreviewTheme||(!preventStyleOverwriting&&!preventAppStylesOverwriting)
874+
constappTheme=isPreviewTheme||isDefaultTheme||(!preventStyleOverwriting&&!preventAppStylesOverwriting)
874875
?theme?.theme
875876
:undefined;
876-
constcompTheme=isPreviewTheme||(compType&&!preventStyleOverwriting&&!preventAppStylesOverwriting)
877+
constcompTheme=isPreviewTheme||isDefaultTheme||(compType&&!preventStyleOverwriting&&!preventAppStylesOverwriting)
877878
?{
878-
...(theme?.theme?.components?.[compType]?.[styleKey]||{})asunknownasRecord<string,string>
879+
...(
880+
theme?.theme?.components?.[compType]?.[styleKey]
881+
||defaultTheme.components?.[compType]?.[styleKey]
882+
)asunknownasRecord<string,string>
879883
}
880884
:undefined;
881885
conststyleProps=(!comp&&!compType)||preventStyleOverwriting||preventAppStylesOverwriting||appliedThemeId===themeId

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp