34 lines
1.0 KiB
JavaScript
Raw Normal View History

2024-01-29 09:26:07 +08:00
import { changeColor } from 'seemly';
import { tooltipDark } from "../../tooltip/styles/index.mjs";
import { dropdownDark } from "../../dropdown/styles/index.mjs";
import { commonDark } from "../../_styles/common/index.mjs";
import { self } from "./light.mjs";
const menuDark = {
name: 'Menu',
common: commonDark,
peers: {
Tooltip: tooltipDark,
Dropdown: dropdownDark
},
self(vars) {
const {
primaryColor,
primaryColorSuppl
} = vars;
const commonSelf = self(vars);
commonSelf.itemColorActive = changeColor(primaryColor, {
alpha: 0.15
});
commonSelf.itemColorActiveHover = changeColor(primaryColor, {
alpha: 0.15
});
commonSelf.itemColorActiveCollapsed = changeColor(primaryColor, {
alpha: 0.15
});
commonSelf.itemColorActiveInverted = primaryColorSuppl;
commonSelf.itemColorActiveHoverInverted = primaryColorSuppl;
commonSelf.itemColorActiveCollapsedInverted = primaryColorSuppl;
return commonSelf;
}
};
export default menuDark;