mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Make progress' text2 text grey according to guide
GitOrigin-RevId: 912f95ec95d8138e0ee421eebd804d110f8ceff2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bf3ec41dd3
commit
0585365e24
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user