Skip to content

Commit efbd6c7

Browse files
committed
theme button css
1 parent 2b8f763 commit efbd6c7

File tree

2 files changed

+34
-14
lines changed

2 files changed

+34
-14
lines changed

app/src/components/bottom/CodePreview.tsx

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import 'ace-builds/src-noconflict/theme-terminal';
1111
import { Component } from '../../interfaces/Interfaces';
1212
import NativeSelect from '@material-ui/core/NativeSelect';
1313
import FormControl from '@material-ui/core/FormControl';
14+
import InputLabel from '@material-ui/core/InputLabel';
1415

1516
const useStyles = makeStyles(theme => ({
1617
formControl: {
@@ -52,20 +53,21 @@ const CodePreview = () => {
5253
}}
5354
>
5455
<FormControl fullWidth={true} className={classes.formControl}>
55-
{/* <InputLabel variant="filled" style={{ color: 'white' }}>
56-
Change Theme
57-
</InputLabel> */}
58-
<NativeSelect
59-
style={{ color: 'white' }}
60-
value={theme}
61-
onChange={changeTheme}
62-
>
63-
<option value={'monokai'}>Monokai</option>
64-
<option value={'github'}>Github</option>
65-
<option value={'solarized_dark'}>Solarized Dark</option>
66-
<option value={'terminal'}>Terminal</option>
67-
<option value={'solarized_light'}>Solarized Light</option>
68-
</NativeSelect>
56+
<div className="flex-container">
57+
<div className="flex1">Change Theme:</div>
58+
<NativeSelect
59+
className="flex2"
60+
style={{ color: 'white' }}
61+
value={theme}
62+
onChange={changeTheme}
63+
>
64+
<option value={'monokai'}>Monokai</option>
65+
<option value={'github'}>Github</option>
66+
<option value={'solarized_dark'}>Solarized Dark</option>
67+
<option value={'terminal'}>Terminal</option>
68+
<option value={'solarized_light'}>Solarized Light</option>
69+
</NativeSelect>
70+
</div>
6971
</FormControl>
7072
<AceEditor
7173
mode="javascript"

app/src/public/styles/style.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,24 @@ RIGHT COLUMN
273273
overflow: auto;
274274
}
275275

276+
.flex-container {
277+
display: flex;
278+
flex-direction: row;
279+
}
280+
281+
.flex1 {
282+
padding: 10px 20px 10px 5px;
283+
color: #01d46d;
284+
}
285+
286+
.flex2 {
287+
padding-right: 10px;
288+
padding-left: 10px;
289+
border: rgb(68, 68, 68) solid 1px;
290+
border-radius: 5px;
291+
background-color: 252526;
292+
}
293+
276294
/* Material-UI */
277295

278296
/* Sortable tree sorting */

0 commit comments

Comments
 (0)