From f76801f06eda3b588dfd59569a8de848a8788f13 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Thu, 2 Aug 2012 23:31:01 +0200 Subject: [PATCH] IDEA-89646 Settings: Code Style: Change color or background for "Set from..." --- .../src/com/intellij/openapi/ui/Banner.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/platform/platform-api/src/com/intellij/openapi/ui/Banner.java b/platform/platform-api/src/com/intellij/openapi/ui/Banner.java index 52e555a92211..770f7c9f36fc 100644 --- a/platform/platform-api/src/com/intellij/openapi/ui/Banner.java +++ b/platform/platform-api/src/com/intellij/openapi/ui/Banner.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2012 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ import com.intellij.ui.components.labels.LinkLabel; import com.intellij.ui.components.labels.LinkListener; import com.intellij.ui.components.panels.NonOpaquePanel; import com.intellij.util.containers.HashMap; +import com.intellij.util.ui.UIUtil; import org.jetbrains.annotations.Nullable; import javax.swing.*; @@ -55,7 +56,13 @@ public class Banner extends NonOpaquePanel implements PropertyChangeListener{ public void linkSelected(final LinkLabel aSource, final Object aLinkData) { action.actionPerformed(new ActionEvent(Banner.this, ActionEvent.ACTION_PERFORMED, Action.ACTION_COMMAND_KEY)); } - }); + }) { + @Override + protected Color getTextColor() { + return UIUtil.isUnderDarcula() ? Color.WHITE : Color.BLUE; + } + }; + label.setFont(label.getFont().deriveFont(Font.BOLD)); myActions.put(action, label); myActionsPanel.add(label); updateAction(action);