Skip to content

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

refining the theming

Ilian Sapundshiev55a89df40b1b
diff --git a/app/components/EntryContainer.js b/app/components/EntryContainer.js
index 59336e9b0..6fdf1ee54 100644
--- a/app/components/EntryContainer.js
+++ b/app/components/EntryContainer.js
@@ -116,7 +116,7 @@ const styles = theme => ({
display: 'flex',
flexDirection: 'row',
justifyContent: 'flex-start',
- borderBottom: '1px solid ' + theme.palette.secondary['200']
+ borderBottom: '1px solid ' + theme.palette.divider
},
flexLeft: {
flexDirection: 'row',
@@ -819,7 +819,7 @@ class EntryContainer extends React.Component<Props, State> {
</a>
<SplitPane
split="horizontal"
- resizerStyle={{ backgroundColor: this.props.theme.palette.secondary['200'] }}
+ resizerStyle={{ backgroundColor: this.props.theme.palette.divider }}
size={(currentEntry && currentEntry.isFile) ? this.state.entryPropertiesSplitSize : '100%'}
minSize={(currentEntry && currentEntry.isFile) ? defaultSplitSize : '100%'}
maxSize={(currentEntry && currentEntry.isFile) ? fullSplitSize : '100%'}
diff --git a/app/components/VerticalNavigation.js b/app/components/VerticalNavigation.js
index f99805f4c..4ec30b055 100644
--- a/app/components/VerticalNavigation.js
+++ b/app/components/VerticalNavigation.js
@@ -256,7 +256,7 @@ class VerticalNavigation extends React.Component<Props, State> {
minSize={44}
maxSize={44}
defaultSize={44}
- resizerStyle={{ backgroundColor: this.props.theme.palette.secondary['200'] }}
+ resizerStyle={{ backgroundColor: this.props.theme.palette.divider }}
>
<div style={this.styles.panel}>
<IconButton
diff --git a/app/containers/App.js b/app/containers/App.js
index 7df80fa2b..9806f6b44 100644
--- a/app/containers/App.js
+++ b/app/containers/App.js
@@ -25,8 +25,8 @@ import { I18nextProvider } from 'react-i18next'; // as we build ourself via webp
import MuiThemeProvider from '@material-ui/core/styles/MuiThemeProvider';
import createMuiTheme from '@material-ui/core/styles/createMuiTheme';
import { HotKeys } from 'react-hotkeys';
-import purple from '../assets/tspurple';
-import green from '../assets/tsgreen';
+// import lightTheme from '../assets/tspurple';
+// import darkTheme from '../assets/tsgreen';
import '../assets/fonts/roboto/index.css';
import i18n from '../services/i18n';
import { getCurrentTheme, getKeyBindingObject } from '../reducers/settings';
@@ -38,8 +38,17 @@ import AppOnBoarding from '../components/AppOnboarding';
const lightTheme = createMuiTheme({
palette: {
type: 'light', // Switching the dark mode on is a single property value change.
- primary: green,
- secondary: { main: '#cccccc', 200: '#ddd' }
+ primary: {
+ light: '#1DD19F',
+ main: '#1DD19F',
+ dark: '#1DD19F',
+ contrastText: '#1DD19F',
+ },
+ secondary: {
+ main: '#dcf3ec',
+ },
+ divider: '#ddd'
+ // secondary: { main: '#cccccc', 200: '#ddd' }
},
typography: {
useNextVariants: true,
@@ -49,8 +58,17 @@ const lightTheme = createMuiTheme({
const darkTheme = createMuiTheme({
palette: {
type: 'dark',
- primary: purple,
- secondary: { main: '#555', 200: '#777' }
+ primary: {
+ light: '#a21547',
+ main: '#a21547',
+ dark: '#a21547',
+ contrastText: '#a21547',
+ },
+ secondary: {
+ main: '#56454e',
+ },
+ divider: '#555'
+ // secondary: { main: '#555', 200: '#777' }
},
typography: {
useNextVariants: true,
diff --git a/app/perspectives/grid-perspective/src/index.js b/app/perspectives/grid-perspective/src/index.js
index 70ececf45..4ece72559 100644
--- a/app/perspectives/grid-perspective/src/index.js
+++ b/app/perspectives/grid-perspective/src/index.js
@@ -207,7 +207,7 @@ const styles = theme => ({
minHeight: 40,
height: 53,
backgroundColor: theme.palette.background.default,
- borderBottom: '1px solid ' + theme.palette.secondary['200'],
+ borderBottom: '1px solid ' + theme.palette.divider,
width: '100%'
}
});
@@ -845,7 +845,7 @@ class GridPerspective extends React.Component<Props, State> {
formatDateTime(fsEntry.lmdt, true)
}
>
- {fsEntry.lmdt && '⏲️ ' + moment(fsEntry.lmdt).fromNow()}
+ {fsEntry.lmdt && ' ' + moment(fsEntry.lmdt).fromNow() /* ⏲ */}
</span>
<span title={fsEntry.size + ' ' + i18n.t('core:sizeInBytes')}>
{' ' + formatFileSize(fsEntry.size)}
@@ -919,7 +919,7 @@ class GridPerspective extends React.Component<Props, State> {
formatDateTime(fsEntry.lmdt, true)
}
>
- {fsEntry.lmdt && '⏲️ ' + moment(fsEntry.lmdt).fromNow()}
+ {fsEntry.lmdt && '️ ' + moment(fsEntry.lmdt).fromNow() /* ⏲ */}
</span>
<span title={i18n.t('core:entryDescription')}>
{description && ' - ' + description}