From be0c85633d56513614ffad84e6c51119813719bc Mon Sep 17 00:00:00 2001 From: creme332 <65414576+creme332@users.noreply.github.com> Date: Tue, 19 Dec 2023 17:24:39 +0400 Subject: [PATCH] fix missing properties file bug when compiling to jar --- .../java/com/github/creme332/themes/TizcTheme.java | 1 + .../themes/TizcTheme.properties | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) rename src/main/{java/com/github/creme332 => resources}/themes/TizcTheme.properties (61%) diff --git a/src/main/java/com/github/creme332/themes/TizcTheme.java b/src/main/java/com/github/creme332/themes/TizcTheme.java index b3252f2..38f376c 100644 --- a/src/main/java/com/github/creme332/themes/TizcTheme.java +++ b/src/main/java/com/github/creme332/themes/TizcTheme.java @@ -9,6 +9,7 @@ public class TizcTheme extends FlatDarkLaf { public static boolean setup() { installFonts(); + TizcTheme.registerCustomDefaultsSource("themes"); return setup(new TizcTheme()); } diff --git a/src/main/java/com/github/creme332/themes/TizcTheme.properties b/src/main/resources/themes/TizcTheme.properties similarity index 61% rename from src/main/java/com/github/creme332/themes/TizcTheme.properties rename to src/main/resources/themes/TizcTheme.properties index 54fdb0a..db2f6a1 100644 --- a/src/main/java/com/github/creme332/themes/TizcTheme.properties +++ b/src/main/resources/themes/TizcTheme.properties @@ -1,17 +1,19 @@ -defaultFont = 20 "Poppins Light", Arial +defaultFont = 20 "Poppins Light", "Poppins Black" @background = #111 @foreground = #ddd @accentColor = #f57900 +Button.borderColor = #fff + # https://www.formdev.com/flatlaf/components/radiobutton/ RadioButton.background = $Button.background RadioButton.foreground = $Button.foreground RadioButton.margin = $Button.margin -h00.font = +24 -h0.font = +18 -h1.font = +15 $semibold.font +h00.font = +24 "Poppins Regular" +h0.font = +18 "Poppins Regular" +h1.font = +18 "Poppins Black" h2.font = +6 $semibold.font h3.font = +5 $semibold.font -h4.font = bold +h4.font = bold \ No newline at end of file