styles(theming): Started a new custom dark theme

- Default has been changed to taso-dark while in-development
This commit is contained in:
Taso committed 2020-11-18 18:21:40 -05:00
1 parent 36007c5310
commit 07ff8833c7
4 files changed
+111 -91

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"wallpaper": "default.png", "wallpaper": "default.png",
"frame": "s10.png", "frame": "s10.png",
"theme": "default-dark" "theme": "taso-dark"
} }
+20
View File
@@ -13,6 +13,26 @@
"palette": { "palette": {
"type": "light" "type": "light"
} }
},
"taso-dark": {
"common": {},
"palette": {
"type": "dark",
"background": {
"paper": "#1c1c1c",
"default": "#121212",
"dark": "#000000",
"light": "#383838"
},
"text": {
"primary": "#fff",
"secondary": "rgba(255, 255, 255, 0.7)",
"disabled": "rgba(255, 255, 255, 0.5)",
"hint": "rgba(255, 255, 255, 0.5)",
"icon": "rgba(255, 255, 255, 0.5)"
}
},
"divider": "rgba(255, 255, 255, 0.12)"
} }
} }
} }
+68 -68
View File
@@ -1,5 +1,5 @@
import React from "react"; import React from 'react';
import { useConfig } from "../../../config/hooks/useConfig"; import { useConfig } from '../../../config/hooks/useConfig';
import { import {
blue, blue,
common, common,
@@ -9,109 +9,109 @@ import {
yellow, yellow,
red, red,
amber, amber,
} from "@material-ui/core/colors"; } from '@material-ui/core/colors';
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { import {
faAd, faAd,
faPlaneArrival, faPlaneArrival,
faPhoneAlt, faPhoneAlt,
faWonSign, faWonSign,
faStickyNote faStickyNote,
} from "@fortawesome/free-solid-svg-icons"; } from '@fortawesome/free-solid-svg-icons';
import { faTwitter } from "@fortawesome/free-brands-svg-icons"; import { faTwitter } from '@fortawesome/free-brands-svg-icons';
import ContactsIcon from "@material-ui/icons/Contacts"; import ContactsIcon from '@material-ui/icons/Contacts';
import SettingsIcon from "@material-ui/icons/Settings"; import SettingsIcon from '@material-ui/icons/Settings';
import MessageIcon from "@material-ui/icons/Message"; import MessageIcon from '@material-ui/icons/Message';
import { atom } from "recoil"; import { atom } from 'recoil';
import { CalculatorIcon } from "../../../apps/calculator/components/CalculatorIcon"; import { CalculatorIcon } from '../../../apps/calculator/components/CalculatorIcon';
import { Route } from "react-router-dom"; import { Route } from 'react-router-dom';
import { DialerApp } from "../../../apps/dialer/components/DialerApp"; import { DialerApp } from '../../../apps/dialer/components/DialerApp';
import { ContactsApp } from "../../../apps/contacts/components/ContactsApp"; import { ContactsApp } from '../../../apps/contacts/components/ContactsApp';
import { CalculatorApp } from "../../../apps/calculator/components/CalculatorApp"; import { CalculatorApp } from '../../../apps/calculator/components/CalculatorApp';
import { SettingsApp } from "../../../apps/settings/components/SettingsApp"; import { SettingsApp } from '../../../apps/settings/components/SettingsApp';
import { BankApp } from "../../../apps/bank/components/BankApp"; import { BankApp } from '../../../apps/bank/components/BankApp';
import { MessagesApp } from "../../../apps/messages/components/MessagesApp"; import { MessagesApp } from '../../../apps/messages/components/MessagesApp';
import { TwitterApp } from "../../../apps/twitter/components/TwitterApp"; import { TwitterApp } from '../../../apps/twitter/components/TwitterApp';
import { ExampleApp } from "../../../apps/example/components/ExampleApp"; import { ExampleApp } from '../../../apps/example/components/ExampleApp';
import { SelloutApp } from "../../../apps/sellout/components/SelloutApp"; import { SelloutApp } from '../../../apps/sellout/components/SelloutApp';
import { NotesApp } from "../../../apps/notes/NotesApp"; import { NotesApp } from '../../../apps/notes/NotesApp';
const appsState = atom({ const appsState = atom({
key: "apps", key: 'apps',
default: { default: {
preinstalled: [ preinstalled: [
{ {
id: "DIALER", id: 'DIALER',
nameLocale: "APPS_DIALER", nameLocale: 'APPS_DIALER',
icon: <FontAwesomeIcon icon={faPhoneAlt} size="xs" />, icon: <FontAwesomeIcon icon={faPhoneAlt} size='xs' />,
backgroundColor: green[600], backgroundColor: green[600],
color: common.white, color: common.white,
path: "/phone", path: '/phone',
Route: () => <Route path="/phone" component={DialerApp} />, Route: () => <Route path='/phone' component={DialerApp} />,
}, },
{ {
id: "MESSAGES", id: 'MESSAGES',
nameLocale: "APPS_MESSAGES", nameLocale: 'APPS_MESSAGES',
icon: <MessageIcon fontSize="default" />, icon: <MessageIcon fontSize='default' />,
backgroundColor: amber[700], backgroundColor: amber[700],
color: common.white, color: common.white,
path: "/messages", path: '/messages',
Route: () => <Route path="/messages" component={MessagesApp} />, Route: () => <Route path='/messages' component={MessagesApp} />,
}, },
{ {
id: "CONTACTS", id: 'CONTACTS',
nameLocale: "APPS_CONTACTS", nameLocale: 'APPS_CONTACTS',
icon: <ContactsIcon />, icon: <ContactsIcon />,
backgroundColor: blue[500], backgroundColor: blue[500],
color: common.white, color: common.white,
path: "/contacts", path: '/contacts',
Route: () => <Route path="/contacts" component={ContactsApp} />, Route: () => <Route path='/contacts' component={ContactsApp} />,
}, },
{ {
id: "CALCULATOR", id: 'CALCULATOR',
nameLocale: "APPS_CALCULATOR", nameLocale: 'APPS_CALCULATOR',
icon: <CalculatorIcon />, icon: <CalculatorIcon />,
backgroundColor: purple[500], backgroundColor: purple[500],
color: grey[50], color: grey[50],
path: "/calculator", path: '/calculator',
Route: () => <Route path="/calculator" component={CalculatorApp} />, Route: () => <Route path='/calculator' component={CalculatorApp} />,
}, },
{ {
id: "SETTINGS", id: 'SETTINGS',
nameLocale: "APPS_SETTINGS", nameLocale: 'APPS_SETTINGS',
icon: <SettingsIcon />, icon: <SettingsIcon />,
backgroundColor: grey[700], backgroundColor: '#383838',
color: grey[50], color: grey[50],
path: "/settings", path: '/settings',
Route: () => <Route path="/settings" component={SettingsApp} />, Route: () => <Route path='/settings' component={SettingsApp} />,
}, },
{ {
id: "BANK", id: 'BANK',
nameLocale: "APPS_BANK", nameLocale: 'APPS_BANK',
icon: <FontAwesomeIcon icon={faWonSign} size="xs" />, icon: <FontAwesomeIcon icon={faWonSign} size='xs' />,
backgroundColor: blue[900], backgroundColor: blue[900],
color: common.white, color: common.white,
path: "/bank", path: '/bank',
Route: () => <Route path="/bank" component={BankApp} />, Route: () => <Route path='/bank' component={BankApp} />,
}, },
{ {
id: "TWITTER", id: 'TWITTER',
nameLocale: "APPS_TWITTER", nameLocale: 'APPS_TWITTER',
icon: <FontAwesomeIcon icon={faTwitter} fixedWidth size="xs" />, icon: <FontAwesomeIcon icon={faTwitter} fixedWidth size='xs' />,
backgroundColor: blue[600], backgroundColor: blue[600],
color: common.white, color: common.white,
path: "/twitter", path: '/twitter',
Route: () => <Route path="/twitter" component={TwitterApp} />, Route: () => <Route path='/twitter' component={TwitterApp} />,
}, },
{ {
id: "SELLOUT", id: 'SELLOUT',
nameLocale: "APPS_SELLOUT", nameLocale: 'APPS_SELLOUT',
icon: <FontAwesomeIcon icon={faAd} fixedWidth />, icon: <FontAwesomeIcon icon={faAd} fixedWidth />,
backgroundColor: red[500], backgroundColor: red[500],
color: common.white, color: common.white,
path: "/sellout", path: '/sellout',
Route: () => <Route path="/sellout" component={SelloutApp} />, Route: () => <Route path='/sellout' component={SelloutApp} />,
}, },
{ {
id: 'NOTES', id: 'NOTES',
@@ -119,17 +119,17 @@ const appsState = atom({
icon: <FontAwesomeIcon icon={faStickyNote} fixedWidth />, icon: <FontAwesomeIcon icon={faStickyNote} fixedWidth />,
backgroundColor: yellow[800], backgroundColor: yellow[800],
color: common.white, color: common.white,
path: "/notes", path: '/notes',
Route: () => <Route path="/notes" component={NotesApp}/> Route: () => <Route path='/notes' component={NotesApp} />,
}, },
{ {
id: "EXAMPLE", id: 'EXAMPLE',
nameLocale: "APPS_EXAMPLE", nameLocale: 'APPS_EXAMPLE',
icon: <FontAwesomeIcon icon={faPlaneArrival} size="sm" />, icon: <FontAwesomeIcon icon={faPlaneArrival} size='sm' />,
backgroundColor: blue[500], backgroundColor: blue[500],
color: blue[50], color: blue[50],
path: "/example", path: '/example',
Route: () => <Route path="/example" component={ExampleApp} />, Route: () => <Route path='/example' component={ExampleApp} />,
}, },
], ],
}, },
@@ -1,30 +1,30 @@
import React from "react"; import React from 'react';
import { makeStyles, Typography, Grid, IconButton } from "@material-ui/core"; import { makeStyles, Typography, Grid, IconButton } from '@material-ui/core';
import { fade } from "@material-ui/core/styles/colorManipulator"; import { fade } from '@material-ui/core/styles/colorManipulator';
import SignalIcon from "@material-ui/icons/SignalCellular3Bar"; import SignalIcon from '@material-ui/icons/SignalCellular3Bar';
import Battery90Icon from "@material-ui/icons/Battery90"; import Battery90Icon from '@material-ui/icons/Battery90';
import Default from "../../../config/default.json"; import Default from '../../../config/default.json';
const useStyles = makeStyles((theme) => ({ const useStyles = makeStyles((theme) => ({
root: { root: {
backgroundColor: fade(theme.palette.background.paper, 0.7), backgroundColor: theme.palette.background.default,
height: "25px", height: '25px',
width: "100%", width: '100%',
color: theme.palette.text.primary, color: theme.palette.text.primary,
zIndex: 2, zIndex: 2,
paddingLeft: "10px", paddingLeft: '10px',
paddingRight: "10px", paddingRight: '10px',
}, },
item: { item: {
margin: "0 6px", margin: '0 6px',
}, },
text: { text: {
position: "relative", position: 'relative',
bottom: "4px", bottom: '4px',
color: theme.palette.text.primary, color: theme.palette.text.primary,
}, },
icon: { icon: {
padding: "4px", padding: '4px',
color: theme.palette.text.primary, color: theme.palette.text.primary,
}, },
})); }));
@@ -44,10 +44,10 @@ export const NotificationBar = ({ notifications = [] }: IProps) => {
<Grid <Grid
className={classes.root} className={classes.root}
container container
justify="space-between" justify='space-between'
wrap="nowrap" wrap='nowrap'
> >
<Grid container item wrap="nowrap"> <Grid container item wrap='nowrap'>
{notifications.map((notification) => ( {notifications.map((notification) => (
<Grid <Grid
item item
@@ -59,17 +59,17 @@ export const NotificationBar = ({ notifications = [] }: IProps) => {
</Grid> </Grid>
))} ))}
</Grid> </Grid>
<Grid container item wrap="nowrap" justify="flex-end"> <Grid container item wrap='nowrap' justify='flex-end'>
<Grid item> <Grid item>
<SignalIcon fontSize="small" /> <SignalIcon fontSize='small' />
</Grid> </Grid>
<Grid item className={classes.item}> <Grid item className={classes.item}>
<Typography className={classes.text} variant="button"> <Typography className={classes.text} variant='button'>
{Default.cellProvider} {Default.cellProvider}
</Typography> </Typography>
</Grid> </Grid>
<Grid item> <Grid item>
<Battery90Icon style={{ transform: "rotate(90deg)" }} /> <Battery90Icon style={{ transform: 'rotate(90deg)' }} />
</Grid> </Grid>
</Grid> </Grid>
</Grid> </Grid>