more-speech icon indicating copy to clipboard operation
more-speech copied to clipboard

Dark mode

Open ok300 opened this issue 1 year ago • 2 comments

Please add support for a dark(er) theme.

A startup flag would be good enough, nothing fancy like theme selector menu or changing it on the fly.


I'm not familiar with Clojure or Seesaw, but I am with Java and Swing. I did a bit of research to see what's possible.

A cursory search lead me to:

  • https://stackoverflow.com/a/67754181
  • https://github.com/JFormDesigner/FlatLaf
  • https://github.com/vincenzopalazzo/material-ui-swing/wiki/Screenshots

Hopefully one of them can be easily integrated, or maybe you already have better solutions in mind.

ok300 avatar Dec 10 '22 05:12 ok300

By adding some startup properties (or a other laf jar) you can select a swing theme. First enable nice text with "-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true" and than add one of the following options;

-Dswing.metalTheme=steel
-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
-Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel

I run with this

/usr/lib/jvm/jdk-20.0.1/bin/java -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel -jar more-speech-0.1.0-SNAPSHOT-standalone.jar

more-speech-laf

immetoo2 avatar Jun 05 '23 12:06 immetoo2

The GTK (linux) theme follows the system colors and fonts, but some auto QT to GTK theme glue messed up my gtk font rendering, but it is dark; more-speech-dark

immetoo2 avatar Jun 05 '23 13:06 immetoo2