mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	Style: improve window background effects (#6913)
This commit is contained in:
		
						commit
						8dc5ada553
					
				@ -13,6 +13,7 @@
 | 
			
		||||
 | 
			
		||||
    --theme-style: dark;
 | 
			
		||||
    --native-titlebar-background: #00000000;
 | 
			
		||||
    --window-background-color-bgfx: transparent; /* When background effects enabled */
 | 
			
		||||
 | 
			
		||||
    --main-background-color: #272727;
 | 
			
		||||
    --main-text-color: #ccc;
 | 
			
		||||
@ -147,6 +148,7 @@
 | 
			
		||||
    --launcher-pane-vert-button-hover-background: #ffffff1c;
 | 
			
		||||
    --launcher-pane-vert-button-hover-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2);
 | 
			
		||||
    --launcher-pane-vert-button-focus-outline-color: var(--input-focus-outline-color);
 | 
			
		||||
    --launcher-pane-vert-background-color-bgfx: #00000026; /* When background effects enabled */
 | 
			
		||||
 | 
			
		||||
    --launcher-pane-horiz-border-color: rgb(22, 22, 22);
 | 
			
		||||
    --launcher-pane-horiz-background-color: #282828;
 | 
			
		||||
@ -155,6 +157,8 @@
 | 
			
		||||
    --launcher-pane-horiz-button-hover-background: #ffffff1c;
 | 
			
		||||
    --launcher-pane-horiz-button-hover-shadow: unset;
 | 
			
		||||
    --launcher-pane-horiz-button-focus-outline-color: var(--input-focus-outline-color);
 | 
			
		||||
    --launcher-pane-horiz-background-color-bgfx: #ffffff17; /* When background effects enabled */
 | 
			
		||||
    --launcher-pane-horiz-border-color-bgfx: #00000080; /* When background effects enabled */
 | 
			
		||||
 | 
			
		||||
    --protected-session-active-icon-color: #8edd8e;
 | 
			
		||||
    --sync-status-error-pulse-color: #f47871;
 | 
			
		||||
 | 
			
		||||
@ -13,6 +13,7 @@
 | 
			
		||||
 | 
			
		||||
    --theme-style: light;
 | 
			
		||||
    --native-titlebar-background: #ffffff00;
 | 
			
		||||
    --window-background-color-bgfx: transparent; /* When background effects enabled */
 | 
			
		||||
 | 
			
		||||
    --main-background-color: white;
 | 
			
		||||
    --main-text-color: black;
 | 
			
		||||
@ -121,11 +122,11 @@
 | 
			
		||||
    --left-pane-collapsed-border-color: #0000000d;
 | 
			
		||||
    --left-pane-background-color: #f2f2f2;
 | 
			
		||||
    --left-pane-text-color: #383838;
 | 
			
		||||
    --left-pane-item-hover-background: #eaeaea;
 | 
			
		||||
    --left-pane-item-hover-background: rgba(0, 0, 0, 0.032);
 | 
			
		||||
    --left-pane-item-selected-background: white;
 | 
			
		||||
    --left-pane-item-selected-color: black;
 | 
			
		||||
    --left-pane-item-selected-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
 | 
			
		||||
    --left-pane-item-action-button-background: #d7d7d7;
 | 
			
		||||
    --left-pane-item-action-button-background: rgba(0, 0, 0, 0.11);
 | 
			
		||||
    --left-pane-item-action-button-color: inherit;
 | 
			
		||||
    --left-pane-item-action-button-hover-background: white;
 | 
			
		||||
    --left-pane-item-action-button-hover-shadow: 2px 2px 3px rgba(0, 0, 0, 0.15);
 | 
			
		||||
