We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8afe92 commit d1ae3d9Copy full SHA for d1ae3d9
src/main/scala/introprog/Swing.scala
@@ -55,9 +55,8 @@ object Swing {
55
private def setPlatformSpecificLookAndFeel(): Unit = {
56
import javax.swing.UIManager.setLookAndFeel
57
if (isOS("linux")) findLookAndFeel("gtk").foreach(setLookAndFeel)
58
- else if (isOS("win")) findLookAndFeel("win").foreach(setLookAndFeel)
+ else if (isOS("win") || isInProc("WSL")) findLookAndFeel("win").foreach(setLookAndFeel)
59
else if (isOS("mac")) findLookAndFeel("apple").foreach(setLookAndFeel)
60
- else if (isInProc("WSL")) findLookAndFeel("win").foreach(setLookAndFeel)
61
else javax.swing.UIManager.setLookAndFeel(
62
javax.swing.UIManager.getSystemLookAndFeelClassName()
63
)
0 commit comments