本文整理汇总了TypeScript中bobril.invalidateStyles函数的典型用法代码示例。如果您正苦于以下问题:TypeScript invalidateStyles函数的具体用法?TypeScript invalidateStyles怎么用?TypeScript invalidateStyles使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了invalidateStyles函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: lightTheme
export function lightTheme() {
strPrimary1Color = Colors.cyan500;
strPrimary2Color = Colors.cyan700;
strPrimary3Color = Colors.grey400;
strAccent1Color = Colors.pinkA200;
strAccent2Color = Colors.grey100;
strAccent3Color = Colors.grey500;
strTextColor = withTransparency(Colors.black, 0.87);
strCheckboxOffColor = withTransparency(Colors.black, 0.54);
strSecondaryTextColor = Colors.grey500;
strSelectColor = withTransparency(Colors.black, 0.2);
strSubheaderColor = withTransparency(Colors.black, 0.54);
strAlternateTextColor = Colors.white;
strCanvasColor = Colors.white;
strBorderColor = Colors.grey300;
strDisabledColor = withTransparency(Colors.black, 0.3);
strSliderColor = withTransparency(Colors.black, 0.54);
strAlternateDisabledColor = Colors.grey50;
strPickerHeaderColor = Colors.cyan500;
strClockCircleColor = withTransparency(Colors.black, 0.07);
strShadowColor = Colors.black;
strHoverColor = withTransparency("#999", 0.3);
strKeyboardFocusColor = withTransparency("#777", 0.3);
strErrorColor = Colors.red500;
b.invalidateStyles();
}
示例2: setInterval
setInterval(() => {
color = "#" + color.substr(2, 5) + color[1];
b.invalidateStyles();
}, 1000);