diff --git a/theme/src/main/java/com/github/weisj/darklaf/theme/Theme.java b/theme/src/main/java/com/github/weisj/darklaf/theme/Theme.java index 7569efc3..2fd63e24 100644 --- a/theme/src/main/java/com/github/weisj/darklaf/theme/Theme.java +++ b/theme/src/main/java/com/github/weisj/darklaf/theme/Theme.java @@ -52,6 +52,10 @@ public abstract class Theme implements Comparable, Comparator { this.accentColorRule = accentColorRule != null ? accentColorRule : AccentColorRule.getDefault(); } + public static Theme baseThemeOf(final Theme theme) { + return theme.derive(FontSizeRule.getDefault(), AccentColorRule.getDefault()); + } + /** * Create a derived theme with the given display name. *