Windows styles + downloading
This commit is contained in:
@@ -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 => {
|
||||
|
||||
@@ -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' : ''}`}
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user