@teaui/core
Version:
A high-level terminal UI library for Node
28 lines • 922 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.childTheme = childTheme;
const Theme_1 = require("./Theme");
function childTheme(theme, isPressed = false, isHover = false) {
return new Theme_1.Theme({
background: isPressed
? theme.darkenColor
: isHover
? theme.highlightColor
: theme.backgroundColor,
textBackground: isPressed
? theme.darkenColor
: isHover
? theme.highlightColor
: theme.backgroundColor,
highlight: theme.highlightColor,
darken: isPressed
? theme.darkenColor
: isHover
? theme.highlightColor
: theme.darkenColor,
text: theme.textColor,
brightText: theme.brightTextColor,
dimText: theme.dimTextColor,
});
}
//# sourceMappingURL=UI.js.map