mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CPP-475 Show cmake output messages while loading
- Using watermark icons again: https://youtrack.jetbrains.com/issue/CPP-475#comment=27-1573757
This commit is contained in:
+3
-1
@@ -29,6 +29,7 @@ import com.intellij.util.ContentUtilEx;
|
||||
import com.intellij.util.NotNullFunction;
|
||||
import com.intellij.util.ui.EmptyIcon;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import com.intellij.util.ui.WatermarkIcon;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -152,7 +153,8 @@ public class TabbedContentTabLabel extends ContentTabLabel {
|
||||
if (nextTabWithName.getFirst().equals(ContentUtilEx.getTabNameWithoutPrefix(myContent, tabName))) {
|
||||
JComponent tab = nextTabWithName.getSecond();
|
||||
if (tab instanceof Iconable) {
|
||||
jLabel.setIcon(((Iconable)tab).getIcon(Iconable.ICON_FLAG_VISIBILITY));
|
||||
Icon baseIcon = ((Iconable)tab).getIcon(Iconable.ICON_FLAG_VISIBILITY);
|
||||
jLabel.setIcon(isSelected() || baseIcon == null ? baseIcon : new WatermarkIcon(baseIcon, .5f));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user