Skip to content

Commit

Permalink
rename: Frame
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTRy committed Nov 27, 2023
1 parent e33e74b commit 00b1d4b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { generateNormalStyle } from './utils/generateNormalStyle';
import { generateTransparentStyle } from './utils/generateTransparentStyle';
import { generateOutlineStyle } from './utils/generateOutlineStyle';

import IStyledPrefixAndPicker from '../../../Interface/IStyledPrefixAndPicker.model';
import { getSimpletColorThemeType } from '../getOpositColorThemeType';
import IStyledPrefixAndPicker from '@/Components/UI/Interface/IStyledPrefixAndPicker.model';
import { getSimpleColorThemeType } from '@/Components/UI/Design/designFunctions/getSimpleColorThemeType';
import { TTheme } from '@/Components/UI/Interface/TTheme';

export interface IGenerateThemeDesignForComponentProps {
Expand Down Expand Up @@ -38,7 +38,7 @@ export default function generateThemeDesignForComponent(props: IGenerateThemeDes
$textHover,
} = props;

const calcTextColor = $useSimpleTextColor ? ($textColor ? $textColor : getSimpletColorThemeType($themeType)) : $textColor;
const calcTextColor = $useSimpleTextColor ? ($textColor ? $textColor : getSimpleColorThemeType($themeType)) : $textColor;

if ($themeType === 'transparent') {
return generateTransparentStyle({ theme, $backgroundState, $hoverColor, $layer, $textColor: calcTextColor, $textHover });
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TThemeTypes } from '@/Components/UI/Interface/TUiColors';
import themeStore from '../color/themeStore';
import themeStore from '../../color/themeStore';

export const getSimpletColorThemeType = (themeType?: TThemeTypes) => {
const getSimpleColorThemeType = (themeType?: TThemeTypes) => {
const isDarkTheme = themeStore.getState().isDarkTheme;

if (themeType === 'primary') {
Expand All @@ -12,3 +12,5 @@ export const getSimpletColorThemeType = (themeType?: TThemeTypes) => {
return isDarkTheme ? 'secondary' : 'primary';
}
};

export default getSimpleColorThemeType;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as getSimpleColorThemeType } from './getSimpleColorThemeType';

0 comments on commit 00b1d4b

Please sign in to comment.