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

Add support for using a platform-specific look and feel #9

Open
GoogleCodeExporter opened this issue Apr 26, 2015 · 2 comments
Open

Comments

@GoogleCodeExporter
Copy link

In principle, it should be possible to very easily add support for using a 
platforms-specific look and feel in the Java Swing application. A quick guide 
to this Java feature can be found in Oracle's Java Tutorials:

http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html

Ponomar currently uses the default "Metal" theme in Windows and Linux. If I 
understand correctly, Apple's implementation of the JVM for OsX will 
automatically use an appropriate OsX theme as the default.

The Oracle JVM provides support for the following platform-specific themes for 
Windows, Linux, and Unix:

com.sun.java.swing.plaf.gtk.GTKLookAndFeel
com.sun.java.swing.plaf.motif.MotifLookAndFeel
com.sun.java.swing.plaf.windows.WindowsLookAndFeel

The Motif theme is very antique looking, and can be ignored.

The GTK theme looks good in Linux desktop environments such as Gnome and XFCE, 
which use the GTK+ widget library. GTK+ applications look a little alien in 
other desktops like KDE.

I tested the Windows and GTK themes by using the applicable command line 
options. The themes basically look good, but there were a few problems that 
would require some troubleshooting if we want to support this feature.

1. The background colors for normal, feast, and fast days only work with the 
default theme. Thus all days in the calendar look the same, except for the red 
foreground color for Sundays, and the yellow background color for the current 
date. This defect would have to be fixed if we wanted to support 
platform-specific themes.

2. The system's menu font settings are ignored. For example, the menu font used 
with the Windows look and feel is Times New Roman, whereas ordinarily it would 
be a sans serif font such as Segoe UI. This is just a quirk, but we might want 
to fix it if it were easy to do.

There is no vital need to support platform-specific themes now. I was just 
tinkering with it to see if it worked at all.

Original issue reported on code.google.com by ps008v...@gmail.com on 6 Feb 2015 at 5:28

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

I should test to see whether the OsX theme has the same problem as the Windows 
and GTK+ themes (namely, that the day background colors for normal, feast, and 
fast days don't work).

Original comment by ps008v...@gmail.com on 6 Feb 2015 at 6:40

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

No branches or pull requests

1 participant