Skip to content

Commit 87ef703

Browse files
committed
minor changes
1 parent 9272131 commit 87ef703

File tree

9 files changed

+23
-73
lines changed

9 files changed

+23
-73
lines changed

packaging/macos-packr/make_full_bundle.sh

Lines changed: 0 additions & 61 deletions
This file was deleted.

packaging/macos/create_full_bundle_and_dmg.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ rm -rf $App/Contents/MacOS/ExifTool/t $App/Contents/MacOS/ExifTool/html $App/Con
4242

4343

4444

45-
printf "Create the 145MB (full) dmg\n\n"
45+
printf "Create the 150MB (full) dmg\n\n"
4646
mkdir -p tmp/dmg
4747
# 125MB dmg
48-
dd if=/dev/zero of=tmp/jExifToolGUI.dmg bs=1M count=145
48+
dd if=/dev/zero of=tmp/jExifToolGUI.dmg bs=1M count=150
4949

5050
/sbin/mkfs.hfsplus -v "jExifToolGUI-x86_64 $Version" tmp/jExifToolGUI.dmg
5151

src/main/java/org/hvdw/jexiftoolgui/Application.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package org.hvdw.jexiftoolgui;
22

3-
import ch.qos.logback.classic.Level;
43
import org.hvdw.jexiftoolgui.controllers.SingletonEnum;
54
import org.hvdw.jexiftoolgui.facades.IPreferencesFacade;
5+
import org.slf4j.Logger;
66
import org.slf4j.LoggerFactory;
77

88
import javax.swing.*;
@@ -30,11 +30,7 @@ public static void main(String[] args) {
3030

3131
// Doesn't work but leave in
3232
System.out.println(SingletonEnum.INSTANCE);
33-
34-
/*String logLevel = prefs.getByKey(LOG_LEVEL, "Info");
35-
ch.qos.logback.classic.Logger root = (ch.qos.logback.classic.Logger) LoggerFactory.getLogger(ch.qos.logback.classic.Logger.ROOT_LOGGER_NAME);
36-
Level level = Level.toLevel(logLevel.toUpperCase());
37-
root.setLevel(level); */
33+
3834
Utils.SetApplicationWideLogLevel();
3935
logger.info("Start application jExifToolGUI");
4036

src/main/java/org/hvdw/jexiftoolgui/ExiftoolDatabase.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,11 @@ public void DisplayDiagram() {
446446
frame.setIconImage(Utils.getFrameIcon());
447447
frame.setLocationByPlatform(true);
448448
frame.setDefaultLookAndFeelDecorated(true);
449+
try {
450+
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
451+
} catch (Exception weTried) {
452+
logger.error("Could not start GUI.", weTried);
453+
}
449454
Locale currentLocale = new Locale.Builder().setLocale(MyVariables.getCurrentLocale()).build();
450455
frame.applyComponentOrientation(ComponentOrientation.getOrientation(currentLocale));
451456

src/main/java/org/hvdw/jexiftoolgui/ProgramTexts.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ public class ProgramTexts {
66
*/
77
public static final String Author = "Harry van der Wolf";
88
public static final String ProjectWebSite = "http://hvdwolf.github.io/jExifToolGUI";
9-
public static final String Version = "1.11.1";
9+
public static final String Version = "2.0.0-beta2";
1010
public static final String HTML = "<html><body style='width: %1spx'>%1s";
11-
public static final String downloadInstallET = "I will now open the ExifTool website in your browser and then close jExifToolGUI.<br>"
11+
public static final String downloadInstallET = "The program will now open the ExifTool website in your browser and then the program will close itself.<br>"
1212
+"After having downloaded and installed ExifTool you can reopen jExifToolGUI.<br><br>If ExifTool is in your PATH, jExifToolGUI will simply continue.<br><br>"
1313
+"If ExifTool is NOT in your PATH, you need to specify the location where you installed ExifTool.";
1414
public static final String CreateArgsMetaDataUiText = "Which metadata from your selected image(s) do you want to add to your args file(s)?";

src/main/java/org/hvdw/jexiftoolgui/Utils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ public static boolean containsIndices(int[] selectedIndices) {
121121
static public void SetLoggingLevel(Class usedClass) {
122122
String logLevel = prefs.getByKey(LOG_LEVEL, "Info");
123123
ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger) getLogger(usedClass);
124+
//Logger logger = getLogger(usedClass);
124125
// hardcode in case of debugging/troubleshooting
125126
//logLevel = "Trace";
126127

src/main/java/org/hvdw/jexiftoolgui/mainScreen.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646

4747

4848
public class mainScreen {
49-
//private static final ch.qos.logback.classic.Logger logger = (ch.qos.logback.classic.Logger) LoggerFactory.getLogger(mainScreen.class);
50-
private final static Logger logger = (Logger) LoggerFactory.getLogger(mainScreen.class);
49+
private static final Logger logger = (Logger) LoggerFactory.getLogger(mainScreen.class);
5150

5251
private IPreferencesFacade prefs = IPreferencesFacade.defaultInstance;
5352
//private JFrame rootFrame;

src/main/java/org/hvdw/jexiftoolgui/view/CompareImagesWindow.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ public static void Initialize(List<String[]> tableMetadata, List<String[]> allMe
3737

3838
// Define the frame, the ScrollPanel with the table, the buttonpanel with the close button
3939
JFrame frame = new JFrame();
40+
try {
41+
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
42+
} catch (Exception weTried) {
43+
logger.error("Could not start GUI.", weTried);
44+
}
4045
Locale currentLocale = new Locale.Builder().setLocale(MyVariables.getCurrentLocale()).build();
4146
frame.applyComponentOrientation(ComponentOrientation.getOrientation(currentLocale));
4247
frame.setTitle(ResourceBundle.getBundle("translations/program_strings").getString("cmpimg.comparetitle"));

src/main/java/org/hvdw/jexiftoolgui/view/JavaImageViewer.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ public void ViewImageInFullscreenFrame (boolean isSlideshow) {
169169
JPanel imageViewPane = new JPanel();
170170
frame.setContentPane(imageViewPane);
171171
frame.setIconImage(Utils.getFrameIcon());
172+
try {
173+
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
174+
} catch (Exception weTried) {
175+
logger.error("Could not set getSystemLookAndFeelClassName.", weTried);
176+
}
172177

173178
/* Get screen size */
174179
int[] resolution = Utils.getResolution();

0 commit comments

Comments
 (0)