← Back to team overview

ubuntu-phone team mailing list archive

Re: [SDK][Theming] Styling a compound widget

 

On Wed, Sep 11, 2013 at 8:43 AM, Michał Sawicz <michal.sawicz@xxxxxxxxxxxxx> wrote:
I feel like there has been a misunderstanding here...

IIUC, you want an OptionSelector with:

Ubuntu
DejaVu
Liberation
...

Each of those in the font it describes, right?

IMO that's the exact place where you create a custom
OptionSelectorDelegate that will change the font for its own Label.

I agree that exposing the font on the standard OptionSelectorDelegate is
not the way to go - if you need to customize it - just build your own
with the tweaks you need.


That's what I'm doing now. But I want this CustomOptionSelectorDelegate to look just like the standard OptionSelectorDelegate, except for font. Right now, I've copied all the code from OptionSelectorDelegate to my own copy, which gets tweaked. But this is stupid: Every time the SDK folk update OptionSelectorDelegate, I'm going to have to copy the new code into my Custom version. And if the OptionSelectorDelegate is different in 13.10 and 14.04, I'm going to need to do version sniffing!

You need to also remember that "exposing

‘2’
I'm new to QML, but isn't this why import statements have version numbers?

Thanks,
Robert



References