Dark icons option, other UI changes
12
LICENSE.md
|
@ -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
|
||||||
|
|
BIN
TileMolester.jar
|
@ -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/ .
|
|
@ -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>
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
Before Width: | Height: | Size: 835 B |
Before Width: | Height: | Size: 253 B |
Before Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 643 B |
Before Width: | Height: | Size: 674 B |
Before Width: | Height: | Size: 249 B |
Before Width: | Height: | Size: 635 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 473 B |
Before Width: | Height: | Size: 816 B |
Before Width: | Height: | Size: 732 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 795 B |
Before Width: | Height: | Size: 665 B |
Before Width: | Height: | Size: 667 B |
Before Width: | Height: | Size: 650 B |
Before Width: | Height: | Size: 625 B |
Before Width: | Height: | Size: 797 B |
Before Width: | Height: | Size: 130 B |
Before Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 652 B |
Before Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 772 B |
Before Width: | Height: | Size: 802 B |
Before Width: | Height: | Size: 804 B |
Before Width: | Height: | Size: 779 B |
Before Width: | Height: | Size: 132 B |
Before Width: | Height: | Size: 429 B |
Before Width: | Height: | Size: 484 B |
Before Width: | Height: | Size: 477 B |
BIN
src/tm/icons/dark (copia)/Add24.png
Normal file
After Width: | Height: | Size: 993 B |
BIN
src/tm/icons/dark (copia)/Back24.png
Normal file
After Width: | Height: | Size: 982 B |
BIN
src/tm/icons/dark (copia)/Bookmarks24.png
Normal file
After Width: | Height: | Size: 979 B |
BIN
src/tm/icons/dark (copia)/Brush24.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/tm/icons/dark (copia)/ColorReplacer24.png
Executable file
After Width: | Height: | Size: 557 B |
BIN
src/tm/icons/dark (copia)/Copy24.png
Normal file
After Width: | Height: | Size: 970 B |
BIN
src/tm/icons/dark (copia)/Cut24.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/tm/icons/dark (copia)/DecHeight24.png
Executable file
After Width: | Height: | Size: 425 B |
BIN
src/tm/icons/dark (copia)/DecPalIndex24.png
Normal file
After Width: | Height: | Size: 993 B |
BIN
src/tm/icons/dark (copia)/DecWidth24.png
Executable file
After Width: | Height: | Size: 401 B |
BIN
src/tm/icons/dark (copia)/Dropper24.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/tm/icons/dark (copia)/FastForward24.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
src/tm/icons/dark (copia)/Fill24.png
Executable file
After Width: | Height: | Size: 585 B |
BIN
src/tm/icons/dark (copia)/Flip24.png
Executable file
After Width: | Height: | Size: 489 B |
BIN
src/tm/icons/dark (copia)/Forward24.png
Normal file
After Width: | Height: | Size: 980 B |
BIN
src/tm/icons/dark (copia)/Home24.png
Normal file
After Width: | Height: | Size: 1,016 B |
BIN
src/tm/icons/dark (copia)/Import24.png
Executable file
After Width: | Height: | Size: 537 B |
BIN
src/tm/icons/dark (copia)/IncHeight24.png
Executable file
After Width: | Height: | Size: 434 B |
BIN
src/tm/icons/dark (copia)/IncPalIndex24.png
Normal file
After Width: | Height: | Size: 1,004 B |
BIN
src/tm/icons/dark (copia)/IncWidth24.png
Executable file
After Width: | Height: | Size: 398 B |
BIN
src/tm/icons/dark (copia)/Line24.png
Executable file
After Width: | Height: | Size: 430 B |
BIN
src/tm/icons/dark (copia)/Minus24.png
Executable file
After Width: | Height: | Size: 364 B |
BIN
src/tm/icons/dark (copia)/Mirror24.png
Executable file
After Width: | Height: | Size: 527 B |
BIN
src/tm/icons/dark (copia)/Mover24.gif
Executable file
After Width: | Height: | Size: 109 B |
BIN
src/tm/icons/dark (copia)/New24.png
Normal file
After Width: | Height: | Size: 993 B |
BIN
src/tm/icons/dark (copia)/Open24.png
Normal file
After Width: | Height: | Size: 975 B |
BIN
src/tm/icons/dark (copia)/Paste24.png
Normal file
After Width: | Height: | Size: 967 B |
BIN
src/tm/icons/dark (copia)/Plus24.png
Executable file
After Width: | Height: | Size: 395 B |
BIN
src/tm/icons/dark (copia)/Redo24.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/tm/icons/dark (copia)/Rewind24.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
src/tm/icons/dark (copia)/RotateLeft24.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/tm/icons/dark (copia)/RotateRight24.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/tm/icons/dark (copia)/Save24.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
src/tm/icons/dark (copia)/SaveAll24.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/tm/icons/dark (copia)/SaveAs24.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/tm/icons/dark (copia)/Selection24.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
src/tm/icons/dark (copia)/ShiftDown24.png
Executable file
After Width: | Height: | Size: 544 B |
BIN
src/tm/icons/dark (copia)/ShiftLeft24.png
Executable file
After Width: | Height: | Size: 542 B |
BIN
src/tm/icons/dark (copia)/ShiftRight24.png
Executable file
After Width: | Height: | Size: 517 B |
BIN
src/tm/icons/dark (copia)/ShiftUp24.png
Executable file
After Width: | Height: | Size: 524 B |
BIN
src/tm/icons/dark (copia)/StepBack24.png
Normal file
After Width: | Height: | Size: 966 B |
BIN
src/tm/icons/dark (copia)/StepForward24.png
Normal file
After Width: | Height: | Size: 953 B |
BIN
src/tm/icons/dark (copia)/Swap24.png
Executable file
After Width: | Height: | Size: 376 B |
BIN
src/tm/icons/dark (copia)/Undo24.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/tm/icons/dark (copia)/Zoom24.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/tm/icons/dark/Add24.png
Normal file
After Width: | Height: | Size: 998 B |
BIN
src/tm/icons/dark/Back24.png
Normal file
After Width: | Height: | Size: 1,001 B |
BIN
src/tm/icons/dark/Bookmarks24.png
Normal file
After Width: | Height: | Size: 979 B |
BIN
src/tm/icons/dark/Brush24.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/tm/icons/dark/ColorReplacer24.png
Executable file
After Width: | Height: | Size: 555 B |
BIN
src/tm/icons/dark/Copy24.png
Normal file
After Width: | Height: | Size: 973 B |
BIN
src/tm/icons/dark/Cut24.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
src/tm/icons/dark/DecHeight24.png
Executable file
After Width: | Height: | Size: 416 B |
BIN
src/tm/icons/dark/DecPalIndex24.png
Normal file
After Width: | Height: | Size: 993 B |
BIN
src/tm/icons/dark/DecWidth24.png
Executable file
After Width: | Height: | Size: 402 B |
BIN
src/tm/icons/dark/Dropper24.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
src/tm/icons/dark/FastForward24.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
src/tm/icons/dark/Fill24.png
Executable file
After Width: | Height: | Size: 599 B |
BIN
src/tm/icons/dark/Flip24.png
Executable file
After Width: | Height: | Size: 489 B |
BIN
src/tm/icons/dark/Forward24.png
Normal file
After Width: | Height: | Size: 992 B |
BIN
src/tm/icons/dark/Home24.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
src/tm/icons/dark/Import24.png
Executable file
After Width: | Height: | Size: 537 B |
BIN
src/tm/icons/dark/IncHeight24.png
Executable file
After Width: | Height: | Size: 426 B |