Dansoftowner / jSystemThemeDetector

Java library for detecting that the (desktop) operating system uses dark UI theme or not

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to load class "org.slf4j.impl.StaticLoggerBinder".

EchoEllet opened this issue · comments

commented

I get these error messages:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

All that I do with this library

val detector = OsThemeDetector.getDetector()
val isDarkThemeUsed = detector.isDark
JOptionPane.showMessageDialog(null, if (isDarkThemeUsed) "You are using dark theme" else "You are using light theme")

Look at #11.