make puListBox inherit puList colors (otherwise the GUI style isn't
respected, and black text on dark grey is a bit hard to read). TODO: - submit that for inclusion in plib's puAuxList - drop custom version and use plib's (after 0.9.10)
This commit is contained in:
parent
a837b6e768
commit
a7bab83cc8
2 changed files with 17 additions and 0 deletions
|
@ -116,4 +116,18 @@ puList::init (int w, int h)
|
|||
close();
|
||||
}
|
||||
|
||||
void
|
||||
puList::setColourScheme (float r, float g, float b, float a)
|
||||
{
|
||||
puObject::setColourScheme(r, g, b, a);
|
||||
_list_box->setColourScheme(r, g, b, a);
|
||||
}
|
||||
|
||||
void
|
||||
puList::setColour (int which, float r, float g, float b, float a)
|
||||
{
|
||||
puObject::setColour(which, r, g, b, a);
|
||||
_list_box->setColour(which, r, g, b, a);
|
||||
}
|
||||
|
||||
// end of puList.cxx
|
||||
|
|
|
@ -27,6 +27,9 @@ class puList : public puGroup
|
|||
// TODO: other string value funcs
|
||||
virtual char * getListStringValue ();
|
||||
virtual int getListIntegerValue();
|
||||
virtual void setColourScheme (float r, float g, float b, float a);
|
||||
virtual void setColour (int which, float r, float g, float b, float a);
|
||||
|
||||
|
||||
protected:
|
||||
virtual void init (int w, int h);
|
||||
|
|
Loading…
Reference in a new issue