From 887556f4a1d2e1050ac65df28df6057977cda6a1 Mon Sep 17 00:00:00 2001 From: Sogomn Date: Thu, 18 Feb 2016 00:14:12 +0100 Subject: [PATCH] Small changes The images now scale at runtime --- Ratty/res/gui_icon.png | Bin 168 -> 176 bytes Ratty/res/menu_icons.png | Bin 981 -> 740 bytes Ratty/res/menu_icons_tree.png | Bin 670 -> 522 bytes Ratty/src/de/sogomn/rat/Ratty.java | 2 +- .../src/de/sogomn/rat/server/gui/FileTree.java | 5 +++-- .../src/de/sogomn/rat/server/gui/RattyGui.java | 5 +++-- 6 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Ratty/res/gui_icon.png b/Ratty/res/gui_icon.png index dc18e52b943b8fe3c82fad2e56bb507d687640c3..edecc98964416c14598eda4fad5a0186060fcaec 100644 GIT binary patch delta 148 zcmV;F0BirK0k8p(B!72FL_t(|+GAkA0aO(g|AR0CIRK>b|Mu-*Ot~RVGs!aqYyeO* zSq8xTA7jG{#w3LYvPN`F&=6$J>vGIdFj0oU3_#b6YzRREaA}5N`WTS4MI4M_nvnTK z1tdr@h(0>K35=1&h>Av-Ms!Rc18^Bac5)_^i~;A1<<1NS`wb!h0000bf747b9ymiNG63fP7#m(N zCMi6SHKJpJh9GNRmt&5Ci82Ic0J>&mLkJpxOEV19$AHFt|G^lh37Jn+K!Oy5=%dq{ uz!+JKsAz;~M91_o0GAkFiiTWfL&11+q@r?3`mYOtn93O04qW44s2`=U*ROdEZJcu zGm}mBl68dv_cr_S|7B(}Nw#UGzowbbX4@E(-nZ!In+89dO_YUh?w{jc!knL7ysAuc z&-3Myhvfj6#>V{r{bTI+*q(#ECT(6@Z@F&Rr z#)#g2FRaA^(1gIC9$=1Ft5qv>eR5?D1@Lk_2mrMQa6L}u03gzdry%qRfe-+gSD*)= zFjD7$_xS;8y8r+^AP9hqe@PB-_H?u8n4cp$c_JeK$#J$(zzM%R+iwBD9FY@%_FQ|C z6v&L>5&&EXq^bmaRgXRdNvR0|+n5M)#pqFDhti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xWt=50H85|*nv~`p9+99@#+u&XapcE zJxc+|O}rWe0Gt8B6Um*drv{*vc=c}r0Gz)GwG&?(z$)=>_Xz-~ba`r3a>B?3kT%We z_0{(C-$+d~cN_rB4ZwS{)hh0Qi=mR0!?Fb1e#K3jzRh1+cyhO@**Zd}_0< z`X?U%P5@pdDAqLd8rSPQ0N@Sa^#)s6CO_K^0FAUDe)s#LC~dyw!kT|D0N?}=CdT@Q z7&H!D?o!-sHlx8UqnD2R_H;EGu>>DJE=Qwyg&Y7D4nPr>oY;QShw(9hFz#0ki@D04M{ { @@ -37,7 +38,7 @@ public final class FileTree extends AbstractListenerContainer { private static final String ROOT_NAME = ""; private static final Dimension DEFAULT_SIZE = new Dimension(500, 500); - private static final BufferedImage[] MENU_ICONS = new SpriteSheet("/menu_icons_tree.png", 32, 32).getSprites(); + private static final BufferedImage[] MENU_ICONS = new SpriteSheet(ImageUtils.scaleImage(ImageUtils.loadImage("/menu_icons_tree.png"), 2), 16 * 2, 16 * 2).getSprites(); public static final String REQUEST = LANGUAGE.getString("action.request_files"); public static final String DOWNLOAD = LANGUAGE.getString("action.download"); diff --git a/Ratty/src/de/sogomn/rat/server/gui/RattyGui.java b/Ratty/src/de/sogomn/rat/server/gui/RattyGui.java index 9ea0845..b8d2cf6 100644 --- a/Ratty/src/de/sogomn/rat/server/gui/RattyGui.java +++ b/Ratty/src/de/sogomn/rat/server/gui/RattyGui.java @@ -53,8 +53,9 @@ final class RattyGui extends AbstractListenerContainer { private static final BufferedImage GUI_ICON_SMALL = ImageUtils.loadImage("/gui_icon.png"); private static final BufferedImage GUI_ICON_MEDIUM = ImageUtils.scaleImage(ImageUtils.loadImage("/gui_icon.png"), 64, 64); private static final BufferedImage GUI_ICON_LARGE = ImageUtils.scaleImage(ImageUtils.loadImage("/gui_icon.png"), 128, 128); - private static final List GUI_ICONS = Arrays.asList(GUI_ICON_SMALL, GUI_ICON_MEDIUM, GUI_ICON_LARGE); - private static final BufferedImage[] MENU_ICONS = new SpriteSheet("/menu_icons.png", 32, 32).getSprites(); + private static final BufferedImage GUI_ICON_HUGE = ImageUtils.scaleImage(ImageUtils.loadImage("/gui_icon.png"), 128, 128); + private static final List GUI_ICONS = Arrays.asList(GUI_ICON_SMALL, GUI_ICON_MEDIUM, GUI_ICON_LARGE, GUI_ICON_HUGE); + private static final BufferedImage[] MENU_ICONS = new SpriteSheet(ImageUtils.scaleImage(ImageUtils.loadImage("/menu_icons.png"), 2), 16 * 2, 16 * 2).getSprites(); public static final String POPUP = LANGUAGE.getString("action.popup"); public static final String SCREENSHOT = LANGUAGE.getString("action.screenshot");