40 lines
1.4 KiB
JavaScript
Raw Normal View History

2024-01-29 09:26:07 +08:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
2024-08-02 18:19:39 +08:00
exports.self = self;
2024-01-29 09:26:07 +08:00
const seemly_1 = require("seemly");
const styles_1 = require("../../checkbox/styles");
const styles_2 = require("../../empty/styles");
const styles_3 = require("../../_internal/scrollbar/styles");
const common_1 = require("../../_styles/common");
const use_theme_1 = require("../../_mixins/use-theme");
2024-08-02 18:19:39 +08:00
function self(vars) {
2024-01-29 09:26:07 +08:00
const { borderRadiusSmall, dividerColor, hoverColor, pressedColor, primaryColor, textColor3, textColor2, textColorDisabled, fontSize } = vars;
return {
fontSize,
lineHeight: '1.5',
nodeHeight: '30px',
nodeWrapperPadding: '3px 0',
nodeBorderRadius: borderRadiusSmall,
nodeColorHover: hoverColor,
nodeColorPressed: pressedColor,
nodeColorActive: (0, seemly_1.changeColor)(primaryColor, { alpha: 0.1 }),
arrowColor: textColor3,
nodeTextColor: textColor2,
nodeTextColorDisabled: textColorDisabled,
loadingColor: primaryColor,
dropMarkColor: primaryColor,
lineColor: dividerColor
};
2024-08-02 18:19:39 +08:00
}
2024-01-29 09:26:07 +08:00
const treeLight = (0, use_theme_1.createTheme)({
name: 'Tree',
common: common_1.commonLight,
peers: {
Checkbox: styles_1.checkboxLight,
Scrollbar: styles_3.scrollbarLight,
Empty: styles_2.emptyLight
},
2024-08-02 18:19:39 +08:00
self
2024-01-29 09:26:07 +08:00
});
exports.default = treeLight;