-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: theme system #5619
base: nextgen
Are you sure you want to change the base?
feat: theme system #5619
Conversation
please explain in more detail what the "theme system" is, it already exists, doesn't it? |
src/main/kotlin/net/ccbluex/liquidbounce/integration/theme/ThemeManager.kt
Fixed
Show fixed
Hide fixed
value = mutableListOf( | ||
*theme.components | ||
.filter { factory -> factory.default } | ||
.map { factory -> factory.new(theme) }.toTypedArray() | ||
) |
Check warning
Code scanning / detekt
In most cases using a spread operator causes a full copy of the array to be created before calling a method. This may result in a performance penalty. Warning
} | ||
|
||
val matStack = MatrixStack() | ||
override fun render(context: DrawContext, delta: Float) { |
Check warning
Code scanning / detekt
One method should have one responsibility. Long methods tend to handle many things at once. Prefer smaller methods to make them easier to understand. Warning
.../net/ccbluex/liquidbounce/integration/theme/themes/liquidbounce/routes/EmptyDrawableRoute.kt
Fixed
Show fixed
Hide fixed
* | ||
* @param jsonObject JsonObject | ||
*/ | ||
private fun configureConfigurable(configurable: Configurable, jsonObject: JsonObject) { |
Check warning
Code scanning / detekt
One method should have one responsibility. Long methods tend to handle many things at once. Prefer smaller methods to make them easier to understand. Warning
return@onChange enabled | ||
} | ||
val inbuiltThemes = arrayOf(LiquidBounceTheme) | ||
var themes = mutableListOf<Theme>(*inbuiltThemes) |
Check warning
Code scanning / detekt
In most cases using a spread operator causes a full copy of the array to be created before calling a method. This may result in a performance penalty. Warning
FontManager.queueFolder(folder.resolve("assets")) | ||
} | ||
|
||
override fun init() { } |
Check warning
Code scanning / detekt
Empty block of code detected. As they serve no purpose they should be removed. Warning
No description provided.