Other UI changes

This commit is contained in:
Iván Delgado 2021-02-08 21:25:40 +01:00
parent 00f562a90d
commit d84adeb6ee
3 changed files with 17 additions and 12 deletions

View file

@ -1,13 +1,12 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE settings SYSTEM "settings.dtd"> <!DOCTYPE settings SYSTEM "settings.dtd">
<settings> <settings>
<property key="locale" value="en_US"/>
<property key="viewStatusBar" value="true"/> <property key="viewStatusBar" value="true"/>
<property key="viewToolBar" value="true"/> <property key="viewToolBar" value="true"/>
<property key="maxRecentFiles" value="10"/> <property key="maxRecentFiles" value="10"/>
<property key="MenuBG" value="#1b2224"/> <property key="MenuBG" value="#f0f0f0"/>
<property key="WindowBG" value="#141a1b"/> <property key="WindowBG" value="#d2d2d2"/>
<property key="AsideBG" value="#1b2224"/> <property key="AsideBG" value="#f0f0f0"/>
<property key="FrameBG" value="#222b2e"/> <property key="FrameBG" value="#b5b5b5"/>
<property key="DarkIcons" value="false"/> <property key="DarkIcons" value="true"/>
</settings> </settings>

View file

@ -781,6 +781,7 @@ public class TMUI extends JFrame {
**/ **/
public void loadSettings() { public void loadSettings() {
boolean loadedLocale = false;
Document doc = null; Document doc = null;
try { try {
doc = XMLParser.parse(settingsFile); doc = XMLParser.parse(settingsFile);
@ -808,6 +809,7 @@ public class TMUI extends JFrame {
String language = st.nextToken(); String language = st.nextToken();
String country = st.nextToken(); String country = st.nextToken();
locale = new Locale(language, country); locale = new Locale(language, country);
loadedLocale = true;
} }
if (key.equals("viewStatusBar")) { if (key.equals("viewStatusBar")) {
viewStatusBar = value.equals("true"); viewStatusBar = value.equals("true");
@ -842,8 +844,8 @@ public class TMUI extends JFrame {
else if (key.equals("DarkIcons")) { else if (key.equals("DarkIcons")) {
DarkIcons = value.equals("true"); DarkIcons = value.equals("true");
} }
} }
if(!loadedLocale) selectLanguage();
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View file

@ -192,6 +192,9 @@
<filefilter extensions="nds" tileformat="LN06" mode="2D"> <filefilter extensions="nds" tileformat="LN06" mode="2D">
<description>Nintendo DS (*.nds)</description> <description>Nintendo DS (*.nds)</description>
</filefilter> </filefilter>
<filefilter extensions="sch,cgx,bak" tileformat="CP02" mode="1D">
<description>Character File (*.sch, *.cgx)</description>
</filefilter>
</filefilters> </filefilters>
@ -217,10 +220,11 @@
<description>Tile Layer Pro palette (*.tpl)</description> <description>Tile Layer Pro palette (*.tpl)</description>
</palettefilter> </palettefilter>
<palettefilter extensions="pal" colorformat="RIFF" size="256" offset="24" endianness="big"> <palettefilter extensions="col,pal,bak" colorformat="CF00" size="256" offset="0">
<description>Windows Palette (*.pal)</description> <description>Raw palette file (*.col,*.pal)</description>
</palettefilter> </palettefilter>
</palettefilters> </palettefilters>
<filelisteners> <filelisteners>