react-openfin-mat-impl
Version:
Materialize UI implementation of react-openfin
21 lines • 941 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const styles_1 = require("@material-ui/core/styles");
const init_1 = require("react-openfin/init");
const openfin_starter_constant_1 = require("../openfin-starter-constant");
const switcherWidth = 14 / 34 * openfin_starter_constant_1.default.appbarHeight;
const switcherHeight = openfin_starter_constant_1.default.appbarHeight;
const headerThemeSwitcherCompStyle = (theme) => styles_1.createStyles({
switcher: {
width: switcherWidth,
height: switcherHeight,
backgroundSize: `${switcherWidth * 2}px ${switcherHeight}px`,
backgroundImage: `url(${init_1.default.config.publicUrl}/img/switcher.png)`,
"-webkit-app-region": "no-drag",
},
active: {
backgroundPosition: `-${switcherWidth}px 0px`
}
});
exports.default = headerThemeSwitcherCompStyle;
//# sourceMappingURL=headerThemeSwitcherComp.style.js.map