diff options
author | nextdaydelivery <12willettsh@gmail.com> | 2022-02-19 15:10:17 +0000 |
---|---|---|
committer | nextdaydelivery <12willettsh@gmail.com> | 2022-02-19 15:10:17 +0000 |
commit | 8dbf57afea03a33b5648e77823e4948abdf3ba4f (patch) | |
tree | 090513b61908d3b74caf99629c44fc5fb50f48f2 /src/main/java/io/polyfrost/oneconfig/themes | |
parent | 3000dd17a482843ccf320d594d2dd39eb59145e8 (diff) | |
download | OneConfig-8dbf57afea03a33b5648e77823e4948abdf3ba4f.tar.gz OneConfig-8dbf57afea03a33b5648e77823e4948abdf3ba4f.tar.bz2 OneConfig-8dbf57afea03a33b5648e77823e4948abdf3ba4f.zip |
finish theme stuff, do some window stuff and add colored text
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/themes')
3 files changed, 10 insertions, 6 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/themes/TextureManager.java b/src/main/java/io/polyfrost/oneconfig/themes/TextureManager.java index 6406e1b..f436a7b 100644 --- a/src/main/java/io/polyfrost/oneconfig/themes/TextureManager.java +++ b/src/main/java/io/polyfrost/oneconfig/themes/TextureManager.java @@ -54,7 +54,11 @@ public class TextureManager { } } } else { - + if(element.ordinal() < 29) { + if(img.getHeight() != 144 || img.getWidth() != 758) { + themeLog.warn("found badly sized button texture " + element.location); + } + } } } } diff --git a/src/main/java/io/polyfrost/oneconfig/themes/Theme.java b/src/main/java/io/polyfrost/oneconfig/themes/Theme.java index 9e67799..4647397 100644 --- a/src/main/java/io/polyfrost/oneconfig/themes/Theme.java +++ b/src/main/java/io/polyfrost/oneconfig/themes/Theme.java @@ -90,7 +90,7 @@ public class Theme extends FileResourcePack { TrueTypeFont boldFontTemp; try { boldFontTemp = new TrueTypeFont(Font.createFont(Font.TRUETYPE_FONT, getResource("textures/fonts/font_bold.ttf")).deriveFont(30f), true); - normalFontTemp = new TrueTypeFont(Font.createFont(Font.TRUETYPE_FONT, getResource("textures/fonts/font.ttf")).deriveFont(12f), true); + normalFontTemp = new TrueTypeFont(Font.createFont(Font.TRUETYPE_FONT, getResource("textures/fonts/font.ttf")).deriveFont(18f), true); } catch (FontFormatException e) { Themes.themeLog.error("failed to derive fonts, is theme invalid?",e); e.printStackTrace(); diff --git a/src/main/java/io/polyfrost/oneconfig/themes/ThemeElement.java b/src/main/java/io/polyfrost/oneconfig/themes/ThemeElement.java index 818bfdf..30451d7 100644 --- a/src/main/java/io/polyfrost/oneconfig/themes/ThemeElement.java +++ b/src/main/java/io/polyfrost/oneconfig/themes/ThemeElement.java @@ -17,7 +17,7 @@ public enum ThemeElement { HOME("textures/smallicons/home.png", 32), MAGNIFY("textures/smallicons/magnify.png", 32), MINIMIZE("textures/smallicons/minimize.png", 32), - SEARCH("textures/smallicons/backarrow.png", 32), + SEARCH("textures/smallicons/search.png", 32), ALL_MODS("textures/mod/allmods.png", 32), HUD_MODS("textures/mod/hudmods.png", 32), @@ -31,9 +31,9 @@ public enum ThemeElement { LOGO("textures/logos/logo.png", 128), SMALL_LOGO("textures/logos/logo_small.png", 64), - BUTTON_OFF("textures/window/button_off.png", 512), - BUTTON_HOVER("textures/window/button_hover.png", 512), - BUTTON_CLICK("textures/window/button_click.png", 512), + BUTTON_OFF("textures/window/button_off.png", 758), + BUTTON_HOVER("textures/window/button_hover.png", 758), + BUTTON_CLICK("textures/window/button_click.png", 758), BACKGROUND("textures/window/background.png", 1600); |