(non)pixel based margins in kmail-mobile

Marco Martin notmart at gmail.com
Tue Aug 13 10:03:31 UTC 2013


On Tuesday 13 August 2013 11:51:51 Michael Bohlender wrote:
> Hi,
> 
> my mentor and I would like to get a second opinion from a plasma developer
> regarding pixel based margins in plasma active applications. The question
> emerged from https://git.reviewboard.kde.org/r/112013/ but is obviously a
> general problem that needs to be solved the same way throughout the entire
> application.
> 
> Should I use a fixed pixel size for the margins/spacing or should I use
> something relational to the font size?
> If so, is "theme.defaultFont.mSize.width" the right thing to use in this
> case?

never, never, ever pixel sizes ;)

mSize is fine, or also the recent addition

units.gridUnit

units is a global object that is automatically registered when you import 
plasma components, so you can just access it.

-- 
Marco Martin


More information about the Active mailing list