styling(misc): Misc. Tweaks and gen styling changes

General Phone:
- Removed unecessary border that was causing an issue at 80% zoom
- Added tooltips to the app grid
- Added 4 new backgrounds

Contact App:
- Fix styling issue that lead to seeing the background from modal
- Fix add new contact button sticky position

Notes:
- Removed padding from list
- Fixed localeName

Sellout:
- Changed NavBar and Title Color

Settings:
- Removed modal list padding

Note: Let me if you prefer the AppTitle component vs the old Title method
also this is just a start to the full app restyles
This commit is contained in:
Taso committed 2020-11-18 23:32:49 -05:00
1 parent f7165bf9ae
commit 954ef6277c
18 files changed
+316 -291

No files matched your search

+8 -8
View File
@@ -1,18 +1,18 @@
import React from "react";
import React from 'react';
import {
ListItemIcon,
ListItemText,
Slide,
makeStyles,
Paper,
} from "@material-ui/core";
import { List } from "./List";
import { ListItem } from "./ListItem";
} from '@material-ui/core';
import { List } from './List';
import { ListItem } from './ListItem';
const useStyles = makeStyles((theme) => ({
root: {
width: "100%",
position: "absolute",
width: '100%',
position: 'absolute',
bottom: 0,
zIndex: 2,
},
@@ -21,9 +21,9 @@ const useStyles = makeStyles((theme) => ({
export const ContextMenu = ({ open, onClose, options }) => {
const classes = useStyles();
return (
<Slide direction="up" in={open} mountOnEnter unmountOnExit>
<Slide direction='up' in={open} mountOnEnter unmountOnExit>
<Paper square className={classes.root}>
<List>
<List disablePadding>
{options.map((option) => (
<ListItem
selected={option.selected}
+28 -17
View File
@@ -1,8 +1,8 @@
import React, { useEffect } from "react";
import { AppIcon } from "./AppIcon";
import { Grid, makeStyles } from "@material-ui/core";
import { Link } from "react-router-dom";
import { useKeyboard } from "../../os/keyboard/hooks/useKeyboard";
import React, { useEffect } from 'react';
import { AppIcon } from './AppIcon';
import { Grid, makeStyles, Tooltip } from '@material-ui/core';
import { Link } from 'react-router-dom';
import { useKeyboard } from '../../os/keyboard/hooks/useKeyboard';
const useStyles = makeStyles((theme) => ({
root: {
@@ -10,7 +10,11 @@ const useStyles = makeStyles((theme) => ({
},
item: {
marginTop: theme.spacing(3),
width: "20%",
width: '20%',
},
tooltip: {
bottom: -8,
fontSize: 12,
},
}));
@@ -19,27 +23,34 @@ export const GridMenu = ({ items, Component = AppIcon }) => {
const classes = useStyles();
useEffect(function registerKeyHandlers() {
setKey("ArrowLeft", () => {
console.log(":v");
setKey('ArrowLeft', () => {
console.log(':v');
});
// eslint-disable-next-line
}, []);
return (
<Grid container justify="center">
<Grid container justify='center'>
<Grid container item>
{items &&
items.length &&
items.map((item) => (
<Grid
key={item.id}
item
className={classes.item}
component={Link}
to={item.path}
<Tooltip
title={item.id}
placement='top'
arrow
classes={{ tooltip: classes.tooltip }}
>
<Component {...item} />
</Grid>
<Grid
key={item.id}
item
className={classes.item}
component={Link}
to={item.path}
>
<Component {...item} />
</Grid>
</Tooltip>
))}
</Grid>
</Grid>