mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Reduced jpg image for background (no visible effect but saves 115 Mb of memory used).
This commit is contained in:
parent
c23b065479
commit
e286f6ff72
5 changed files with 9 additions and 14 deletions
|
|
@ -34,7 +34,7 @@ public class ThemePluginImpl implements ThemePlugin {
|
|||
}
|
||||
|
||||
public String toString() {
|
||||
return "[Theme plugin, version 0.3]";
|
||||
return "[Theme plugin, version 0.4]";
|
||||
}
|
||||
|
||||
public void applyInGame(Map<String, JComponent> ui) {
|
||||
|
|
@ -74,7 +74,7 @@ public class ThemePluginImpl implements ThemePlugin {
|
|||
}
|
||||
|
||||
public JComponent updateTable(Map<String, JComponent> ui) {
|
||||
String filename = "/regret.jpg";
|
||||
String filename = "/background.png";
|
||||
try {
|
||||
InputStream is = this.getClass().getResourceAsStream(filename);
|
||||
|
||||
|
|
@ -86,7 +86,7 @@ public class ThemePluginImpl implements ThemePlugin {
|
|||
if (background == null)
|
||||
throw new FileNotFoundException("Couldn't find " + filename + " in resources.");
|
||||
|
||||
ImagePanel bgPanel = new ImagePanel(background, ImagePanel.TILED);
|
||||
ImagePanel bgPanel = new ImagePanel(background, ImagePanel.SCALED);
|
||||
|
||||
unsetOpaque(ui.get("jScrollPane1"));
|
||||
unsetOpaque(ui.get("jPanel1"));
|
||||
|
|
|
|||
BIN
Mage.Plugins/Mage.Theme.Plugin/src/main/resources/background.png
Normal file
BIN
Mage.Plugins/Mage.Theme.Plugin/src/main/resources/background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.8 MiB |
Loading…
Add table
Add a link
Reference in a new issue