本文整理汇总了Java中com.intellij.openapi.actionSystem.impl.IdeaActionButtonLook类的典型用法代码示例。如果您正苦于以下问题:Java IdeaActionButtonLook类的具体用法?Java IdeaActionButtonLook怎么用?Java IdeaActionButtonLook使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IdeaActionButtonLook类属于com.intellij.openapi.actionSystem.impl包,在下文中一共展示了IdeaActionButtonLook类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: patchPanels
import com.intellij.openapi.actionSystem.impl.IdeaActionButtonLook; //导入依赖的package包/类
static void patchPanels() throws Exception {
if (MTConfig.getInstance().isMaterialTheme()) {
final Color color = UIManager.getColor("Panel.background");
StaticPatcher.setFinalStatic(UIUtil.class, "CONTRAST_BORDER_COLOR", ColorUtil.withAlpha(color, .05));
StaticPatcher.setFinalStatic(UIUtil.class, "BORDER_COLOR", color);
StaticPatcher.setFinalStatic(UIUtil.class, "AQUA_SEPARATOR_FOREGROUND_COLOR", color);
// StaticPatcher.setFinalStatic(HelpTooltip.class, "BACKGROUND_COLOR", color);
}
final Field[] fields = DarculaUIUtil.class.getDeclaredFields();
final Object[] objects = Arrays.stream(fields)
.filter(f -> f.getType().equals(Color.class))
.toArray();
final Color accentColor = ColorUtil.fromHex(MTConfig.getInstance().getAccentColor());
final JBColor accentJBColor = new JBColor(accentColor, accentColor);
StaticPatcher.setFinalStatic((Field) objects[0], accentJBColor);
// StaticPatcher.setFinalStatic((Field) objects[1], accentJBColor);
final Field[] fields2 = IdeaActionButtonLook.class.getDeclaredFields();
final Object[] objects2 = Arrays.stream(fields2)
.filter(f -> f.getType().equals(Color.class))
.toArray();
StaticPatcher.setFinalStatic((Field) objects2[1], accentJBColor);
}