TagSpaces is an offline, open source, document manager with tagging support
adjsuting theme colors
Ilian Sapundshieva37c2c4e05c5
diff --git a/app/components/SidePanels.css.js b/app/components/SidePanels.css.jsindex 5662e2900..af1e66c80 100644--- a/app/components/SidePanels.css.js+++ b/app/components/SidePanels.css.js@@ -72,7 +72,7 @@ export default (theme) => ({paddingBottom: 2,borderRadius: 5,// border: '2px solid ' + theme.palette.primary['200'],- backgroundColor: theme.palette.grey[300]+ backgroundColor: theme.palette.secondary.main},panelTitle: {textTransform: 'uppercase',diff --git a/app/containers/App.js b/app/containers/App.jsindex dcbbcf331..5df6b7c09 100644--- a/app/containers/App.js+++ b/app/containers/App.js@@ -39,7 +39,7 @@ const lightTheme = createMuiTheme({palette: {type: 'light', // Switching the dark mode on is a single property value change.primary: green,- secondary: green+ secondary: { main: '#cccccc', 200: '#555' }},typography: {useNextVariants: true,@@ -50,6 +50,7 @@ const darkTheme = createMuiTheme({palette: {type: 'dark',primary: purple,+ secondary: { main: '#555', 200: '#222' }},typography: {useNextVariants: true,diff --git a/app/containers/MainPage.js b/app/containers/MainPage.jsindex 4e663a23f..afeab7c96 100644--- a/app/containers/MainPage.js+++ b/app/containers/MainPage.js@@ -296,7 +296,7 @@ class MainPage extends Component<Props, State> {};render() {- const { classes } = this.props;+ const { classes, theme } = this.props;const { FILE } = NativeTypes;/* if (this.state.width < 400) {@@ -314,7 +314,7 @@ class MainPage extends Component<Props, State> {split="vertical"minSize={200}maxSize={450}- resizerStyle={{ backgroundColor: 'gray' }}+ resizerStyle={{ backgroundColor: theme.palette.secondary['200'] }}defaultSize={this.props.leftSplitSize}size={this.state.isManagementPanelVisible@@ -335,6 +335,7 @@ class MainPage extends Component<Props, State> {<SplitPanesplit="vertical"minSize="200"+ resizerStyle={{ backgroundColor: theme.palette.secondary['200'] }}size={this.state.mainSplitSize}onChange={size => {if (size > 0 && this.state.width) {@@ -376,6 +377,7 @@ class MainPage extends Component<Props, State> {)}split="vertical"minSize={150}+ resizerStyle={{ backgroundColor: theme.palette.secondary['200'] }}defaultSize={this.state.isViewerPanelVisible ? '50%' : '100%'}><FolderContainer@@ -500,6 +502,6 @@ function mapDispatchToProps(dispatch) {export default DragDropContext(HTML5Backend)(connect(mapStateToProps, mapDispatchToProps)(- translate(['core'], { wait: true })(withStyles(styles)(MainPage))+ translate(['core'], { wait: true })(withStyles(styles, { withTheme: true })(MainPage))));