Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pro:layout): dark theme overlay menu style error (#1771)
- Loading branch information
Showing
7 changed files
with
66 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* @license | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://github.com/IDuxFE/idux/blob/main/LICENSE | ||
*/ | ||
|
||
import type { CertainThemeTokens, GlobalThemeTokens, ThemeTokenAlgorithms } from '@idux/components/theme' | ||
|
||
import { getDefaultThemeTokens } from './default' | ||
export function getDarkThemeTokens( | ||
tokens: GlobalThemeTokens, | ||
algorithms: ThemeTokenAlgorithms, | ||
): CertainThemeTokens<'menu'> { | ||
const defaultTokens = getDefaultThemeTokens(tokens, algorithms) | ||
|
||
return { | ||
...defaultTokens, | ||
|
||
darkItemColor: defaultTokens.itemColor, | ||
darkItemColorHover: defaultTokens.itemColorHover, | ||
darkItemColorActive: defaultTokens.itemColorActive, | ||
darkItemColorDisabled: defaultTokens.itemColorDisabled, | ||
darkItemGroupColor: defaultTokens.itemGroupColor, | ||
darkItemFontWeightActive: defaultTokens.darkItemFontWeightActive, | ||
|
||
darkItemBg: defaultTokens.itemBg, | ||
darkItemBgHover: defaultTokens.itemBgHover, | ||
darkItemBgActive: defaultTokens.itemBgActive, | ||
darkItemBgDisabled: defaultTokens.itemBgDisabled, | ||
darkItemGroupBg: defaultTokens.itemGroupBg, | ||
|
||
darkHorizontalItemColorHover: defaultTokens.horizontalItemColorHover, | ||
darkHorizontalItemColorActive: defaultTokens.horizontalItemColorActive, | ||
darkHorizontalItemBgHover: defaultTokens.horizontalItemBgHover, | ||
darkHorizontalItemBgActive: defaultTokens.horizontalItemBgActive, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters