Skip to content

Commit

Permalink
Change default opacity and color of the background
Browse files Browse the repository at this point in the history
Signed-off-by: martinRenou <[email protected]>
  • Loading branch information
martinRenou committed Aug 31, 2020
1 parent fbb81ac commit 4ede0ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ipygany/ipygany.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ class Scene(_GanyDOMWidgetBase):

children = List(Instance(Block)).tag(sync=True, **widget_serialization)

background_color = Color('#fff').tag(sync=True)
background_opacity = CFloat(0.).tag(sync=True)
background_color = Color('white').tag(sync=True)
background_opacity = CFloat(1.).tag(sync=True)

def __init__(self, children=[], **kwargs):
"""Construct a Scene."""
Expand Down
4 changes: 2 additions & 2 deletions src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,8 @@ class SceneModel extends _GanyDOMWidgetModel {
return {...super.defaults(),
_model_name: SceneModel.model_name,
_view_name: SceneModel.view_name,
background_color: '#fff',
background_opacity: 0.,
background_color: 'white',
background_opacity: 1.,
children: [],
};
}
Expand Down

0 comments on commit 4ede0ea

Please sign in to comment.