× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
NielsGron reported 2012-11-15T15:44:20Z  · last modified 2012-12-05T17:30:47Z

Supporting GTK+ Look and Feel theme on Linux


Priority Low
Complexity Unknown
Component App - General
Version Future - .1

ENVIRONMENT

- Xubuntu Linux 12.04
- XFCE 4.8
- Oracle Java 1.6.0.37
- Aquafold Datastudio 12
- Laptop with 15'' 1920x1080 screen
- System DPI is set to 120

PROBLEM

After I got a new laptop with 15'' screen and 1920x1080 I found that many Java/Swing application have very small fonts in menus and controls. Unfortunately Aquafold Datastudio is one of them. I've attached the screenshot (see aquafold-problem.png) which show small fonts in Datastudio. Also there you can see native GTK application (calculator) and Java/Swing application (Jets3t Cockpit) with GTK+ L&F which both look fine.

Please note there is more advanced SOHO devices on the market than mine.

ASUS ZENBOOK Prime UX31A - 13'' 1980x1020
Apple MacBook Pro Retina - 13'' 2560Х1600

Both can be used with Linux

DESCRIPTION

The problem is that Swing doesn't respect system DPI and by default assumes that DPI is 72. There is GTK+ L&F theme which renders all controls with respect to system DPI via linux system libraries. Unfortunately Datastudio doesn't allow to specify GTK+ L&F nor with setting dialog nor with standard system properties (swing.defaultlaf and swing.systemlaf).

WORKAROUND

After I discovered that Datastudio uses JGoodies as L&F I read documentation on JGoodies and found out that font can be changed with the following Java system parameters.

-DPlastic.controlFont="Ubuntu-plain-18"
-DPlastic.menuFont="Ubuntu-plain-18"

Also there are two additional parameters which eliminates artefacts from font hinting

-Dswing.aatext=true
-Dawt.useSystemAAFontSettings=lcd

The result is shown on the screenshot (see aquafold-workaround.png)

SOLUTION #1

The solution is to allow specify GTK+ L&F as a theme for Datastudio. It would render all menus and controls with respect to system DPI settings via standard system libraries. Custom drawn control (text editors, charts) will still be unaware of system DPI but you already have font settings for these.

Who uses GTK+ L&F: IntellijIDEA, Apache JMeter

SOLUTION #2

Allow to specify font for the menu and controls. It also would allow people with low vision increase application font to the appropriate level.

Who uses main font settings: Oracle SQL Developer, Smart SVN (< 7.5)

2 attachments

Issue #7953

Closed
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017