mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
styling(NotificationBar): Battery and Import Config
Added a battery icon, subject to change depending on how it looks longterm. Configured to import default.json for CellProvider
This commit is contained in:
1 parent
d9c71203ac
commit
4f9b617854
2 files changed
+12
-6
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"4gNetowrk": "AT&T",
|
"cellProvider": "AT&T",
|
||||||
"language": "en_US",
|
"language": "en_US",
|
||||||
"wallpapers": ["default.png", "dragon.jpg", "legacy.jpg"],
|
"wallpapers": ["default.png", "dragon.jpg", "legacy.jpg"],
|
||||||
"frames": ["default.png", "s10.png"],
|
"frames": ["default.png", "s10.png"],
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ 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 Default from "../../../config/default.json";
|
||||||
|
|
||||||
const useStyles = makeStyles((theme) => ({
|
const useStyles = makeStyles((theme) => ({
|
||||||
root: {
|
root: {
|
||||||
@@ -10,13 +12,15 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
width: "100%",
|
width: "100%",
|
||||||
color: theme.palette.text.primary,
|
color: theme.palette.text.primary,
|
||||||
zIndex: 2,
|
zIndex: 2,
|
||||||
|
paddingLeft: "10px",
|
||||||
|
paddingRight: "10px",
|
||||||
},
|
},
|
||||||
item: {
|
item: {
|
||||||
margin: "0 6px",
|
margin: "0 6px",
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
position: "relative",
|
position: "relative",
|
||||||
bottom: "2px",
|
bottom: "4px",
|
||||||
color: theme.palette.text.primary,
|
color: theme.palette.text.primary,
|
||||||
},
|
},
|
||||||
icon: {
|
icon: {
|
||||||
@@ -60,10 +64,12 @@ export const NotificationBar = ({ notifications = [] }: IProps) => {
|
|||||||
<SignalIcon fontSize="small" />
|
<SignalIcon fontSize="small" />
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item className={classes.item}>
|
<Grid item className={classes.item}>
|
||||||
<Typography
|
<Typography className={classes.text} variant="button">
|
||||||
className={classes.text}
|
{Default.cellProvider}
|
||||||
variant="button"
|
</Typography>
|
||||||
>{`AT&T`}</Typography>
|
</Grid>
|
||||||
|
<Grid item>
|
||||||
|
<Battery90Icon style={{ transform: "rotate(90deg)" }} />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
Reference in new issue
Block a user