All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
izumi.fundamentals.graphs.ui.SwingTheme.scala Maven / Gradle / Ivy
package izumi.fundamentals.graphs.ui
import java.awt.Color
import javax.swing.UIManager
object SwingTheme {
def setDark(): Unit = {
UIManager.put("control", new Color(128, 128, 128))
UIManager.put("info", new Color(128, 128, 128))
UIManager.put("nimbusBase", new Color(18, 30, 49))
UIManager.put("nimbusAlertYellow", new Color(248, 187, 0))
UIManager.put("nimbusDisabledText", new Color(128, 128, 128))
UIManager.put("nimbusFocus", new Color(115, 164, 209))
UIManager.put("nimbusGreen", new Color(176, 179, 50))
UIManager.put("nimbusInfoBlue", new Color(66, 139, 221))
UIManager.put("nimbusLightBackground", new Color(18, 30, 49))
UIManager.put("nimbusOrange", new Color(191, 98, 4))
UIManager.put("nimbusRed", new Color(169, 46, 34))
UIManager.put("nimbusSelectedText", new Color(255, 255, 255))
UIManager.put("nimbusSelectionBackground", new Color(104, 93, 156))
UIManager.put("text", new Color(230, 230, 230))
try
for (info <- javax.swing.UIManager.getInstalledLookAndFeels) {
if ("Nimbus" == info.getName) {
javax.swing.UIManager.setLookAndFeel(info.getClassName)
}
}
catch {
case t: Throwable =>
t.printStackTrace()
}
}
}