Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark mode #32

Open
ok300 opened this issue Dec 10, 2022 · 2 comments
Open

Dark mode #32

ok300 opened this issue Dec 10, 2022 · 2 comments

Comments

@ok300
Copy link
Contributor

ok300 commented Dec 10, 2022

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
Copy link

immetoo2 commented Jun 5, 2023

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
Copy link

immetoo2 commented Jun 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants