From 6937b4d2b00f0079b8e8437daeec4606c31ce6ad Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Wed, 12 Mar 2014 17:36:24 +0100 Subject: [PATCH] StatusBar doesn't change when perform Prefs -> Appearance -> Custom fonts --- .../com/intellij/openapi/wm/impl/status/TextPanel.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/TextPanel.java b/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/TextPanel.java index dbd555ca941c..609b73b87111 100644 --- a/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/TextPanel.java +++ b/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/TextPanel.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2014 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. @@ -35,10 +35,14 @@ public class TextPanel extends JComponent { private int myRightPadding = 20; protected TextPanel() { - setFont(SystemInfo.isMac ? UIUtil.getLabelFont().deriveFont(11.0f) : UIUtil.getLabelFont()); setOpaque(false); } + @Override + public Font getFont() { + return SystemInfo.isMac ? UIUtil.getLabelFont().deriveFont(11.0f) : UIUtil.getLabelFont(); + } + protected TextPanel(final boolean decorate) { this(); myDecorate = decorate;