Skip to content

Commit

Permalink
Change background.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Oct 14, 2024
1 parent 9461e51 commit fd17b83
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 11 deletions.
9 changes: 7 additions & 2 deletions src/renderer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const bodyStyle: React.CSSProperties = {
alignItems: 'center',
height: '100vh',
margin: '0',
backgroundColor: '#f0f0f0',
color: '#d4d4d4',
backgroundColor: '#1e1e1e',
};

// Main entry point for the front end renderer.
Expand Down Expand Up @@ -44,7 +45,11 @@ const Home: React.FC = () => {
}

if (showSetup) {
return <FirstTimeSetup onComplete={() => setShowSetup(false)} />;
return (
<div style={bodyStyle}>
<FirstTimeSetup onComplete={() => setShowSetup(false)} />
</div>
)
}

return (
Expand Down
36 changes: 27 additions & 9 deletions src/renderer/screens/FirstTimeSetup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ const FirstTimeSetup: React.FC<FirstTimeSetupProps> = ({ onComplete }) => {
Please select a directory for where ComfyUI will store models, outputs, etc. If you already have a ComfyUI
setup, you can select that to reuse the model files.
</p>
<button onClick={handleDirectorySelect} style={styles.button}>
<button onClick={handleDirectorySelect} style={styles.selectButton}>
Select Directory
</button>
{selectedPath && (
<div style={styles.pathDisplay}>
<p>Selected path: {selectedPath}</p>
<p>{selectedPath}</p>
</div>
)}
<button
Expand All @@ -69,37 +69,55 @@ const styles = {
padding: '20px',
maxWidth: '600px',
margin: '0 auto',
justifyContent: 'center',
},
title: {
fontSize: '24px',
marginBottom: '20px',
color: '#ffffff',
},
description: {
textAlign: 'center' as const,
marginBottom: '20px',
lineHeight: '1.5',
},
button: {
padding: '10px 20px',
fontSize: '16px',
fontSize: '14px',
cursor: 'pointer',
marginBottom: '10px',
borderRadius: '3px',
border: 'none',
fontWeight: 'bold',
},
selectButton: {
padding: '10px 20px',
fontSize: '14px',
cursor: 'pointer',
marginBottom: '10px',
borderRadius: '3px',
border: 'none',
fontWeight: 'bold',
backgroundColor: '#0078d4',
color: '#ffffff',
},
pathDisplay: {
marginTop: '10px',
marginBottom: '20px',
padding: '10px',
backgroundColor: '#f0f0f0',
borderRadius: '5px',
backgroundColor: '#2d2d2d',
borderRadius: '3px',
width: '100%',
color: '#d4d4d4',
textAlign: 'center'
},
installButton: {
backgroundColor: '#4CAF50',
color: 'white',
border: 'none',
color: '#ffffff',
},
disabledButton: {
backgroundColor: '#cccccc',
color: '#666666',
backgroundColor: '#4d4d4d',
color: '#a0a0a0',
cursor: 'not-allowed',
},
};
Expand Down

0 comments on commit fd17b83

Please sign in to comment.