-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Settings page with the ability to change installation folder (finally!)
- Loading branch information
1 parent
d79d5bc
commit 229b267
Showing
9 changed files
with
275 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import Button, { ButtonColor } from "@app/components/Button"; | ||
import { BaseDialog } from "./BaseDialog"; | ||
import { closeDialog } from ".."; | ||
|
||
export class ChangeDownloadLocationDialog extends BaseDialog<Record<string, never>> { | ||
constructor(props: Record<string, unknown>) { | ||
super(props); | ||
} | ||
|
||
getInnerContents() { | ||
return <> | ||
<p> | ||
In order to change the download location of your applications and setlists, <strong>everything must | ||
first be uninstalled, and then reinstalled into the new location.</strong> Save data will not be lost. | ||
</p> | ||
</>; | ||
} | ||
|
||
getTitle() { | ||
return <>Warning</>; | ||
} | ||
|
||
getButtons() { | ||
return <> | ||
<Button color={ButtonColor.LIGHT} rounded onClick={() => closeDialog()}> | ||
Cancel | ||
</Button> | ||
<Button color={ButtonColor.RED} rounded onClick={() => closeDialog("continue")}> | ||
Continue | ||
</Button> | ||
</>; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
.mainContainer { | ||
display: flex; | ||
flex-flow: column; | ||
padding: 16px; | ||
gap: 16px; | ||
} | ||
|
||
.downloadLocation { | ||
display: flex; | ||
gap: 8px; | ||
margin-top: 12px; | ||
|
||
align-items: center; | ||
} | ||
|
||
.downloadLocation > span { | ||
font-size: 16px; | ||
flex: 1 0 0; | ||
|
||
border: 1px solid #E3E4E7; | ||
padding: 16px; | ||
border-radius: 12px; | ||
} | ||
|
||
.loadingScreen { | ||
position: fixed; | ||
inset: 0; | ||
|
||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
background: var(--sideBarBackground); | ||
|
||
color: #FFF; | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: normal; | ||
|
||
z-index: 10000; | ||
} |
Oops, something went wrong.