Windows styles + downloading

This commit is contained in:
2025-07-19 23:07:42 -07:00
parent f17c3fc097
commit 2e2cb9b563
10 changed files with 796 additions and 43 deletions

View File

@@ -41,7 +41,7 @@ export default function Sidebar({ setShowPopup, setPopupMode, setFadeOut }: Side
style={{
transform: `rotate(${rot}deg)`,
transition: 'transform 0.3s ease',
marginTop: platform() == 'macos' ? '20px' : '0px'
marginTop: ['windows','macos'].includes(platform()) ? '20px' : '0px'
}}
onClick={() =>
setRot(r => {

View File

@@ -41,7 +41,7 @@ function App () {
setDownloadProgress(prev => [...prev, ...newDownloads]);
newDownloads.forEach(download => {
invoke('download', { url: download.version.downloadUrls[download.version.platforms.indexOf(platform())] });
invoke('download', { url: download.version.downloadUrls[download.version.platforms.indexOf(platform())], name: download.version.version });
});
}
@@ -76,7 +76,10 @@ function App () {
return (
<>
<Sidebar setShowPopup={setShowPopup} setPopupMode={setPopupMode} setFadeOut={setFadeOut} />
<main style={{ marginLeft: '15rem' }}>{renderContent()}</main>
<div className="relative z-[1] ml-[239px] w-[761px] border-b border-[#323232] h-[33px] bg-[#161616]" style={{ display: platform() == 'windows' ? 'block' : 'none' }}></div>
<div className="relative z-0">
<main style={{ marginLeft: '15rem' }}>{renderContent()}</main>
</div>
{showPopup && (
<div
className={`popup-overlay ${fadeOut ? 'fade-out' : ''}`}

View File

@@ -14,15 +14,15 @@ export default function Installs({ downloadProgress, showPopup, setShowPopup, se
}, [showPopup])
return (
<>
<p className='text-3xl ml-4 mt-4'>Installs</p>
<div className='flex justify-between items-center mt-4 mx-4'>
<p className='text-3xl'>Installs</p>
<button
className='button text-3xl mt-4 absolute right-4 top-4'
className='button text-3xl'
onClick={() => { setPopupMode(0); setShowPopup(true); setFadeOut(false) }}
disabled={downloadProgress.length != 0}
>
Download new version
</button>
</>
</div>
)
}