Make progress' text2 text grey according to guide

GitOrigin-RevId: 912f95ec95d8138e0ee421eebd804d110f8ceff2
This commit is contained in:
Elena Shaverdova
2019-12-27 15:40:08 +00:00
committed by intellij-monorepo-bot
parent bf3ec41dd3
commit 0585365e24
2 changed files with 3 additions and 2 deletions
@@ -16,7 +16,7 @@ import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
public class ProgressPanelBuilder implements GridBagPanelBuilder, PanelBuilder {
private static final Color SEPARATOR_COLOR = new JBColor(Gray.xC9, Gray.x55);
private static final Color SEPARATOR_COLOR = JBUI.CurrentTheme.CustomFrameDecorations.separatorForeground();
private final JProgressBar myProgressBar;
private String initialLabelText;
@@ -199,7 +199,7 @@ public class ProgressPanelBuilder implements GridBagPanelBuilder, PanelBuilder {
label = new JLabel(StringUtil.isNotEmpty(initialLabelText) ? initialLabelText : "");
comment = new JLabel(myCommentText);
comment.setForeground(Gray.x78);
comment.setForeground(UIUtil.getContextHelpForeground());
if (SystemInfo.isMac) {
Font font = comment.getFont();
float size = font.getSize2D();
@@ -112,6 +112,7 @@ class ProgressDialog implements Disposable {
if (SystemInfo.isMac) {
UIUtil.applyStyle(UIUtil.ComponentStyle.SMALL, myText2Label);
}
myText2Label.setForeground(UIUtil.getContextHelpForeground());
myInnerPanel.setPreferredSize(new Dimension(SystemInfo.isMac ? 350 : JBUIScale.scale(450), -1));
myCancelButton.addActionListener(__ -> doCancelAction());