|
10 | 10 | import com.ss.editor.util.EditorUtil; |
11 | 11 |
|
12 | 12 | import java.awt.*; |
| 13 | +import java.awt.image.BufferedImage; |
| 14 | +import java.io.IOException; |
13 | 15 | import java.io.Serializable; |
14 | 16 | import java.net.URI; |
15 | 17 | import java.nio.file.Files; |
|
20 | 22 | import java.util.prefs.BackingStoreException; |
21 | 23 | import java.util.prefs.Preferences; |
22 | 24 |
|
| 25 | +import javax.imageio.ImageIO; |
| 26 | + |
23 | 27 | import rlib.logging.Logger; |
24 | 28 | import rlib.logging.LoggerManager; |
25 | 29 |
|
@@ -291,17 +295,31 @@ public AppSettings getSettings() { |
291 | 295 | final GraphicsDevice device = graphicsEnvironment.getDefaultScreenDevice(); |
292 | 296 | final DisplayMode displayMode = device.getDisplayMode(); |
293 | 297 |
|
| 298 | + |
294 | 299 | final AppSettings settings = new AppSettings(true); |
295 | 300 | settings.setRenderer("CUSTOM" + EditorContext.class.getName()); |
296 | 301 | settings.setTitle(Config.TITLE + " " + Config.VERSION); |
297 | 302 | settings.setFullscreen(isFullscreen() && screenSize.isFullscreenSupported()); |
298 | 303 | settings.setResolution(screenSize.getWidth(), screenSize.getHeight()); |
299 | 304 | settings.setFrequency(displayMode.getRefreshRate()); |
300 | | - settings.setFrameRate(60); |
301 | 305 | settings.setGammaCorrection(isGammaCorrection()); |
302 | 306 | settings.setResizable(true); |
303 | 307 | // settings.putBoolean("GraphicsDebug", true); |
304 | 308 |
|
| 309 | + try { |
| 310 | + |
| 311 | + final BufferedImage[] icons = new BufferedImage[5]; |
| 312 | + icons[0] = ImageIO.read(EditorUtil.getInputStream("/ui/icons/app/SSEd256.png")); |
| 313 | + icons[1] = ImageIO.read(EditorUtil.getInputStream("/ui/icons/app/SSEd128.png")); |
| 314 | + icons[2] = ImageIO.read(EditorUtil.getInputStream("/ui/icons/app/SSEd64.png")); |
| 315 | + icons[3] = ImageIO.read(EditorUtil.getInputStream("/ui/icons/app/SSEd32.png")); |
| 316 | + icons[4] = ImageIO.read(EditorUtil.getInputStream("/ui/icons/app/SSEd16.png")); |
| 317 | + |
| 318 | + settings.setIcons(icons); |
| 319 | + } catch (final IOException e) { |
| 320 | + LOGGER.warning(e); |
| 321 | + } |
| 322 | + |
305 | 323 | return settings; |
306 | 324 | } |
307 | 325 |
|
|
0 commit comments