LookAndFeel requests

Discussion and support for general JUCE issues

LookAndFeel requests

Postby jules » Tue Jun 17, 2008 8:06 pm

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!
User avatar
jules
Fearless Leader
 
Posts: 17189
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Postby ke20 » Wed Jun 18, 2008 9:26 am

Hi Jules,
My first request is a getTooltipWindowFlags() which would be called in the TooltipWindow constructor such as the getMenuWindowFlags() like this:
Code: Select all
    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
User avatar
ke20
JUCE UberWeenie
 
Posts: 131
Joined: Thu Feb 08, 2007 2:56 pm

Postby kraken » Wed Jun 18, 2008 10:59 am

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

Code: Select all
int LookAndFeel::getFileListComponentRowHeight ()
{
    return 22;
}


must be triggered on the lookAndFeelChanged callback of the FileListComponent i think.
Image
User avatar
kraken
JUCE UberWeenie
 
Posts: 1063
Joined: Wed Feb 09, 2005 10:31 am
Location: Venice, Italy

Postby mdsp » Wed Jun 18, 2008 11:32 am

so,

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

and

the need for isOpen in drawFileBrowserRow:
juceforum/viewtopic.php?t=2948
mdsp
JUCE UberWeenie
 
Posts: 277
Joined: Fri Oct 29, 2004 12:00 pm
Location: Paris

Postby NiallM » Wed Jun 18, 2008 1:53 pm

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.
NiallM
JUCE UberWeenie
 
Posts: 182
Joined: Mon Sep 06, 2004 10:28 am
Location: Scotland

AlertWindow

Postby spiderman » Tue Jun 24, 2008 12:45 pm

Hi Jules,

Just want to put this request here:

http://rawmaterialsoftware.com/juceforu ... php?t=2960
spiderman
JUCE Obsessive
 
Posts: 81
Joined: Thu Oct 04, 2007 12:48 pm
Location: Hungary

ComboBox background & Slider Colour

Postby spiderman » Tue Jun 24, 2008 12:57 pm

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!
spiderman
JUCE Obsessive
 
Posts: 81
Joined: Thu Oct 04, 2007 12:48 pm
Location: Hungary

Postby zamrate » Mon Jun 30, 2008 8:18 pm

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.
User avatar
zamrate
JUCE UberWeenie
 
Posts: 1081
Joined: Mon Sep 24, 2007 5:33 pm

Postby otristan » Mon Jun 30, 2008 9:16 pm

like the already existing Component::setLookAndFeel for example ?
otristan
JUCE UberWeenie
 
Posts: 648
Joined: Sat Mar 03, 2007 3:03 pm
Location: Paris

Postby haydxn » Mon Jun 30, 2008 9:59 pm

i reckon the ultimate would be to merge some of the drawing<->xml 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
User avatar
haydxn
JUCE UberWeenie
 
Posts: 1172
Joined: Sun Apr 10, 2005 2:46 pm
Location: Manchester, UK

Postby zamrate » Mon Jun 30, 2008 10:23 pm

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.
User avatar
zamrate
JUCE UberWeenie
 
Posts: 1081
Joined: Mon Sep 24, 2007 5:33 pm

Postby Denis » Tue Jul 01, 2008 6:35 am

Hi, I need, that you would add the following colour IDs:

ResizableWindow::backgroundColourId
ResizableWindow::textColourId

TabbedComponent::backgroundColourId
TabbedComponent::textColourId
TabbedComponent::highlightColourId
TabbedComponent::highlightedTextColourId
Denis
JUCE Geek
 
Posts: 24
Joined: Fri Sep 14, 2007 10:23 am

Postby zamrate » Thu Jul 10, 2008 7:52 am

Apart fom LookAndFeel, it would be cool if one could assign an integer tag/id to each component and retrieve the component based upon that tag/id.
User avatar
zamrate
JUCE UberWeenie
 
Posts: 1081
Joined: Mon Sep 24, 2007 5:33 pm

Postby justin » Tue Aug 12, 2008 8:26 pm

ComboBox::labelColourId would be useful for me.
User avatar
justin
JUCE UberWeenie
 
Posts: 297
Joined: Mon May 19, 2008 1:37 pm
Location: Canada

Postby Denis » Wed Aug 13, 2008 7:12 am

Please add the following colour IDs:

ResizableWindow::backgroundColourId
ResizableWindow::textColourId

TabbedComponent::backgroundColourId
TabbedComponent::textColourId
TabbedComponent::highlightColourId
TabbedComponent::highlightedTextColourId
Denis
JUCE Geek
 
Posts: 24
Joined: Fri Sep 14, 2007 10:23 am

Next

Return to General JUCE discussion

Who is online

Users browsing this forum: yairadix and 2 guests