[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] [PATCH] Don't hard code explicit wxDatePickerCtrl size
From: |
Greg Chicares |
Subject: |
Re: [lmi] [PATCH] Don't hard code explicit wxDatePickerCtrl size |
Date: |
Thu, 29 Jan 2015 17:48:16 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 |
On 01/26/2015 06:18 PM, Vadim Zeitlin wrote:
>
> Of course, there are still a lot of _programs_ that don't support high DPI
> screens correctly and hard coding values in pixels is probably the most
> common bug to blame for this (the next one being the absence of high
> resolution icons and other artwork versions). And I'd just like to remove
> lmi from their list...
Now I've built lmi natively for gnu/linux, and set my DPI to 192...and
indeed I see the problem you mentioned. Using 'skin.xrc', on the "Inforce"
tab, numeric fields are only wide enough to display "1234", and date fields
show "01/" and half of a "2".
Unfortunately, I can't find a way to rescale it--these environment variables
seem to have no effect:
/opt/lmi/build[0]$GDK_DPI_SCALE=0.5
LD_LIBRARY_PATH=/usr/local/lib:/opt/lmi/local/lib ./lmi_wx --ash_nazg
/opt/lmi/build[0]$GDK_SCALE=1 LD_LIBRARY_PATH=/usr/local/lib:/opt/lmi/local/lib
./lmi_wx --ash_nazg
I even tried (again, with no effect):
/opt/lmi/build[0]$GDK_SCALE=2 GDK_DPI_SCALE=0.5
LD_LIBRARY_PATH=/usr/local/lib:/opt/lmi/local/lib ./lmi_wx --ash_nazg
/opt/lmi/build[0]$GDK_SCALE=1 GDK_DPI_SCALE=0.5
LD_LIBRARY_PATH=/usr/local/lib:/opt/lmi/local/lib ./lmi_wx --ash_nazg
The toolbar icons are tiny, but they're the same size as gedit's.
But the fonts are sharp, clear, and beautiful.
- [lmi] [PATCH] Don't hard code explicit wxDatePickerCtrl size, Vadim Zeitlin, 2015/01/24
- Re: [lmi] [PATCH] Don't hard code explicit wxDatePickerCtrl size, Greg Chicares, 2015/01/25
- Re: [lmi] [PATCH] Don't hard code explicit wxDatePickerCtrl size, Vadim Zeitlin, 2015/01/26
- Re: [lmi] [PATCH] Don't hard code explicit wxDatePickerCtrl size, Greg Chicares, 2015/01/26
- Re: [lmi] [PATCH] Don't hard code explicit wxDatePickerCtrl size, Vadim Zeitlin, 2015/01/26
- Re: [lmi] [PATCH] Don't hard code explicit wxDatePickerCtrl size,
Greg Chicares <=
- Re: [lmi] [PATCH] Don't hard code explicit wxDatePickerCtrl size, Vadim Zeitlin, 2015/01/29
- Re: [lmi] [PATCH] Don't hard code explicit wxDatePickerCtrl size, Greg Chicares, 2015/01/31
- Re: [lmi] [PATCH] Don't hard code explicit wxDatePickerCtrl size, Vadim Zeitlin, 2015/01/31
- Re: [lmi] [PATCH] Don't hard code explicit wxDatePickerCtrl size, Greg Chicares, 2015/01/31