Skip to content

Commit e43467b

Browse files
authored
Merge pull request #7 from DUNNIK/develop
Version 1.7
2 parents 98e7922 + decbca5 commit e43467b

File tree

4 files changed

+23
-8
lines changed

4 files changed

+23
-8
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ Yo! This plugin works to diversify your shit code with any pictures.
88

99
![SonicProgressBar](https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/sonicExample.gif)
1010

11+
![MinecraftProgressBar](https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/minecraftExample.gif)
12+
13+
![SasukeProgressBar](https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/sasukeExample.gif)
14+
15+
![NarutoProgressBar](https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/narutoExample.gif)
16+
1117
![NianCatProgressBar](https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/nyanCatExample.gif)
1218

1319
This is the plugin for [JetBrains Products](https://www.jetbrains.com/) based on the Nyan Progress Bar by Dmitry Batkovitch and Mario Progress Bar by Kylian Meulin. It shows various Progress bars and allows you to customize the loader yourself in settings. (But the picture or gif should be 20 pixels height ...)

YoPlugin.jar

197 Bytes
Binary file not shown.

resources/META-INF/plugin.xml

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<idea-plugin>
22
<id>https://github.com/DUNNIK</id>
3-
<name>Yo</name>
4-
<version>1.5</version>
3+
<name>Yo Progress Bar</name>
4+
<version>1.7</version>
55
<idea-version since-build="193"/>
66
<vendor email="[email protected]" url="https://github.com/DUNNIK">DUNNIK</vendor>
77

88
<description><![CDATA[
9+
<p>
910
Yo! This plugin works to add great images to your drab code.<br/>
10-
<img src="https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/marioExample.gif"/><br/>
11-
<img src="https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/sonicExample.gif"/><br/>
12-
<img src="https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/minecraftExample.gif"/><br/>
13-
<img src="https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/sasukeExample.gif"/><br/>
14-
<img src="https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/narutoExample.gif"/><br/>
15-
<img src="https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/nyanCatExample.gif"/><br/>
11+
<img width="500" src="https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/marioExample.gif"/><br/>
12+
<img width="500" src="https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/sonicExample.gif"/><br/>
13+
<img width="500" src="https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/minecraftExample.gif"/><br/>
14+
<img width="500" src="https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/sasukeExample.gif"/><br/>
15+
<img width="500" src="https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/narutoExample.gif"/><br/>
16+
<img width="500" src="https://raw.githubusercontent.com/DUNNIK/YoPlugin/develop/ExamplesForReadme/nyanCatExample.gif"/><br/>
1617
<br/>
1718
And the fascinating thing. You can add your CUSTOM GIF or picture. (Unfortunately, now there is no image processing, so I advise you to add an icon of 20 pixels in height)
1819
<br/>
@@ -21,6 +22,7 @@
2122
Click <a href="https://github.com/DUNNIK/YoPlugin">Github</a> for more information.
2223
<br/>
2324
The plugin is based on <a href="https://plugins.jetbrains.com/plugin/14708-mario-progress-bar">Mario Progress Bar</a> and <a href="https://plugins.jetbrains.com/plugin/8575-nyan-progress-bar">Nyan Progress Bar</a>
25+
</p>
2426
]]></description>
2527

2628
<change-notes><![CDATA[
@@ -31,6 +33,8 @@
3133
<li>Version 1.3. Another description</li>
3234
<li>Version 1.4. Added links</li>
3335
<li>Version 1.5. Added new designs. Made our designs more beautiful</li>
36+
<li>Version 1.6. New name</li>
37+
<li>Version 1.7. Fix description</li>
3438
</ul>
3539
]]>
3640
</change-notes>

src/icons/YoIcons.java

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import org.jetbrains.annotations.NotNull;
55

66
import javax.swing.*;
7+
import java.awt.*;
78
import java.net.URL;
89

910
public class YoIcons {
@@ -40,6 +41,10 @@ public static String getNyanCatPath() {
4041
return NYAN_CAT_PATH;
4142
}
4243

44+
private static void resizeImage(ImageIcon image) {
45+
var height = 20;
46+
image.setImage(image.getImage().getScaledInstance(20, height, Image.SCALE_DEFAULT));
47+
}
4348
@NotNull
4449
@Contract("_ -> new")
4550
public static ImageIcon loadIcon(URL url) {

0 commit comments

Comments
 (0)