Skip to content

TagSpaces is an offline, open source, document manager with tagging support

improving extension icons

Ilian Sapundshiev2d9c30a61a87
diff --git a/app/perspectives/grid-perspective/components/CellContent.tsx b/app/perspectives/grid-perspective/components/CellContent.tsx
index 0dfac643b..0c3dae6f6 100644
--- a/app/perspectives/grid-perspective/components/CellContent.tsx
+++ b/app/perspectives/grid-perspective/components/CellContent.tsx
@@ -25,6 +25,8 @@ import Typography from '@material-ui/core/Typography';
import IconButton from '@material-ui/core/IconButton';
import Paper from '@material-ui/core/Paper';
import FolderIcon from '@material-ui/icons/FolderOpen';
+import SelectedIcon from '@material-ui/icons/CheckCircle';
+import UnSelectedIcon from '@material-ui/icons/RadioButtonUnchecked';
import TagIcon from '@material-ui/icons/LocalOfferOutlined';
import { formatFileSize, formatDateTime } from '-/utils/misc';
import { extractTitle } from '-/utils/paths';
@@ -234,9 +236,19 @@ const CellContent = (props: Props) => {
maxWidth: 70,
padding: 10,
marginRight: 5,
+ textAlign: 'center',
backgroundColor: fsEntryBackgroundColor
}}
+ // onClick={() => {}}
>
+ {/* {selected && (
+ <span title={fsEntry.path}>
+ <SelectedIcon
+ className={classes.rowFolder}
+ style={{ backgroundColor: fsEntryColor }}
+ />
+ </span>
+ )} */}
{fsEntry.isFile ? (
<div
className={classes.rowFileExtension}
@@ -246,7 +258,7 @@ const CellContent = (props: Props) => {
{fsEntry.extension}
</div>
) : (
- <span className={classes.gridFolder} title={fsEntry.path}>
+ <span title={fsEntry.path}>
<FolderIcon
className={classes.rowFolder}
style={{ backgroundColor: fsEntryColor }}
diff --git a/app/perspectives/grid-perspective/components/styles.css.tsx b/app/perspectives/grid-perspective/components/styles.css.tsx
index be909d63b..bd0f79296 100644
--- a/app/perspectives/grid-perspective/components/styles.css.tsx
+++ b/app/perspectives/grid-perspective/components/styles.css.tsx
@@ -95,6 +95,7 @@ export default (theme: any): any => ({
height: 20,
color: 'white',
// color: theme.palette.getContrastText(),
+ borderRadius: 3,
textAlign: 'center'
},
rowFileExtension: {
@@ -103,13 +104,15 @@ export default (theme: any): any => ({
marginTop: 5,
marginRight: 5,
marginLeft: 5,
- maxWidth: 45,
+ width: 35,
+ maxWidth: 60,
minHeight: 15,
borderWidth: 1,
color: 'white',
textTransform: 'uppercase',
fontSize: 12,
fontWeight: 'bold',
+ borderRadius: 3,
// color: theme.palette.getContrastText(),
textAlign: 'center'
},
@@ -129,13 +132,15 @@ export default (theme: any): any => ({
color: 'white',
padding: 5,
minHeight: 10,
- height: 20
+ height: 20,
+ borderRadius: 3
},
gridFolder: {
color: 'white',
padding: 5,
minHeight: 15,
- height: 20
+ height: 20,
+ borderRadius: 3
},
topToolbar: {
paddingLeft: 5,