2024-01-29 09:26:07 +08:00
|
|
|
import { emptyLight } from "../../../empty/styles/index.mjs";
|
|
|
|
import { scrollbarLight } from "../../scrollbar/styles/index.mjs";
|
|
|
|
import { commonLight } from "../../../_styles/common/index.mjs";
|
|
|
|
import { createTheme } from "../../../_mixins/index.mjs";
|
2024-08-02 18:19:39 +08:00
|
|
|
import commonVariables from "./_common.mjs";
|
|
|
|
export function self(vars) {
|
2024-01-29 09:26:07 +08:00
|
|
|
const {
|
|
|
|
borderRadius,
|
|
|
|
popoverColor,
|
|
|
|
textColor3,
|
|
|
|
dividerColor,
|
|
|
|
textColor2,
|
|
|
|
primaryColorPressed,
|
|
|
|
textColorDisabled,
|
|
|
|
primaryColor,
|
|
|
|
opacityDisabled,
|
|
|
|
hoverColor,
|
|
|
|
fontSizeSmall,
|
|
|
|
fontSizeMedium,
|
|
|
|
fontSizeLarge,
|
|
|
|
fontSizeHuge,
|
|
|
|
heightSmall,
|
|
|
|
heightMedium,
|
|
|
|
heightLarge,
|
|
|
|
heightHuge
|
|
|
|
} = vars;
|
|
|
|
return Object.assign(Object.assign({}, commonVariables), {
|
|
|
|
optionFontSizeSmall: fontSizeSmall,
|
|
|
|
optionFontSizeMedium: fontSizeMedium,
|
|
|
|
optionFontSizeLarge: fontSizeLarge,
|
|
|
|
optionFontSizeHuge: fontSizeHuge,
|
|
|
|
optionHeightSmall: heightSmall,
|
|
|
|
optionHeightMedium: heightMedium,
|
|
|
|
optionHeightLarge: heightLarge,
|
|
|
|
optionHeightHuge: heightHuge,
|
|
|
|
borderRadius,
|
|
|
|
color: popoverColor,
|
|
|
|
groupHeaderTextColor: textColor3,
|
|
|
|
actionDividerColor: dividerColor,
|
|
|
|
optionTextColor: textColor2,
|
|
|
|
optionTextColorPressed: primaryColorPressed,
|
|
|
|
optionTextColorDisabled: textColorDisabled,
|
|
|
|
optionTextColorActive: primaryColor,
|
|
|
|
optionOpacityDisabled: opacityDisabled,
|
|
|
|
optionCheckColor: primaryColor,
|
|
|
|
optionColorPending: hoverColor,
|
|
|
|
optionColorActive: 'rgba(0, 0, 0, 0)',
|
|
|
|
optionColorActivePending: hoverColor,
|
|
|
|
actionTextColor: textColor2,
|
|
|
|
loadingColor: primaryColor
|
|
|
|
});
|
2024-08-02 18:19:39 +08:00
|
|
|
}
|
2024-01-29 09:26:07 +08:00
|
|
|
const internalSelectMenuLight = createTheme({
|
|
|
|
name: 'InternalSelectMenu',
|
|
|
|
common: commonLight,
|
|
|
|
peers: {
|
|
|
|
Scrollbar: scrollbarLight,
|
|
|
|
Empty: emptyLight
|
|
|
|
},
|
|
|
|
self
|
|
|
|
});
|
|
|
|
export default internalSelectMenuLight;
|