mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Desktop: Make depthColor theme property optional
This commit is contained in:
parent
3d498e7a75
commit
893531f8c7
@ -119,7 +119,7 @@ class SideBarComponent extends React.Component {
|
||||
display: "flex",
|
||||
alignItems: "stretch",
|
||||
// Allow 3 levels of color depth
|
||||
backgroundColor: theme.depthColor.replace('OPACITY', Math.min(depth * 0.1, 0.3)),
|
||||
backgroundColor: !theme.depthColor ? '#00000000' : theme.depthColor.replace('OPACITY', Math.min(depth * 0.1, 0.3)),
|
||||
},
|
||||
listItem: {
|
||||
fontFamily: theme.fontFamily,
|
||||
|
Loading…
Reference in New Issue
Block a user