Merge pull request #137 from ASHIT-AXAR/patch-1

Update minigui.d
This commit is contained in:
Adam D. Ruppe 2018-02-21 16:30:00 -05:00 committed by GitHub
commit 6b25bec469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 3 deletions

View File

@ -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;
} }
/// ///