Skip to content

Commit

Permalink
DialogFonts refined fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
raeleus committed Mar 4, 2024
1 parent fc7cbd8 commit 88400cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/com/ray3k/skincomposer/dialog/DialogFonts.java
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,9 @@ public boolean touchDown(InputEvent event, float x, float y, int pointer, int bu
if (bf.imagePaths.length > 0) {
FileHandle file = new FileHandle(bf.imagePaths[0]);
if (!file.exists()) {
file = font.file.sibling(bf.fontFile.nameWithoutExtension() + ".png");
file = font.file.sibling(file.name());
}
System.out.println(font.file.name() + " " + bf.imagePaths[0] + " " + file.exists());
if (!file.exists()) {
bg.setColor(Color.BLACK);
} else if (Utils.brightness(Utils.averageEdgeColor(file)) < .5f) {
Expand Down

0 comments on commit 88400cc

Please sign in to comment.