Skip to content

Commit

Permalink
Merge pull request #8 from HarryDulaney/rework-fxweaver
Browse files Browse the repository at this point in the history
Fine tune dark mode
  • Loading branch information
HarryDulaney authored Jun 9, 2021
2 parents 2e2d345 + fae1869 commit 27267e3
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected AbstractImageConverter(File in, File out, String format) {


/**
* Handle trans bg boolean.
* Handle transparent background conversion.
*
* @param srcImage the src image
* @param imgFormat the img format
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
import static org.apache.commons.io.FilenameUtils.EXTENSION_SEPARATOR_STR;

/**
* {@code ConvertibleFactory} is an utility class for creating {@code Convertible} objects
* to be passed on to ConvertUtils for conversions.
* {@code ConvertibleFactory} is an utility class for creating {@code Convertible} objects.
*
* @author HGDIV
* @author Harry Dulaney
*/
public class ConvertibleFactory {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ImageConverter extends AbstractImageConverter {
*
* @param fileIn the in
* @param fileOut the out
* @param format the output format
* @param format the output format
*/
public ImageConverter(File fileIn, File fileOut, String format) {
super(fileIn, fileOut);
Expand All @@ -40,7 +40,7 @@ private boolean genericConversion() {
BufferedImage sourceImage = ImageIO.read(in);
if (sourceImage.getTransparency() != BufferedImage.OPAQUE) {
if ((FilenameUtils.getExtension(in.getName())).equals(DocType.GIF_ID) && !(format.equalsIgnoreCase(DocType.PNG_ID))) {
result = handleTransBg(sourceImage,format,out);
result = handleTransBg(sourceImage, format, out);

} else {
try {
Expand Down Expand Up @@ -79,11 +79,8 @@ private boolean genericConversion() {
@Override
public void convert() {


boolean succeeded = genericConversion();



if (succeeded) {
deleteSourceFile(true, in);
DialogHelper.showInfoAlert("Success! Your image named: " + in.getName() + " was converted to: " + out.getName() +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public PngConversions(File fileIn, File fileOut, String format) {

@Override
public void convert() {
// TODO: USE THE PNGDECODER to rework these methods
final long starttime = System.currentTimeMillis();
/* Handle PNG to JPG*/
if (format.equalsIgnoreCase(DocType.JPG_ID)) {
Expand Down
4 changes: 0 additions & 4 deletions src/main/resources/style/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,21 @@
@font-face {
font-family: TitilliumWeb;
src: url('fonts/TitilliumWeb-Italic.ttf');
font-style: italic;
}

@font-face {
font-family: TitilliumWeb;
src: url('fonts/TitilliumWeb-Bold.ttf');
font-weight: bold;
}

@font-face {
font-family: TitilliumWeb;
src: url('fonts/TitilliumWeb-Black.ttf');
font-stretch: expanded;
}

@font-face {
font-family: TitilliumWeb;
src: url('fonts/TitilliumWeb-Light.ttf');
font-style: light;
}

.root {
Expand Down
4 changes: 0 additions & 4 deletions src/main/resources/style/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,21 @@
@font-face {
font-family: TitilliumWeb;
src: url('fonts/TitilliumWeb-Italic.ttf');
font-style: italic;
}

@font-face {
font-family: TitilliumWeb;
src: url('fonts/TitilliumWeb-Bold.ttf');
font-weight: bold;
}

@font-face {
font-family: TitilliumWeb;
src: url('fonts/TitilliumWeb-Black.ttf');
font-stretch: expanded;
}

@font-face {
font-family: TitilliumWeb;
src: url('fonts/TitilliumWeb-Light.ttf');
font-style: light;
}

.root {
Expand Down

0 comments on commit 27267e3

Please sign in to comment.