Skip to content

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

making default perspecitive toolbar transluent (#1280)

Iliandbcba6856965
diff --git a/app/perspectives/grid-perspective/components/MainContainer.tsx b/app/perspectives/grid-perspective/components/MainContainer.tsx
index 46f0454aa..60a34ddfb 100644
--- a/app/perspectives/grid-perspective/components/MainContainer.tsx
+++ b/app/perspectives/grid-perspective/components/MainContainer.tsx
@@ -797,7 +797,7 @@ class GridPerspective extends React.Component<Props, State> {
style={{
height:
'calc(100% - ' +
- (AppConfig.isCordova ? '320' : '104') + // todo handle cordova screen sizes
+ (AppConfig.isCordova ? '320' : '51') + // todo handle cordova screen sizes
'px)'
}}
>
@@ -833,6 +833,7 @@ class GridPerspective extends React.Component<Props, State> {
: classes.rowContainer
}
style={{
+ marginTop: 53,
gridTemplateColumns:
layoutType === 'grid'
? 'repeat(auto-fit,minmax(' + entryWidth + 'px,1fr))'
diff --git a/app/perspectives/grid-perspective/components/styles.css.tsx b/app/perspectives/grid-perspective/components/styles.css.tsx
index 41e835b90..34b8678ee 100644
--- a/app/perspectives/grid-perspective/components/styles.css.tsx
+++ b/app/perspectives/grid-perspective/components/styles.css.tsx
@@ -140,8 +140,16 @@ export default (theme: any): any => ({
paddingRight: 5,
minHeight: 40,
height: 53,
- backgroundColor: theme.palette.background.default,
- borderBottom: '1px solid ' + theme.palette.divider,
+ position: 'absolute',
+ zIndex: 1,
+ background:
+ 'linear-gradient(0deg, ' +
+ theme.palette.background.default +
+ 'AA 0%, ' +
+ theme.palette.background.default +
+ ' 99%)',
+ backdropFilter: 'blur(5px)',
+ // borderBottom: '1px solid ' + theme.palette.divider,
width: '100%',
overflowX: AppConfig.isFirefox ? 'auto' : 'overlay'
}