Skip to content
Snippets Groups Projects
Verified Commit 549c8afd authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

feat: new fullscreen support

parent f20d9ae7
No related branches found
No related tags found
1 merge request!9Version 0.4.0 🍾
Pipeline #1359 passed
...@@ -55,6 +55,7 @@ type AppProps = { ...@@ -55,6 +55,7 @@ type AppProps = {
export const App: FC<AppProps> = ({ emulator, backgrounds = ["264653"] }) => { export const App: FC<AppProps> = ({ emulator, backgrounds = ["264653"] }) => {
const [paused, setPaused] = useState(false); const [paused, setPaused] = useState(false);
const [fullscreen, setFullscreen] = useState(false);
const [backgroundIndex, setBackgroundIndex] = useState(0); const [backgroundIndex, setBackgroundIndex] = useState(0);
const getPauseText = () => (paused ? "Resume" : "Pause"); const getPauseText = () => (paused ? "Resume" : "Pause");
const getPauseIcon = () => const getPauseIcon = () =>
...@@ -89,7 +90,7 @@ export const App: FC<AppProps> = ({ emulator, backgrounds = ["264653"] }) => { ...@@ -89,7 +90,7 @@ export const App: FC<AppProps> = ({ emulator, backgrounds = ["264653"] }) => {
<PanelSplit <PanelSplit
left={ left={
<div> <div>
<Display onDrawHandler={onDrawHAndler} /> <Display fullscreen={fullscreen} onDrawHandler={onDrawHAndler} />
</div> </div>
} }
> >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment