Dark icons option, other UI changes

This commit is contained in:
Iván Delgado 2021-02-08 21:04:18 +01:00
parent b98f21b30c
commit 71fe79120e
177 changed files with 369 additions and 186 deletions

View file

@ -1,9 +1,9 @@
Tile Molester # Tile Molester
Copyright (c) 2003-2005 Kent Hansen (SnowBro) - Original code - Copyright (c) 2003-2005 Kent Hansen (SnowBro) - Original code
Copyright (c) 2005 Central MiB - v0.15a - Copyright (c) 2005 Central MiB - v0.15a
Copyright (c) 2013 Lab313 - v0.17.2 - Copyright (c) 2013 Lab313 - v0.17.2
Copyright (c) 2014-2015 Mewster - v0.19 - Copyright (c) 2014-2015 Mewster - v0.19
Copyright (c) 2020 toruzz - v0.20 - Copyright (c) 2020 toruzz - v0.20
Tile Molester is free software; you can redistribute it and/or modify Tile Molester is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by

Binary file not shown.

View file

@ -1,4 +1,5 @@
rm -rf ./build/*
javac -sourcepath src -d ./build src/TileMolester.java javac -sourcepath src -d ./build src/TileMolester.java
cp -R src/tm/icons build/tm/ cp -R src/tm/icons/ build/tm/
cp src/tm/splash.gif build/tm/splash.gif cp src/tm/splash.gif build/tm/splash.gif
jar cvfm TileMolester.jar META-INF/MANIFEST.MF -C build/ . jar cvfm TileMolester.jar META-INF/MANIFEST.MF -C build/ .

View file

@ -8,7 +8,9 @@
<property key="recentFile" value="/home/ivan/Escritorio/Otros/Apps/TM200"/> <property key="recentFile" value="/home/ivan/Escritorio/Otros/Apps/TM200"/>
<property key="recentFile" value="/home/ivan/Escritorio/Otros/DK94/DK94.gb"/> <property key="recentFile" value="/home/ivan/Escritorio/Otros/DK94/DK94.gb"/>
<property key="lastPath" value="/home/ivan/Escritorio/Otros/DK94"/> <property key="lastPath" value="/home/ivan/Escritorio/Otros/DK94"/>
<property key="MenuBG" value="#ff0000"/> <property key="MenuBG" value="#1b2224"/>
<property key="WindowBG" value="#0000ff"/> <property key="WindowBG" value="#141a1b"/>
<property key="AsideBG" value="#00ff00"/> <property key="AsideBG" value="#1b2224"/>
<property key="FrameBG" value="#222b2e"/>
<property key="DarkIcons" value="false"/>
</settings> </settings>

View file

@ -61,38 +61,6 @@ public class TileMolester {
**/ **/
public static void main(String[] args) { public static void main(String[] args) {
Color[] sysColor = new Color[]{
SystemColor.activeCaption,
SystemColor.activeCaptionBorder,
SystemColor.activeCaptionText,
SystemColor.control,
SystemColor.controlDkShadow,
SystemColor.controlHighlight,
SystemColor.controlLtHighlight,
SystemColor.controlShadow,
SystemColor.controlText,
SystemColor.desktop,
SystemColor.inactiveCaption,
SystemColor.inactiveCaptionBorder,
SystemColor.inactiveCaptionText,
SystemColor.info,
SystemColor.infoText,
SystemColor.menu,
SystemColor.menuText,
SystemColor.scrollbar,
SystemColor.text,
SystemColor.textHighlight,
SystemColor.textHighlightText,
SystemColor.textInactiveText,
SystemColor.textText,
SystemColor.window,
SystemColor.windowBorder,
SystemColor.windowText};
for(Color c: sysColor){
System.out.println(c);
}
new TileMolester(); new TileMolester();
} }

View file

@ -39,6 +39,7 @@ import java.awt.event.*;
public class TMEditorCanvas extends TMTileCanvas implements MouseInputListener { public class TMEditorCanvas extends TMTileCanvas implements MouseInputListener {
// custom cursors // custom cursors
private Cursor zoomCursor; private Cursor zoomCursor;
private Cursor pickupCursor; private Cursor pickupCursor;
@ -70,7 +71,9 @@ public class TMEditorCanvas extends TMTileCanvas implements MouseInputListener {
private int blockWidth=1; private int blockWidth=1;
private int blockHeight=1; private int blockHeight=1;
private boolean rowInterleaved=false; private boolean rowInterleaved=false;
private boolean showBlockGrid=false; private boolean showBlockGrid=false;
boolean DarkIcons = TMUI.DarkIcons;
/** /**
* *
@ -91,7 +94,9 @@ public class TMEditorCanvas extends TMTileCanvas implements MouseInputListener {
zoomCursor = Toolkit.getDefaultToolkit().createCustomCursor(new ImageIcon(cl.getResource("tm/icons/ZoomCursor24.gif")).getImage(), new Point(8,7), "Zoom"); zoomCursor = Toolkit.getDefaultToolkit().createCustomCursor(new ImageIcon(cl.getResource("tm/icons/ZoomCursor24.gif")).getImage(), new Point(8,7), "Zoom");
pickupCursor = Toolkit.getDefaultToolkit().createCustomCursor(new ImageIcon(cl.getResource("tm/icons/DropperCursor24.gif")).getImage(), new Point(6,19), "Dropper"); pickupCursor = Toolkit.getDefaultToolkit().createCustomCursor(new ImageIcon(cl.getResource("tm/icons/DropperCursor24.gif")).getImage(), new Point(6,19), "Dropper");
brushCursor = Toolkit.getDefaultToolkit().createCustomCursor(new ImageIcon(cl.getResource("tm/icons/BrushCursor24.gif")).getImage(), new Point(5,19), "Brush"); brushCursor = Toolkit.getDefaultToolkit().createCustomCursor(new ImageIcon(cl.getResource("tm/icons/BrushCursor24.gif")).getImage(), new Point(5,19), "Brush");
fillCursor = Toolkit.getDefaultToolkit().createCustomCursor(new ImageIcon(cl.getResource("tm/icons/FillCursor24.gif")).getImage(), new Point(5,16), "Fill"); fillCursor = Toolkit.getDefaultToolkit().createCustomCursor(new ImageIcon(cl.getResource("tm/icons/FillCursor24.gif")).getImage(), new Point(5,16), "Fill");
} }
/** /**
@ -101,10 +106,11 @@ public class TMEditorCanvas extends TMTileCanvas implements MouseInputListener {
**/ **/
public void paintComponent(Graphics g) { public void paintComponent(Graphics g) {
super.paintComponent(g); super.paintComponent(g);
drawBlockGrid(g); drawBlockGrid(g);
drawIntermediateSelection(g); drawIntermediateSelection(g);
} }
/** /**
* *

Binary file not shown.

Before

Width:  |  Height:  |  Size: 835 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 643 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 674 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 635 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 473 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 816 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 732 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 795 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 667 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 650 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 625 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 797 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 772 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 802 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 804 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 779 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 429 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 484 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 477 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 993 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 982 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 557 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 970 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 993 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 980 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,016 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,004 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 993 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 975 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 966 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 953 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
src/tm/icons/dark/Add24.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 998 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,001 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 973 B

BIN
src/tm/icons/dark/Cut24.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
src/tm/icons/dark/DecHeight24.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 993 B

BIN
src/tm/icons/dark/DecWidth24.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

BIN
src/tm/icons/dark/Fill24.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 599 B

BIN
src/tm/icons/dark/Flip24.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 992 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

BIN
src/tm/icons/dark/Import24.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

BIN
src/tm/icons/dark/IncHeight24.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 B

Some files were not shown because too many files have changed in this diff Show more