LookAndFeel requests

94 posts / 0 new
Last post
jules
Online
Last seen: 12 sec ago
Joined: 29 Apr 2013 - 18:37
LookAndFeel requests

People often need to write custom UIs that involve doing something beyond the scope of the current LookAndFeel class, and might involve me adding methods or otherwise tweaking the L+F.

So please use this thread to post requests for things like colour IDs that should be added, methods that need extra parameters, etc. and I'll try to keep up with any sensible requests!

ke20
Offline
Last seen: 4 months 3 weeks ago
Joined: 8 Feb 2007 - 13:56

Hi Jules,
My first request is a getTooltipWindowFlags() which would be called in the TooltipWindow constructor such as the getMenuWindowFlags() like this:

    if (parentComponent != 0)
    {
        parentComponent->addChildComponent (this);
    }
    else
    {
        setSize (1, 1); // to keep the OS happy by not having zero-size windows
        addToDesktop (ComponentPeer::windowIsTemporary | getLookAndFeel().getMenuWindowFlags());
}


The second is a way to set the PopupMenuWindow transparent when the drop shadow is disabled. But I don't know how to do that beacause we have to be sure that the drop shadow is disabled before set it transparent.

Kevin

kraken
kraken's picture
Offline
Last seen: 1 month 4 weeks ago
Joined: 9 Feb 2005 - 09:31

i would like something like this. we have no way to change default row height for ListBox contained in FileListComponent:

int LookAndFeel::getFileListComponentRowHeight ()
{
    return 22;
}

must be triggered on the lookAndFeelChanged callback of the FileListComponent i think.

mdsp
Offline
Last seen: 3 weeks 6 days ago
Joined: 29 Oct 2004 - 12:00

so,

here is my treeview indentation request:
http://www.rawmaterialsoftware.com/juceforum/viewtopic.php?t=2807

and

the need for isOpen in drawFileBrowserRow:
http://www.rawmaterialsoftware.com/juceforum/viewtopic.php?t=2948

NiallM
Offline
Last seen: 1 year 2 months ago
Joined: 6 Sep 2004 - 10:28

I'd appreciate colour IDs for DrawableButton's background colours. At the moment they're hard-coded and you need to call setBackgroundColours() to change them.

Cheers,

- Niall.

spiderman
Offline
Last seen: 4 years 10 months ago
Joined: 4 Oct 2007 - 12:48
AlertWindow

Hi Jules,

Just want to put this request here:

http://rawmaterialsoftware.com/juceforum/viewtopic.php?t=2960

spiderman
Offline
Last seen: 4 years 10 months ago
Joined: 4 Oct 2007 - 12:48
ComboBox background & Slider Colour

In some cases it would be useful to alert the user to unitialised or empty combos that would pop out from a group of components. E.g. an 'empty' or 'not selected' background colour (defaulting to the normal colour) would be nice.

Along these lines, maybe the sliders could use an alternative colour, which would be triggered by a min and/or max value.

(this is not really for L&F class, but belongs here, I guess)

Thanks!

zamrate
Offline
Last seen: 1 year 4 months ago
Joined: 24 Sep 2007 - 17:33

I think it would be very useful, if somehow Components could be told what LookAndFeel class to choose from at runtime. So one could have (for instance) different looking TextButtons in one app.

otristan
Offline
Last seen: 59 min 7 sec ago
Joined: 3 Mar 2007 - 14:03

like the already existing Component::setLookAndFeel for example ?

Olivier

haydxn
Offline
Last seen: 46 min 48 sec ago
Joined: 10 Apr 2005 - 14:46

i reckon the ultimate would be to merge some of the drawingxml code from the Jucer with a LookAndFeel, allowing a L&F to be specified from an XML document. The challenges faced at ensuring it works should surely expose all weak spots that need addressing, as well as providing a [obviously slightly inefficient] skinning system.

xh

zamrate
Offline
Last seen: 1 year 4 months ago
Joined: 24 Sep 2007 - 17:33

otristan wrote:
like the already existing Component::setLookAndFeel for example ?

Gosh, I didn't know that method existed... I knew LookAndFeel::setDefaultLookAndFeel() only. Please ignore my post.

Pages