mirror of https://github.com/adamdruppe/arsd.git
commit
6b25bec469
13
minigui.d
13
minigui.d
|
@ -1439,9 +1439,16 @@ class Widget {
|
||||||
Color backgroundColor() {
|
Color backgroundColor() {
|
||||||
// the default is a "transparent" background, which means
|
// the default is a "transparent" background, which means
|
||||||
// it goes as far up as it can to get the color
|
// it goes as far up as it can to get the color
|
||||||
if(parent)
|
if (color != Color.transparent) return color;
|
||||||
return parent.backgroundColor();
|
if (parent) return parent.backgroundColor();
|
||||||
return Color.transparent;
|
return color;
|
||||||
|
}
|
||||||
|
|
||||||
|
private Color color = Color.transparent;
|
||||||
|
|
||||||
|
///
|
||||||
|
void backgroundColor(Color c){
|
||||||
|
this.color = c;
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue