From a29ef9af71dbfc5f6a139d0d612659ab1485e5d4 Mon Sep 17 00:00:00 2001 From: hzzz Date: Thu, 14 Sep 2017 11:43:13 +0800 Subject: [PATCH] =?UTF-8?q?ToolbarUI=E8=83=8C=E6=99=AF=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer_base/src/com/fr/design/gui/itoolbar/UIToolBarUI.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/designer_base/src/com/fr/design/gui/itoolbar/UIToolBarUI.java b/designer_base/src/com/fr/design/gui/itoolbar/UIToolBarUI.java index d9d5bf7ed..8d3a66d45 100644 --- a/designer_base/src/com/fr/design/gui/itoolbar/UIToolBarUI.java +++ b/designer_base/src/com/fr/design/gui/itoolbar/UIToolBarUI.java @@ -25,6 +25,8 @@ import com.fr.design.constants.UIConstants; import com.fr.design.gui.ibutton.UIToolButtonBorder; import com.fr.design.gui.icheckbox.UICheckBox; +import static com.fr.design.utils.ThemeUtils.BACK_COLOR; + public class UIToolBarUI extends MetalToolBarUI { public static final String IS_TOOL_BAR_BUTTON_KEY = "JToolBar.isToolbarButton"; public static final int FLOATABLE_GRIP_SIZE = 8; @@ -89,7 +91,7 @@ public class UIToolBarUI extends MetalToolBarUI { */ public void paint(Graphics g, JComponent c) { Graphics2D g2 = (Graphics2D) g; - g2.setColor(UIConstants.TOOLBARUI_BACKGROUND); + g2.setColor(BACK_COLOR); g2.fillRect(0, 0, c.getWidth(), c.getHeight()); }