mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
GUI, preferences: improved background images settings, moved it from images to theme tab (related to #10809);
This commit is contained in:
parent
64f3df035b
commit
2848ba69d4
2 changed files with 238 additions and 218 deletions
|
|
@ -4303,7 +4303,6 @@
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="panelCardImages" max="32767" attributes="0"/>
|
<Component id="panelCardImages" max="32767" attributes="0"/>
|
||||||
<Component id="panelCardStyles" max="32767" attributes="0"/>
|
<Component id="panelCardStyles" max="32767" attributes="0"/>
|
||||||
<Component id="panelBackgroundImages" alignment="0" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
@ -4316,9 +4315,7 @@
|
||||||
<Component id="panelCardStyles" min="-2" max="-2" attributes="0"/>
|
<Component id="panelCardStyles" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="panelCardImages" min="-2" max="-2" attributes="0"/>
|
<Component id="panelCardImages" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace pref="244" max="32767" attributes="0"/>
|
||||||
<Component id="panelBackgroundImages" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace pref="128" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
|
|
@ -4368,7 +4365,7 @@
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
<EmptySpace min="0" pref="122" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
|
@ -4528,115 +4525,6 @@
|
||||||
</Component>
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Container>
|
</Container>
|
||||||
<Container class="javax.swing.JPanel" name="panelBackgroundImages">
|
|
||||||
<Properties>
|
|
||||||
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
|
||||||
<Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
|
|
||||||
<TitledBorder title="Background images">
|
|
||||||
<Border PropertyName="innerBorder" info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo">
|
|
||||||
<EtchetBorder/>
|
|
||||||
</Border>
|
|
||||||
</TitledBorder>
|
|
||||||
</Border>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
|
|
||||||
<Layout>
|
|
||||||
<DimensionLayout dim="0">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" attributes="0">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<Component id="cbUseDefaultBackground" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
|
||||||
<Component id="txtBackgroundImagePath" max="32767" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="btnBrowseBackgroundImage" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<Component id="cbUseRandomBattleImage" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
|
||||||
<Component id="txtBattlefieldImagePath" max="32767" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="btnBrowseBattlefieldImage" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<Group type="102" attributes="0">
|
|
||||||
<Component id="cbUseDefaultBattleImage" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</DimensionLayout>
|
|
||||||
<DimensionLayout dim="1">
|
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<Component id="cbUseDefaultBattleImage" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
|
||||||
<Component id="cbUseDefaultBackground" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="txtBackgroundImagePath" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="btnBrowseBackgroundImage" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
|
||||||
<Component id="cbUseRandomBattleImage" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="txtBattlefieldImagePath" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="btnBrowseBattlefieldImage" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="32767" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</DimensionLayout>
|
|
||||||
</Layout>
|
|
||||||
<SubComponents>
|
|
||||||
<Component class="javax.swing.JCheckBox" name="cbUseDefaultBackground">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" value="Use default location for backgrounds"/>
|
|
||||||
</Properties>
|
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbUseDefaultBackgroundActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JTextField" name="txtBackgroundImagePath">
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JButton" name="btnBrowseBackgroundImage">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" value="Browse..."/>
|
|
||||||
</Properties>
|
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnBrowseBackgroundImageActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JTextField" name="txtBattlefieldImagePath">
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JButton" name="btnBrowseBattlefieldImage">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" value="Browse..."/>
|
|
||||||
</Properties>
|
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnBrowseBattlefieldImageActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JCheckBox" name="cbUseDefaultBattleImage">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" value="Use default battlefield image"/>
|
|
||||||
</Properties>
|
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbUseDefaultBattleImageActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JCheckBox" name="cbUseRandomBattleImage">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" value="Use random background"/>
|
|
||||||
</Properties>
|
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbUseRandomBattleImageActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</Component>
|
|
||||||
</SubComponents>
|
|
||||||
</Container>
|
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Container>
|
</Container>
|
||||||
<Container class="javax.swing.JPanel" name="tabSounds">
|
<Container class="javax.swing.JPanel" name="tabSounds">
|
||||||
|
|
@ -6142,8 +6030,8 @@
|
||||||
<Container class="javax.swing.JPanel" name="tabThemes">
|
<Container class="javax.swing.JPanel" name="tabThemes">
|
||||||
<Constraints>
|
<Constraints>
|
||||||
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
|
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
|
||||||
<JTabbedPaneConstraints tabName="GUI theme">
|
<JTabbedPaneConstraints tabName="GUI Theme">
|
||||||
<Property name="tabTitle" type="java.lang.String" value="GUI theme"/>
|
<Property name="tabTitle" type="java.lang.String" value="GUI Theme"/>
|
||||||
</JTabbedPaneConstraints>
|
</JTabbedPaneConstraints>
|
||||||
</Constraint>
|
</Constraint>
|
||||||
</Constraints>
|
</Constraints>
|
||||||
|
|
@ -6151,9 +6039,12 @@
|
||||||
<Layout>
|
<Layout>
|
||||||
<DimensionLayout dim="0">
|
<DimensionLayout dim="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="1" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="themesCategory" max="32767" attributes="0"/>
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Component id="themesCategory" alignment="1" max="32767" attributes="0"/>
|
||||||
|
<Component id="panelBackgroundImages" alignment="0" max="32767" attributes="0"/>
|
||||||
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
@ -6164,6 +6055,8 @@
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="themesCategory" min="-2" max="-2" attributes="0"/>
|
<Component id="themesCategory" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="panelBackgroundImages" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
|
|
@ -6215,7 +6108,7 @@
|
||||||
<Component class="javax.swing.JLabel" name="lbSelectLabel">
|
<Component class="javax.swing.JLabel" name="lbSelectLabel">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="horizontalAlignment" type="int" value="2"/>
|
<Property name="horizontalAlignment" type="int" value="2"/>
|
||||||
<Property name="text" type="java.lang.String" value="Color style:"/>
|
<Property name="text" type="java.lang.String" value="GUI color style:"/>
|
||||||
<Property name="toolTipText" type="java.lang.String" value=""/>
|
<Property name="toolTipText" type="java.lang.String" value=""/>
|
||||||
<Property name="horizontalTextPosition" type="int" value="10"/>
|
<Property name="horizontalTextPosition" type="int" value="10"/>
|
||||||
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
|
|
@ -6234,11 +6127,131 @@
|
||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JLabel" name="lbThemeHint">
|
<Component class="javax.swing.JLabel" name="lbThemeHint">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" value="WARNING, some color settings will be applied after app RESTART"/>
|
<Property name="text" type="java.lang.String" value="<html><b>WARNING</b>, some color settings and images will be applied after app RESTART"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Container>
|
</Container>
|
||||||
|
<Container class="javax.swing.JPanel" name="panelBackgroundImages">
|
||||||
|
<Properties>
|
||||||
|
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
||||||
|
<Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
|
||||||
|
<TitledBorder title="Background images">
|
||||||
|
<Border PropertyName="innerBorder" info="org.netbeans.modules.form.compat2.border.EtchedBorderInfo">
|
||||||
|
<EtchetBorder/>
|
||||||
|
</Border>
|
||||||
|
</TitledBorder>
|
||||||
|
</Border>
|
||||||
|
</Property>
|
||||||
|
</Properties>
|
||||||
|
|
||||||
|
<Layout>
|
||||||
|
<DimensionLayout dim="0">
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Group type="102" attributes="0">
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Group type="102" attributes="0">
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Component id="cbUseDefaultBackground" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Group type="102" alignment="0" attributes="0">
|
||||||
|
<Component id="cbUseDefaultBattleImage" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="cbUseRandomBattleImage" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<Group type="102" attributes="0">
|
||||||
|
<EmptySpace min="-2" pref="21" max="-2" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Group type="102" alignment="0" attributes="0">
|
||||||
|
<Component id="txtBattlefieldImagePath" max="32767" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="btnBrowseBattlefieldImage" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<Group type="102" alignment="0" attributes="0">
|
||||||
|
<Component id="txtBackgroundImagePath" max="32767" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="btnBrowseBackgroundImage" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
|
</DimensionLayout>
|
||||||
|
<DimensionLayout dim="1">
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Group type="102" alignment="0" attributes="0">
|
||||||
|
<Component id="cbUseDefaultBackground" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
|
<Component id="txtBackgroundImagePath" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="btnBrowseBackgroundImage" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
|
<Component id="cbUseDefaultBattleImage" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="cbUseRandomBattleImage" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
|
<Component id="txtBattlefieldImagePath" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="btnBrowseBattlefieldImage" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
|
</DimensionLayout>
|
||||||
|
</Layout>
|
||||||
|
<SubComponents>
|
||||||
|
<Component class="javax.swing.JCheckBox" name="cbUseDefaultBackground">
|
||||||
|
<Properties>
|
||||||
|
<Property name="text" type="java.lang.String" value="Use default app's background"/>
|
||||||
|
</Properties>
|
||||||
|
<Events>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbUseDefaultBackgroundActionPerformed"/>
|
||||||
|
</Events>
|
||||||
|
</Component>
|
||||||
|
<Component class="javax.swing.JTextField" name="txtBackgroundImagePath">
|
||||||
|
</Component>
|
||||||
|
<Component class="javax.swing.JButton" name="btnBrowseBackgroundImage">
|
||||||
|
<Properties>
|
||||||
|
<Property name="text" type="java.lang.String" value="Browse..."/>
|
||||||
|
</Properties>
|
||||||
|
<Events>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnBrowseBackgroundImageActionPerformed"/>
|
||||||
|
</Events>
|
||||||
|
</Component>
|
||||||
|
<Component class="javax.swing.JTextField" name="txtBattlefieldImagePath">
|
||||||
|
</Component>
|
||||||
|
<Component class="javax.swing.JButton" name="btnBrowseBattlefieldImage">
|
||||||
|
<Properties>
|
||||||
|
<Property name="text" type="java.lang.String" value="Browse..."/>
|
||||||
|
</Properties>
|
||||||
|
<Events>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnBrowseBattlefieldImageActionPerformed"/>
|
||||||
|
</Events>
|
||||||
|
</Component>
|
||||||
|
<Component class="javax.swing.JCheckBox" name="cbUseDefaultBattleImage">
|
||||||
|
<Properties>
|
||||||
|
<Property name="text" type="java.lang.String" value="Use default battlefield's background (from theme)"/>
|
||||||
|
</Properties>
|
||||||
|
<Events>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbUseDefaultBattleImageActionPerformed"/>
|
||||||
|
</Events>
|
||||||
|
</Component>
|
||||||
|
<Component class="javax.swing.JCheckBox" name="cbUseRandomBattleImage">
|
||||||
|
<Properties>
|
||||||
|
<Property name="text" type="java.lang.String" value="Use random background from path .\u005cxmage\u005cmage-client\u005cbackgrounds" containsInvalidXMLChars="true"/>
|
||||||
|
</Properties>
|
||||||
|
<Events>
|
||||||
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbUseRandomBattleImageActionPerformed"/>
|
||||||
|
</Events>
|
||||||
|
</Component>
|
||||||
|
</SubComponents>
|
||||||
|
</Container>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Container>
|
</Container>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
|
|
|
||||||
|
|
@ -556,14 +556,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
cbCardRenderShowReminderText = new javax.swing.JCheckBox();
|
cbCardRenderShowReminderText = new javax.swing.JCheckBox();
|
||||||
cbCardRenderHideSetSymbol = new javax.swing.JCheckBox();
|
cbCardRenderHideSetSymbol = new javax.swing.JCheckBox();
|
||||||
cbCardRenderShowAbilityTextOverlay = new javax.swing.JCheckBox();
|
cbCardRenderShowAbilityTextOverlay = new javax.swing.JCheckBox();
|
||||||
panelBackgroundImages = new javax.swing.JPanel();
|
|
||||||
cbUseDefaultBackground = new javax.swing.JCheckBox();
|
|
||||||
txtBackgroundImagePath = new javax.swing.JTextField();
|
|
||||||
btnBrowseBackgroundImage = new javax.swing.JButton();
|
|
||||||
txtBattlefieldImagePath = new javax.swing.JTextField();
|
|
||||||
btnBrowseBattlefieldImage = new javax.swing.JButton();
|
|
||||||
cbUseDefaultBattleImage = new javax.swing.JCheckBox();
|
|
||||||
cbUseRandomBattleImage = new javax.swing.JCheckBox();
|
|
||||||
tabSounds = new javax.swing.JPanel();
|
tabSounds = new javax.swing.JPanel();
|
||||||
sounds_clips = new javax.swing.JPanel();
|
sounds_clips = new javax.swing.JPanel();
|
||||||
cbEnableGameSounds = new javax.swing.JCheckBox();
|
cbEnableGameSounds = new javax.swing.JCheckBox();
|
||||||
|
|
@ -646,6 +638,14 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
lbSelectLabel = new javax.swing.JLabel();
|
lbSelectLabel = new javax.swing.JLabel();
|
||||||
cbTheme = new javax.swing.JComboBox<>();
|
cbTheme = new javax.swing.JComboBox<>();
|
||||||
lbThemeHint = new javax.swing.JLabel();
|
lbThemeHint = new javax.swing.JLabel();
|
||||||
|
panelBackgroundImages = new javax.swing.JPanel();
|
||||||
|
cbUseDefaultBackground = new javax.swing.JCheckBox();
|
||||||
|
txtBackgroundImagePath = new javax.swing.JTextField();
|
||||||
|
btnBrowseBackgroundImage = new javax.swing.JButton();
|
||||||
|
txtBattlefieldImagePath = new javax.swing.JTextField();
|
||||||
|
btnBrowseBattlefieldImage = new javax.swing.JButton();
|
||||||
|
cbUseDefaultBattleImage = new javax.swing.JCheckBox();
|
||||||
|
cbUseRandomBattleImage = new javax.swing.JCheckBox();
|
||||||
saveButton = new javax.swing.JButton();
|
saveButton = new javax.swing.JButton();
|
||||||
exitButton = new javax.swing.JButton();
|
exitButton = new javax.swing.JButton();
|
||||||
|
|
||||||
|
|
@ -1644,7 +1644,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
.add(cbNumberOfDownloadThreads, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 153, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
.add(cbNumberOfDownloadThreads, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 153, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
|
||||||
.add(labelHint1)))))
|
.add(labelHint1)))))
|
||||||
.add(0, 0, Short.MAX_VALUE)))
|
.add(0, 122, Short.MAX_VALUE)))
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
panelCardImagesLayout.setVerticalGroup(
|
panelCardImagesLayout.setVerticalGroup(
|
||||||
|
|
@ -1689,83 +1689,6 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
cbCardRenderShowAbilityTextOverlay.setText("Show ability text as overlay in big card view");
|
cbCardRenderShowAbilityTextOverlay.setText("Show ability text as overlay in big card view");
|
||||||
panelCardStyles.add(cbCardRenderShowAbilityTextOverlay);
|
panelCardStyles.add(cbCardRenderShowAbilityTextOverlay);
|
||||||
|
|
||||||
panelBackgroundImages.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Background images"));
|
|
||||||
|
|
||||||
cbUseDefaultBackground.setText("Use default location for backgrounds");
|
|
||||||
cbUseDefaultBackground.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbUseDefaultBackgroundActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
btnBrowseBackgroundImage.setText("Browse...");
|
|
||||||
btnBrowseBackgroundImage.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
btnBrowseBackgroundImageActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
btnBrowseBattlefieldImage.setText("Browse...");
|
|
||||||
btnBrowseBattlefieldImage.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
btnBrowseBattlefieldImageActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
cbUseDefaultBattleImage.setText("Use default battlefield image");
|
|
||||||
cbUseDefaultBattleImage.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbUseDefaultBattleImageActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
cbUseRandomBattleImage.setText("Use random background");
|
|
||||||
cbUseRandomBattleImage.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
cbUseRandomBattleImageActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
org.jdesktop.layout.GroupLayout panelBackgroundImagesLayout = new org.jdesktop.layout.GroupLayout(panelBackgroundImages);
|
|
||||||
panelBackgroundImages.setLayout(panelBackgroundImagesLayout);
|
|
||||||
panelBackgroundImagesLayout.setHorizontalGroup(
|
|
||||||
panelBackgroundImagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
|
||||||
.add(panelBackgroundImagesLayout.createSequentialGroup()
|
|
||||||
.add(panelBackgroundImagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
|
||||||
.add(panelBackgroundImagesLayout.createSequentialGroup()
|
|
||||||
.add(cbUseDefaultBackground)
|
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
|
|
||||||
.add(txtBackgroundImagePath)
|
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
|
||||||
.add(btnBrowseBackgroundImage))
|
|
||||||
.add(panelBackgroundImagesLayout.createSequentialGroup()
|
|
||||||
.add(cbUseRandomBattleImage)
|
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
|
|
||||||
.add(txtBattlefieldImagePath)
|
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
|
||||||
.add(btnBrowseBattlefieldImage))
|
|
||||||
.add(panelBackgroundImagesLayout.createSequentialGroup()
|
|
||||||
.add(cbUseDefaultBattleImage)
|
|
||||||
.add(0, 0, Short.MAX_VALUE)))
|
|
||||||
.addContainerGap())
|
|
||||||
);
|
|
||||||
panelBackgroundImagesLayout.setVerticalGroup(
|
|
||||||
panelBackgroundImagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
|
||||||
.add(panelBackgroundImagesLayout.createSequentialGroup()
|
|
||||||
.add(cbUseDefaultBattleImage)
|
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
|
||||||
.add(panelBackgroundImagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
|
|
||||||
.add(cbUseDefaultBackground)
|
|
||||||
.add(txtBackgroundImagePath, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.add(btnBrowseBackgroundImage))
|
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
|
||||||
.add(panelBackgroundImagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
|
|
||||||
.add(cbUseRandomBattleImage)
|
|
||||||
.add(txtBattlefieldImagePath, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.add(btnBrowseBattlefieldImage))
|
|
||||||
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
||||||
);
|
|
||||||
|
|
||||||
org.jdesktop.layout.GroupLayout tabImagesLayout = new org.jdesktop.layout.GroupLayout(tabImages);
|
org.jdesktop.layout.GroupLayout tabImagesLayout = new org.jdesktop.layout.GroupLayout(tabImages);
|
||||||
tabImages.setLayout(tabImagesLayout);
|
tabImages.setLayout(tabImagesLayout);
|
||||||
tabImagesLayout.setHorizontalGroup(
|
tabImagesLayout.setHorizontalGroup(
|
||||||
|
|
@ -1774,8 +1697,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.add(tabImagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
.add(tabImagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
.add(panelCardImages, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.add(panelCardImages, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.add(panelCardStyles, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.add(panelCardStyles, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
.add(panelBackgroundImages, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
tabImagesLayout.setVerticalGroup(
|
tabImagesLayout.setVerticalGroup(
|
||||||
|
|
@ -1785,9 +1707,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
.add(panelCardStyles, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
.add(panelCardStyles, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
||||||
.add(panelCardImages, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
.add(panelCardImages, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
.addContainerGap(244, Short.MAX_VALUE))
|
||||||
.add(panelBackgroundImages, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
|
||||||
.addContainerGap(128, Short.MAX_VALUE))
|
|
||||||
);
|
);
|
||||||
|
|
||||||
tabsPanel.addTab("Images", tabImages);
|
tabsPanel.addTab("Images", tabImages);
|
||||||
|
|
@ -2613,7 +2533,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
themesCategory.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Themes"));
|
themesCategory.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Themes"));
|
||||||
|
|
||||||
lbSelectLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
|
lbSelectLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
|
||||||
lbSelectLabel.setText("Color style:");
|
lbSelectLabel.setText("GUI color style:");
|
||||||
lbSelectLabel.setToolTipText("");
|
lbSelectLabel.setToolTipText("");
|
||||||
lbSelectLabel.setHorizontalTextPosition(javax.swing.SwingConstants.LEADING);
|
lbSelectLabel.setHorizontalTextPosition(javax.swing.SwingConstants.LEADING);
|
||||||
lbSelectLabel.setPreferredSize(new java.awt.Dimension(110, 16));
|
lbSelectLabel.setPreferredSize(new java.awt.Dimension(110, 16));
|
||||||
|
|
@ -2625,7 +2545,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
lbThemeHint.setText("WARNING, some color settings will be applied after app RESTART");
|
lbThemeHint.setText("<html><b>WARNING</b>, some color settings and images will be applied after app RESTART");
|
||||||
|
|
||||||
org.jdesktop.layout.GroupLayout themesCategoryLayout = new org.jdesktop.layout.GroupLayout(themesCategory);
|
org.jdesktop.layout.GroupLayout themesCategoryLayout = new org.jdesktop.layout.GroupLayout(themesCategory);
|
||||||
themesCategory.setLayout(themesCategoryLayout);
|
themesCategory.setLayout(themesCategoryLayout);
|
||||||
|
|
@ -2636,7 +2556,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
.add(lbSelectLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 96, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
.add(lbSelectLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 96, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
|
||||||
.add(themesCategoryLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
.add(themesCategoryLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
.add(lbThemeHint)
|
.add(lbThemeHint, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||||
.add(cbTheme, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 313, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
|
.add(cbTheme, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 313, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
|
|
@ -2648,16 +2568,101 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
.add(cbTheme, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
.add(cbTheme, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||||
.add(lbSelectLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
|
.add(lbSelectLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
|
||||||
.add(lbThemeHint))
|
.add(lbThemeHint, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
|
||||||
|
);
|
||||||
|
|
||||||
|
panelBackgroundImages.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Background images"));
|
||||||
|
|
||||||
|
cbUseDefaultBackground.setText("Use default app's background");
|
||||||
|
cbUseDefaultBackground.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
cbUseDefaultBackgroundActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
btnBrowseBackgroundImage.setText("Browse...");
|
||||||
|
btnBrowseBackgroundImage.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
btnBrowseBackgroundImageActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
btnBrowseBattlefieldImage.setText("Browse...");
|
||||||
|
btnBrowseBattlefieldImage.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
btnBrowseBattlefieldImageActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
cbUseDefaultBattleImage.setText("Use default battlefield's background (from theme)");
|
||||||
|
cbUseDefaultBattleImage.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
cbUseDefaultBattleImageActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
cbUseRandomBattleImage.setText("Use random background from path .\\xmage\\mage-client\\backgrounds");
|
||||||
|
cbUseRandomBattleImage.addActionListener(new java.awt.event.ActionListener() {
|
||||||
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
|
cbUseRandomBattleImageActionPerformed(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
org.jdesktop.layout.GroupLayout panelBackgroundImagesLayout = new org.jdesktop.layout.GroupLayout(panelBackgroundImages);
|
||||||
|
panelBackgroundImages.setLayout(panelBackgroundImagesLayout);
|
||||||
|
panelBackgroundImagesLayout.setHorizontalGroup(
|
||||||
|
panelBackgroundImagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
|
.add(panelBackgroundImagesLayout.createSequentialGroup()
|
||||||
|
.add(panelBackgroundImagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
|
.add(panelBackgroundImagesLayout.createSequentialGroup()
|
||||||
|
.add(panelBackgroundImagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
|
.add(cbUseDefaultBackground)
|
||||||
|
.add(panelBackgroundImagesLayout.createSequentialGroup()
|
||||||
|
.add(cbUseDefaultBattleImage)
|
||||||
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
||||||
|
.add(cbUseRandomBattleImage)))
|
||||||
|
.add(0, 0, Short.MAX_VALUE))
|
||||||
|
.add(panelBackgroundImagesLayout.createSequentialGroup()
|
||||||
|
.add(21, 21, 21)
|
||||||
|
.add(panelBackgroundImagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
|
.add(panelBackgroundImagesLayout.createSequentialGroup()
|
||||||
|
.add(txtBattlefieldImagePath)
|
||||||
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
||||||
|
.add(btnBrowseBattlefieldImage))
|
||||||
|
.add(panelBackgroundImagesLayout.createSequentialGroup()
|
||||||
|
.add(txtBackgroundImagePath)
|
||||||
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
||||||
|
.add(btnBrowseBackgroundImage)))))
|
||||||
|
.addContainerGap())
|
||||||
|
);
|
||||||
|
panelBackgroundImagesLayout.setVerticalGroup(
|
||||||
|
panelBackgroundImagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
|
.add(panelBackgroundImagesLayout.createSequentialGroup()
|
||||||
|
.add(cbUseDefaultBackground)
|
||||||
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
||||||
|
.add(panelBackgroundImagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
|
||||||
|
.add(txtBackgroundImagePath, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.add(btnBrowseBackgroundImage))
|
||||||
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
|
||||||
|
.add(panelBackgroundImagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
|
||||||
|
.add(cbUseDefaultBattleImage)
|
||||||
|
.add(cbUseRandomBattleImage))
|
||||||
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
|
||||||
|
.add(panelBackgroundImagesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
|
||||||
|
.add(txtBattlefieldImagePath, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.add(btnBrowseBattlefieldImage))
|
||||||
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
|
|
||||||
org.jdesktop.layout.GroupLayout tabThemesLayout = new org.jdesktop.layout.GroupLayout(tabThemes);
|
org.jdesktop.layout.GroupLayout tabThemesLayout = new org.jdesktop.layout.GroupLayout(tabThemes);
|
||||||
tabThemes.setLayout(tabThemesLayout);
|
tabThemes.setLayout(tabThemesLayout);
|
||||||
tabThemesLayout.setHorizontalGroup(
|
tabThemesLayout.setHorizontalGroup(
|
||||||
tabThemesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
tabThemesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
.add(org.jdesktop.layout.GroupLayout.TRAILING, tabThemesLayout.createSequentialGroup()
|
.add(tabThemesLayout.createSequentialGroup()
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.add(themesCategory, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.add(tabThemesLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
|
||||||
|
.add(org.jdesktop.layout.GroupLayout.TRAILING, themesCategory, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
|
.add(panelBackgroundImages, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
tabThemesLayout.setVerticalGroup(
|
tabThemesLayout.setVerticalGroup(
|
||||||
|
|
@ -2665,10 +2670,12 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
||||||
.add(tabThemesLayout.createSequentialGroup()
|
.add(tabThemesLayout.createSequentialGroup()
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.add(themesCategory, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
.add(themesCategory, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
|
||||||
|
.add(panelBackgroundImages, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
|
|
||||||
tabsPanel.addTab("GUI theme", tabThemes);
|
tabsPanel.addTab("GUI Theme", tabThemes);
|
||||||
|
|
||||||
saveButton.setLabel("Save");
|
saveButton.setLabel("Save");
|
||||||
saveButton.setMaximumSize(new java.awt.Dimension(100, 30));
|
saveButton.setMaximumSize(new java.awt.Dimension(100, 30));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue