|
|
|
@ -213,7 +213,8 @@ const LayerUI = ({
|
|
|
|
|
padding={2}
|
|
|
|
|
style={{ zIndex: 1 }}
|
|
|
|
|
>
|
|
|
|
|
{actionManager.renderAction("loadScene")}
|
|
|
|
|
{!appState.viewModeEnabled &&
|
|
|
|
|
actionManager.renderAction("loadScene")}
|
|
|
|
|
{/* // TODO barnabasmolnar/editor-redesign */}
|
|
|
|
|
{/* is this fine here? */}
|
|
|
|
|
{appState.fileHandle &&
|
|
|
|
@ -234,7 +235,8 @@ const LayerUI = ({
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
{actionManager.renderAction("toggleShortcuts", undefined, true)}
|
|
|
|
|
{actionManager.renderAction("clearCanvas")}
|
|
|
|
|
{!appState.viewModeEnabled &&
|
|
|
|
|
actionManager.renderAction("clearCanvas")}
|
|
|
|
|
<Separator />
|
|
|
|
|
<MenuLinks />
|
|
|
|
|
<Separator />
|
|
|
|
@ -249,14 +251,16 @@ const LayerUI = ({
|
|
|
|
|
<div style={{ padding: "0 0.625rem" }}>
|
|
|
|
|
<LanguageList style={{ width: "100%" }} />
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div style={{ fontSize: ".75rem", marginBottom: ".5rem" }}>
|
|
|
|
|
{t("labels.canvasBackground")}
|
|
|
|
|
</div>
|
|
|
|
|
<div style={{ padding: "0 0.625rem" }}>
|
|
|
|
|
{actionManager.renderAction("changeViewBackgroundColor")}
|
|
|
|
|
{!appState.viewModeEnabled && (
|
|
|
|
|
<div>
|
|
|
|
|
<div style={{ fontSize: ".75rem", marginBottom: ".5rem" }}>
|
|
|
|
|
{t("labels.canvasBackground")}
|
|
|
|
|
</div>
|
|
|
|
|
<div style={{ padding: "0 0.625rem" }}>
|
|
|
|
|
{actionManager.renderAction("changeViewBackgroundColor")}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
</Island>
|
|
|
|
|
</Section>
|
|
|
|
@ -299,12 +303,12 @@ const LayerUI = ({
|
|
|
|
|
return (
|
|
|
|
|
<FixedSideContainer side="top">
|
|
|
|
|
{renderWelcomeScreen && !appState.isLoading && (
|
|
|
|
|
<WelcomeScreen actionManager={actionManager} />
|
|
|
|
|
<WelcomeScreen appState={appState} actionManager={actionManager} />
|
|
|
|
|
)}
|
|
|
|
|
<div className="App-menu App-menu_top">
|
|
|
|
|
<Stack.Col
|
|
|
|
|
gap={6}
|
|
|
|
|
className={clsx({
|
|
|
|
|
className={clsx("App-menu_top__left", {
|
|
|
|
|
"disable-pointerEvents": appState.zenModeEnabled,
|
|
|
|
|
})}
|
|
|
|
|
>
|
|
|
|
@ -405,7 +409,9 @@ const LayerUI = ({
|
|
|
|
|
/>
|
|
|
|
|
)}
|
|
|
|
|
{renderTopRightUI?.(device.isMobile, appState)}
|
|
|
|
|
<LibraryButton appState={appState} setAppState={setAppState} />
|
|
|
|
|
{!appState.viewModeEnabled && (
|
|
|
|
|
<LibraryButton appState={appState} setAppState={setAppState} />
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</FixedSideContainer>
|
|
|
|
|