Skip to content

Commit

Permalink
Fix JB review.
Browse files Browse the repository at this point in the history
  • Loading branch information
BigTows committed Dec 2, 2024
1 parent 7746b0c commit fe8767f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'org.bigtows'
version '2.1.4'
version '2.1.5'

sourceCompatibility = 21

Expand Down Expand Up @@ -70,7 +70,7 @@ intellijPlatform {
<p>Created by: Alexander Chapchuk @BigTows<p>
"""
changeNotes = """
<h1>Release: 2.1.4</h1><br>
<h1>Release: 2.1.5</h1><br>
<ul>
<li>
new Idea core build support.
Expand Down
11 changes: 7 additions & 4 deletions src/main/java/org/bigtows/utils/PinNoteIcon.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.bigtows.utils;

import com.intellij.icons.AllIcons;
import com.intellij.util.SVGLoader;
import com.intellij.util.ImageLoader;
import com.intellij.util.ui.JBImageIcon;

import javax.swing.*;
Expand Down Expand Up @@ -59,9 +59,12 @@ public static Optional<Icon> getSvgIconFromResource(String resource, float scale
try {
return Optional.of(
new JBImageIcon(
SVGLoader.load(
Objects.requireNonNull(PinNoteIcon.class.getClassLoader().getResource(resource)),
scale
ImageLoader.scaleImage(
Objects.requireNonNull(ImageLoader.loadFromResource(
resource,
PinNoteIcon.class
)
), scale
)
)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ private BorderLayoutPanel createActionToolBar() {
group.add(new OpenSettings(), Constraints.LAST);
final ActionToolbar actionToolBar = ActionManager.getInstance().createActionToolbar("PinNoteToolbar", group, true);
var panel = JBUI.Panels.simplePanel(actionToolBar.getComponent());
actionToolBar.setTargetComponent(panel);
panel.setBorder(new BottomBorder(JBUI.CurrentTheme.ToolWindow.borderColor()));
return panel;
}
Expand Down

0 comments on commit fe8767f

Please sign in to comment.