You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Link to minimal working code that reproduces the issue
I use the default example:
exportdefaultclassAppUWPextendsReact.Component{render(){return(<UWPThemeProvidertheme={getTheme({themeName: "dark",// set custom themeaccent: "#0078D7",// set accent coloruseFluentDesign: true,// sure you want use new fluent design.desktopBackgroundImage: require("./components/images/blurBackground/jennifer-bailey-10753.jpg")// set global desktop background image})}><MyComponent/></UWPThemeProvider>)}}
And get the result in html:
For two package structure:
I trace the code to react-uwp/theme/index.js
at Theme.prototype.render function , there createElement("theme-root") element and set "desktopBackground" to backgroundStyle.background, i want to understand how how the framework render the background that i could do further debug?
thanks
The text was updated successfully, but these errors were encountered:
PitterL
changed the title
desktopBackgroundImage render issue in
desktopBackgroundImage render issue in two package structure
Feb 19, 2019
PitterL
changed the title
desktopBackgroundImage render issue in two package structure
desktopBackgroundImage render issue in electron two package structure
Feb 19, 2019
You could see it's not used the z-index to control. And unfortunately, there the default z-index value will be defined to auto, that means start from last number(That's ZERO). So the z-index number in app root is ZERO and z-index in background is -1. That caused app root color cover the whole background image. We couldn't see the background image insight.
Hi, Myxvisual:
Problem description
I use the two package.json structure suggested of electron(https://www.electron.build/tutorials/two-package-structure
), i found the desktopBackgroundImage couldn't be rendered out.
Link to minimal working code that reproduces the issue
I use the default example:
And get the result in html:
For two package structure:
There is not background, but when i manually enter the address(http://localhost:3000/63dd844671a9043144eea6a44690a067.jpg) in explorer, there will the picture shown out.
For one package structure:
the background work normal.
Versions
two package structure:
https://github.com/mjangir/reactron
one package structure:
https://github.com/csepulv/electron-with-create-react-app
I trace the code to react-uwp/theme/index.js
at Theme.prototype.render function , there createElement("theme-root") element and set "desktopBackground" to backgroundStyle.background, i want to understand how how the framework render the background that i could do further debug?
thanks
The text was updated successfully, but these errors were encountered: