Fix tooltips in Inspection Widget, update icons and button text color

GitOrigin-RevId: 8048be195688f8b2b40283075fbc144b3157131d
This commit is contained in:
Kirill Kirichenko
2020-05-06 13:47:05 +03:00
committed by intellij-monorepo-bot
parent 797f33df75
commit 897ea7110a
7 changed files with 19 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="6" height="1.4" transform="matrix(0.707107 -0.707107 -0.707107 -0.707107 8.00735 10.9999)" fill="#787878"/>
<rect width="1.4" height="6" transform="matrix(0.707107 -0.707107 -0.707107 -0.707107 8.00731 10.9999)" fill="#787878"/>
<rect width="6" height="1.4" transform="matrix(0.707107 -0.707107 -0.707107 -0.707107 8.00735 10.9999)" fill="#6E6E6E"/>
<rect width="1.4" height="6" transform="matrix(0.707107 -0.707107 -0.707107 -0.707107 8.00731 10.9999)" fill="#6E6E6E"/>
</svg>

Before

Width:  |  Height:  |  Size: 345 B

After

Width:  |  Height:  |  Size: 345 B

View File

@@ -0,0 +1,4 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="6" height="1.4" transform="matrix(0.707107 -0.707107 -0.707107 -0.707107 8.00735 10.9999)" fill="#AFB1B3"/>
<rect width="1.4" height="6" transform="matrix(0.707107 -0.707107 -0.707107 -0.707107 8.00731 10.9999)" fill="#AFB1B3"/>
</svg>

After

Width:  |  Height:  |  Size: 345 B

View File

@@ -1,4 +1,4 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="6" height="1.4" transform="matrix(-0.707107 0.707107 0.707107 0.707107 7.99265 5.00012)" fill="#787878"/>
<rect width="1.4" height="6" transform="matrix(-0.707107 0.707107 0.707107 0.707107 7.99269 5.00012)" fill="#787878"/>
<rect width="6" height="1.4" transform="matrix(-0.707107 0.707107 0.707107 0.707107 7.99265 5.00012)" fill="#6E6E6E"/>
<rect width="1.4" height="6" transform="matrix(-0.707107 0.707107 0.707107 0.707107 7.99269 5.00012)" fill="#6E6E6E"/>
</svg>

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 341 B

View File

@@ -0,0 +1,4 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="6" height="1.4" transform="matrix(-0.707107 0.707107 0.707107 0.707107 7.99265 5.00012)" fill="#AFB1B3"/>
<rect width="1.4" height="6" transform="matrix(-0.707107 0.707107 0.707107 0.707107 7.99269 5.00012)" fill="#AFB1B3"/>
</svg>

After

Width:  |  Height:  |  Size: 341 B

View File

@@ -54,6 +54,7 @@ import com.intellij.ui.popup.util.PopupState;
import com.intellij.ui.scale.JBUIScale;
import com.intellij.util.Alarm;
import com.intellij.util.IJSwingUtilities;
import com.intellij.util.ObjectUtils;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.util.messages.MessageBusConnection;
import com.intellij.util.ui.*;
@@ -375,8 +376,8 @@ public final class EditorMarkupModelImpl extends MarkupModelImpl
}
private AnAction createAction(@NotNull String id, @NotNull Icon icon) {
return new DumbAwareAction(icon) {
final AnAction delegate = ActionManager.getInstance().getAction(id);
AnAction delegate = ActionManager.getInstance().getAction(id);
return new DumbAwareAction(delegate.getTemplatePresentation().getDescription(), null, icon) {
@Override
public void actionPerformed(@NotNull AnActionEvent e) {
IdeFocusManager focusManager = IdeFocusManager.getInstance(myEditor.getProject());
@@ -1913,7 +1914,7 @@ public final class EditorMarkupModelImpl extends MarkupModelImpl
}
};
label.setForeground(colorsScheme.getColor(ICON_TEXT_COLOR));
label.setForeground(new JBColor(() -> ObjectUtils.notNull(colorsScheme.getColor(ICON_TEXT_COLOR), ICON_TEXT_COLOR.getDefaultColor())));
label.setIconTextGap(JBUIScale.scale(1));
return label;

View File

@@ -94,7 +94,7 @@
<option name="ScrollBar.Mac.Transparent.hoverThumbBorderColor" value="00000080"/>
<option name="ActionButton.hoverBackground" value="dfdfdf"/>
<option name="ActionButton.pressedBackground" value="cfcfcf"/>
<option name="ActionButton.iconTextForeground" value="787878"/>
<option name="ActionButton.iconTextForeground" value="6e6e6e"/>
</colors>
<attributes>
@@ -1310,7 +1310,7 @@
<option name="ScrollBar.Mac.Transparent.hoverThumbBorderColor" value="2626268C"/>
<option name="ActionButton.hoverBackground" value="4c5052"/>
<option name="ActionButton.pressedBackground" value="5c6164"/>
<option name="ActionButton.iconTextForeground" value="8c8c8c"/>
<option name="ActionButton.iconTextForeground" value="bbbbbb"/>
</colors>
<attributes>
<option name="ANNOTATION_ATTRIBUTE_NAME_ATTRIBUTES">

View File

@@ -84,6 +84,7 @@
<option name="ScrollBar.Mac.Transparent.hoverTrackColor" value="E6E6E65A"/>
<option name="ScrollBar.Mac.Transparent.hoverThumbColor" value="FFFFFFBE"/>
<option name="ScrollBar.Mac.Transparent.hoverThumbBorderColor" value="000000"/>
<option name="ActionButton.iconTextForeground" value="FFFFFF"/>
</colors>
<attributes>
<option name="ANNOTATION_ATTRIBUTE_NAME_ATTRIBUTES">