@@ -57,6 +57,7 @@ interface AppProps {
5757 skillMaps : { [ key : string ] : SkillMap } ;
5858 activityOpen : boolean ;
5959 backgroundImageUrl : string ;
60+ pixelatedBackground ?: boolean ;
6061 theme : SkillGraphTheme ;
6162 signedIn : boolean ;
6263 activityId : string ;
@@ -71,7 +72,7 @@ interface AppProps {
7172 dispatchSetPageTitle : ( title : string ) => void ;
7273 dispatchSetPageDescription : ( description : string ) => void ;
7374 dispatchSetPageInfoUrl : ( infoUrl : string ) => void ;
74- dispatchSetPageBackgroundImageUrl : ( backgroundImageUrl : string ) => void ;
75+ dispatchSetPageBackgroundImageUrl : ( backgroundImageUrl : string , pixelatedBackground ?: boolean ) => void ;
7576 dispatchSetPageBannerImageUrl : ( bannerImageUrl : string ) => void ;
7677 dispatchSetUser : ( user : UserState ) => void ;
7778 dispatchSetPageSourceUrl : ( url : string , status : PageSourceStatus ) => void ;
@@ -228,13 +229,13 @@ class AppImpl extends React.Component<AppProps, AppState> {
228229 }
229230
230231 if ( metadata ) {
231- const { title, description, infoUrl, backgroundImageUrl,
232+ const { title, description, infoUrl, backgroundImageUrl, pixelatedBackground ,
232233 bannerImageUrl, theme, alternateSources } = metadata ;
233234 setPageTitle ( title ) ;
234235 this . props . dispatchSetPageTitle ( title ) ;
235236 if ( description ) this . props . dispatchSetPageDescription ( description ) ;
236237 if ( infoUrl ) this . props . dispatchSetPageInfoUrl ( infoUrl ) ;
237- if ( backgroundImageUrl ) this . props . dispatchSetPageBackgroundImageUrl ( backgroundImageUrl ) ;
238+ if ( backgroundImageUrl ) this . props . dispatchSetPageBackgroundImageUrl ( backgroundImageUrl , pixelatedBackground ) ;
238239 if ( bannerImageUrl ) this . props . dispatchSetPageBannerImageUrl ( bannerImageUrl ) ;
239240 if ( alternateSources ) this . props . dispatchSetPageAlternateUrls ( alternateSources ) ;
240241 if ( theme ) this . props . dispatchSetPageTheme ( theme ) ;
@@ -432,7 +433,7 @@ class AppImpl extends React.Component<AppProps, AppState> {
432433 }
433434
434435 render ( ) {
435- const { skillMaps, activityOpen, backgroundImageUrl, theme } = this . props ;
436+ const { skillMaps, activityOpen, backgroundImageUrl, theme, pixelatedBackground } = this . props ;
436437 const { error, showingSyncLoader, forcelang } = this . state ;
437438 const maps = Object . keys ( skillMaps ) . map ( ( id : string ) => skillMaps [ id ] ) ;
438439 const feedbackEnabled = pxt . U . ocvEnabled ( ) ;
@@ -446,7 +447,7 @@ class AppImpl extends React.Component<AppProps, AppState> {
446447 < div className = { `skill-map-container ${ activityOpen ? "hidden" : "" } ` } style = { { backgroundColor : theme . backgroundColor } } >
447448 { error
448449 ? < div className = "skill-map-error" > { error } </ div >
449- : < SkillGraphContainer maps = { maps } backgroundImageUrl = { backgroundImageUrl } backgroundColor = { theme . backgroundColor } strokeColor = { theme . strokeColor } />
450+ : < SkillGraphContainer maps = { maps } backgroundImageUrl = { backgroundImageUrl } backgroundColor = { theme . backgroundColor } pixelatedBackground = { pixelatedBackground } strokeColor = { theme . strokeColor } />
450451 }
451452 { ! error && < InfoPanel onFocusEscape = { this . focusCurrentActivity } /> }
452453 </ div >
@@ -568,6 +569,7 @@ function mapStateToProps(state: SkillMapState, ownProps: any) {
568569 skillMaps : state . maps ,
569570 activityOpen : ! ! state . editorView ,
570571 backgroundImageUrl : state . backgroundImageUrl ,
572+ pixelatedBackground : state . pixelatedBackground ,
571573 theme : state . theme ,
572574 signedIn : state . auth . signedIn ,
573575 activityId : state . selectedItem ?. activityId ,
0 commit comments