mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-201507 Plugin settings keys followup
This commit is contained in:
+5
-2
@@ -92,6 +92,9 @@ public class PluginManagerConfigurableNew
|
||||
private static final Color SEARCH_FIELD_BORDER_COLOR =
|
||||
JBColor.namedColor("Plugins.SearchField.borderColor", new JBColor(0xC5C5C5, 0x515151));
|
||||
|
||||
private static final SimpleTextAttributes GRAY_ATTRIBUTES =
|
||||
new SimpleTextAttributes(SimpleTextAttributes.STYLE_PLAIN, ListPluginComponent.DisabledColor);
|
||||
|
||||
private final TagBuilder myTagBuilder;
|
||||
|
||||
private LinkListener<IdeaPluginDescriptor> myNameListener;
|
||||
@@ -998,12 +1001,12 @@ public class PluginManagerConfigurableNew
|
||||
}
|
||||
|
||||
if (isJBPlugin(descriptor)) {
|
||||
append(" by JetBrains", SimpleTextAttributes.GRAY_ATTRIBUTES);
|
||||
append(" by JetBrains", GRAY_ATTRIBUTES);
|
||||
}
|
||||
else {
|
||||
String vendor = descriptor.getVendor();
|
||||
if (!StringUtil.isEmptyOrSpaces(vendor)) {
|
||||
append(" by " + StringUtil.shortenPathWithEllipsis(vendor, 50), SimpleTextAttributes.GRAY_ATTRIBUTES);
|
||||
append(" by " + StringUtil.shortenPathWithEllipsis(vendor, 50), GRAY_ATTRIBUTES);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
-6
@@ -10,7 +10,6 @@ import com.intellij.openapi.util.Ref;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.ui.BrowserHyperlinkListener;
|
||||
import com.intellij.ui.ColorUtil;
|
||||
import com.intellij.ui.Gray;
|
||||
import com.intellij.ui.JBColor;
|
||||
import com.intellij.ui.border.CustomLineBorder;
|
||||
import com.intellij.ui.components.JBOptionButton;
|
||||
@@ -172,7 +171,7 @@ public class DetailsPagePluginComponent extends OpaquePanel {
|
||||
versionComponent.setFont(UIUtil.getLabelFont());
|
||||
versionComponent.setBorder(null);
|
||||
versionComponent.setOpaque(false);
|
||||
versionComponent.setForeground(new JBColor(Gray._130, Gray._120));
|
||||
versionComponent.setForeground(CellPluginComponent.GRAY_COLOR);
|
||||
versionComponent.addFocusListener(new FocusAdapter() {
|
||||
@Override
|
||||
public void focusLost(FocusEvent e) {
|
||||
@@ -285,8 +284,6 @@ public class DetailsPagePluginComponent extends OpaquePanel {
|
||||
return;
|
||||
}
|
||||
|
||||
Color grayedFg = new JBColor(Gray._130, Gray._120);
|
||||
|
||||
String downloads = PluginManagerConfigurableNew.getDownloads(myPlugin);
|
||||
String date = PluginManagerConfigurableNew.getLastUpdatedDate(myPlugin);
|
||||
String rating = PluginManagerConfigurableNew.getRating(myPlugin);
|
||||
@@ -297,10 +294,10 @@ public class DetailsPagePluginComponent extends OpaquePanel {
|
||||
myCenterPanel.add(metrics);
|
||||
|
||||
if (date != null) {
|
||||
createRatingLabel(metrics, date, AllIcons.Plugins.Updated, grayedFg);
|
||||
createRatingLabel(metrics, date, AllIcons.Plugins.Updated, CellPluginComponent.GRAY_COLOR);
|
||||
}
|
||||
if (downloads != null) {
|
||||
createRatingLabel(metrics, downloads, AllIcons.Plugins.Downloads, grayedFg);
|
||||
createRatingLabel(metrics, downloads, AllIcons.Plugins.Downloads, CellPluginComponent.GRAY_COLOR);
|
||||
}
|
||||
|
||||
if (rating != null) {
|
||||
|
||||
@@ -217,7 +217,7 @@ public class TabHeaderComponent extends JComponent {
|
||||
JBColor.namedColor("Plugins.Tab.active.background", JBUI.CurrentTheme.ToolWindow.tabSelectedBackground());
|
||||
|
||||
private static final Color HOVER_BG_COLOR =
|
||||
JBColor.namedColor("Plugins.Tab.hover.background", JBUI.CurrentTheme.ToolWindow.tabHoveredBackground());
|
||||
JBColor.namedColor("Plugins.Tab.hoverBackground", JBUI.CurrentTheme.ToolWindow.tabHoveredBackground());
|
||||
|
||||
@Override
|
||||
protected void paintComponent(Graphics g) {
|
||||
|
||||
@@ -1314,7 +1314,7 @@ public final class UiDefaultsHardcodedKeys {
|
||||
"Plugins.SectionHeader.foreground",
|
||||
"Plugins.Tab.active.background",
|
||||
"Plugins.Tab.active.foreground",
|
||||
"Plugins.Tab.hover.background",
|
||||
"Plugins.Tab.hoverBackground",
|
||||
"Plugins.background",
|
||||
"Plugins.disabledForeground",
|
||||
"Plugins.selectionBackground",
|
||||
|
||||
Reference in New Issue
Block a user