unclebob / more-speech

A Nostr browser in Clojure.
MIT License
299 stars 33 forks source link

Dark mode #32

Open ok300 opened 1 year ago

ok300 commented 1 year ago

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:

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

immetoo2 commented 1 year ago

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 commented 1 year ago

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