mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-198310 Add keys: advertiser
This commit is contained in:
@@ -8,6 +8,7 @@ import com.intellij.openapi.util.Ref;
|
||||
import com.intellij.ui.*;
|
||||
import com.intellij.util.Consumer;
|
||||
import com.intellij.util.ui.Html;
|
||||
import com.intellij.util.ui.JBUI;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import org.intellij.lang.annotations.JdkConstants;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -187,6 +188,9 @@ public class HintUtil {
|
||||
JLabel label = new JLabel();
|
||||
label.setText(bottomText);
|
||||
label.setHorizontalAlignment(alignment);
|
||||
label.setForeground(JBUI.CurrentTheme.Advertiser.foreground());
|
||||
label.setBackground(JBUI.CurrentTheme.Advertiser.background());
|
||||
label.setOpaque(true);
|
||||
label.setFont(label.getFont().deriveFont((float)(label.getFont().getSize() - 2)));
|
||||
if (bottomText != null) {
|
||||
label.setBorder(border);
|
||||
|
||||
@@ -1802,6 +1802,16 @@ public class JBUI {
|
||||
}
|
||||
}
|
||||
|
||||
public static class Advertiser {
|
||||
public static Color foreground() {
|
||||
return JBColor.namedColor("Popup.Advertiser.foreground", UIUtil.getLabelForeground());
|
||||
}
|
||||
|
||||
public static Color background() {
|
||||
return JBColor.namedColor("Popup.Advertiser.background", UIUtil.getLabelBackground());
|
||||
}
|
||||
}
|
||||
|
||||
public static class Validator {
|
||||
public static Color errorBorderColor() {
|
||||
return JBColor.namedColor("ValidationTooltip.errorBorderColor", 0xE0A8A9);
|
||||
|
||||
Reference in New Issue
Block a user