@ -141,6 +142,7 @@
 | 
			
		||||
    --launcher-pane-vert-button-hover-background: white;
 | 
			
		||||
    --launcher-pane-vert-button-hover-shadow: 4px 4px 4px rgba(0, 0, 0, 0.075);
 | 
			
		||||
    --launcher-pane-vert-button-focus-outline-color: var(--input-focus-outline-color);
 | 
			
		||||
    --launcher-pane-vert-background-color-bgfx: #00000009; /* When background effects enabled */
 | 
			
		||||
 | 
			
		||||
    --launcher-pane-horiz-border-color: rgba(0, 0, 0, 0.1);
 | 
			
		||||
    --launcher-pane-horiz-background-color: #fafafa;
 | 
			
		||||
@ -148,6 +150,8 @@
 | 
			
		||||
    --launcher-pane-horiz-button-hover-background: var(--icon-button-hover-background);
 | 
			
		||||
    --launcher-pane-horiz-button-hover-shadow: unset;
 | 
			
		||||
    --launcher-pane-horiz-button-focus-outline-color: var(--input-focus-outline-color);
 | 
			
		||||
    --launcher-pane-horiz-background-color-bgfx: #ffffffb3; /* When background effects enabled */
 | 
			
		||||
    --launcher-pane-horiz-border-color-bgfx: #00000026; /* When background effects enabled */
 | 
			
		||||
 | 
			
		||||
    --protected-session-active-icon-color: #16b516;
 | 
			
		||||
    --sync-status-error-pulse-color: #ff5528;
 | 
			
		||||
 | 
			
		||||
@ -36,31 +36,23 @@ body.mobile {
 | 
			
		||||
 | 
			
		||||
/* #region Mica */
 | 
			
		||||
body.background-effects.platform-win32 {
 | 
			
		||||
    --launcher-pane-horiz-border-color: rgba(0, 0, 0, 0.15);
 | 
			
		||||
    --launcher-pane-horiz-background-color: rgba(255, 255, 255, 0.7);
 | 
			
		||||
    --launcher-pane-vert-background-color: rgba(255, 255, 255, 0.055);
 | 
			
		||||
    --tab-background-color: transparent;
 | 
			
		||||
    --new-tab-button-background: transparent;
 | 
			
		||||
    --active-tab-background-color: var(--launcher-pane-horiz-background-color);
 | 
			
		||||
    --background-material: tabbed;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media (prefers-color-scheme: dark) {
 | 
			
		||||
    body.background-effects.platform-win32 {
 | 
			
		||||
        --launcher-pane-horiz-border-color: rgba(0, 0, 0, 0.5);
 | 
			
		||||
        --launcher-pane-horiz-background-color: rgba(255, 255, 255, 0.09);
 | 
			
		||||
    }
 | 
			
		||||
    --launcher-pane-horiz-border-color: var(--launcher-pane-horiz-border-color-bgfx);
 | 
			
		||||
    --launcher-pane-horiz-background-color: var(--launcher-pane-horiz-background-color-bgfx);
 | 
			
		||||
    --launcher-pane-vert-background-color: var(--launcher-pane-vert-background-color-bgfx);
 | 
			
		||||
    --tab-background-color: var(--window-background-color-bgfx);
 | 
			
		||||
    --new-tab-button-background: var(--window-background-color-bgfx);
 | 
			
		||||
    --active-tab-background-color: var(--launcher-pane-horiz-background-color);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
body.background-effects.platform-win32.layout-vertical {
 | 
			
		||||
    --left-pane-background-color: transparent;
 | 
			
		||||
    --left-pane-item-hover-background: rgba(127, 127, 127, 0.05);
 | 
			
		||||
    --left-pane-background-color: var(--window-background-color-bgfx);
 | 
			
		||||
    --background-material: mica;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
body.background-effects.platform-win32,
 | 
			
		||||
body.background-effects.platform-win32 #root-widget {
 | 
			
		||||
    background: transparent !important;
 | 
			
		||||
    background: var(--window-background-color-bgfx) !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
body.background-effects.platform-win32.layout-horizontal #horizontal-main-container,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user