macOS vibrancy fixes

This commit is contained in:
Eugene Pankov
2022-01-30 20:43:59 +01:00
parent 109a83db5b
commit 75764cd725
7 changed files with 12 additions and 9 deletions

View File

@@ -214,6 +214,10 @@ export class AppRootComponent {
}
}
@HostBinding('class.vibrant') get isVibrant () {
return this.config.store.appearance.vibrancy
}
private getToolbarButtons (aboveZero: boolean): ToolbarButton[] {
let buttons: ToolbarButton[] = []
this.config.enabledServices(this.toolbarButtonProviders).forEach(provider => {

View File

@@ -117,15 +117,13 @@ window-controls {
$border-color: $base1;
body {
app-root {
background: $body-bg;
&.vibrant {
background: rgba(255, 255, 255,.4) !important;
}
}
app-root {
&> .content {
.tab-bar {
.btn-tab-bar {

View File

@@ -25,15 +25,13 @@ window-controls {
$border-color: #111;
body {
app-root {
background: $body-bg;
&.vibrant {
background: rgba(0,0,0,.65);
}
}
app-root {
&.no-tabs {
background: rgba(0,0,0,.5);
}