Introjucer and LookAndFeel


#1

Hi,

 

when design a UI in Introjucer, is it possible to design it using a diferent LookAndFeel ?

 

Thanks,

Paulo


#2

I haven't added an option for that, but you could hack the introjucer itself and change the L+F - it'd be a one-line change.


#3

Hi Jules,

thanks for the quick answer, but i already had tried it before posting.

It give me an error when running in the following:

void IntrojucerLookAndFeel::fillWithBackgroundTexture (Component& c, Graphics& g)

{

    dynamic_cast<IntrojucerLookAndFeel&> (c.getLookAndFeel()).fillWithBackgroundTexture (g);

}

Gives this error:

libc++abi.dylib: terminating with uncaught exception of type std::bad_cast: std::bad_cast

Where should i put the declaration: "LookAndFeel::setDefaultLookAndFeel(&lookAndFeelV3);" ?

I put it on MainWindow.cpp.

 

Paulo


#4

No, that's the wrong thing to change - look at EditingPanelBase::lookAndFeel instead.


#5

Worked perfectly. Thank you