mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-207909 Add keys: search field red error background
This commit is contained in:
+2
-3
@@ -20,7 +20,7 @@ import com.intellij.openapi.ui.Messages;
|
||||
import com.intellij.openapi.util.ActionCallback;
|
||||
import com.intellij.openapi.util.Disposer;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.ui.JBColor;
|
||||
import com.intellij.ui.LightColors;
|
||||
import com.intellij.ui.RelativeFont;
|
||||
import com.intellij.ui.components.labels.LinkLabel;
|
||||
import com.intellij.util.containers.JBIterable;
|
||||
@@ -47,7 +47,6 @@ import static javax.swing.SwingUtilities.isDescendingFrom;
|
||||
* @author Sergey.Malenkov
|
||||
*/
|
||||
class ConfigurableEditor extends AbstractEditor implements AnActionListener, AWTEventListener {
|
||||
private static final JBColor ERROR_BACKGROUND = new JBColor(0xffbfbf, 0x591f1f);
|
||||
private static final String RESET_NAME = "Reset";
|
||||
private static final String RESET_DESCRIPTION = "Rollback changes for this configuration element";
|
||||
private final MergingUpdateQueue myQueue = new MergingUpdateQueue("SettingsModification", 1000, false, this, this, this);
|
||||
@@ -95,7 +94,7 @@ class ConfigurableEditor extends AbstractEditor implements AnActionListener, AWT
|
||||
myErrorLabel.setVisible(false);
|
||||
myErrorLabel.setVerticalTextPosition(SwingConstants.TOP);
|
||||
myErrorLabel.setBorder(BorderFactory.createEmptyBorder(10, 15, 15, 15));
|
||||
myErrorLabel.setBackground(ERROR_BACKGROUND);
|
||||
myErrorLabel.setBackground(LightColors.RED);
|
||||
add(BorderLayout.SOUTH, RelativeFont.HUGE.install(myErrorLabel));
|
||||
add(BorderLayout.CENTER, myCardPanel);
|
||||
Disposer.register(this, myCardPanel);
|
||||
|
||||
@@ -519,6 +519,9 @@
|
||||
{
|
||||
"key": "SearchEverywhere.Tab.selectedForeground"
|
||||
},
|
||||
{
|
||||
"key": "SearchField.errorBackground"
|
||||
},
|
||||
{
|
||||
"key": "SearchMatch.endBackground",
|
||||
"description": "The yellow rectangle under the search match text"
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package com.intellij.ui;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.*;
|
||||
|
||||
/**
|
||||
* @author max
|
||||
@@ -25,7 +25,7 @@ public interface LightColors {
|
||||
Color YELLOW = new JBColor(new Color(0xffffcc), new Color(0x525229));
|
||||
Color GREEN = new JBColor(new Color(0xccffcc), new Color(0x356936));
|
||||
Color BLUE = new JBColor(new Color(0xccccff), new Color(0x589df6));
|
||||
Color RED = new JBColor(new Color(0xffcccc), new Color(0x743A3A));
|
||||
Color RED = JBColor.namedColor("SearchField.errorBackground", new JBColor(0xffcccc, 0x743A3A));
|
||||
Color CYAN = new JBColor(new Color(0xccffff), new Color(100, 138, 138));
|
||||
|
||||
Color SLIGHTLY_GREEN = new JBColor(new Color(0xeeffee), new Color(0x515B51));
|
||||
|
||||
Reference in New Issue
Block a user