refactor(mica): remove background effects system

This commit is contained in:
Elian Doran 2024-12-07 02:48:10 +02:00
parent 3f104ca663
commit 407448476b
No known key found for this signature in database
3 changed files with 8 additions and 13 deletions

View File

@ -413,7 +413,7 @@ body.layout-horizontal {
}
/* #region Mica */
body.background-effects {
body.electron.platform-win32 {
--launcher-pane-background-color: rgba(255, 255, 255, 0.09);
--tab-background-color: transparent;
--active-tab-background-color: var(--launcher-pane-background-color);
@ -421,21 +421,18 @@ body.background-effects {
--native-titlebar-background: #00000000;
}
body.background-effects,
body.background-effects #root-widget {
background: transparent !important;
}
body.background-effects.layout-vertical {
body.electron.platform-win32.layout-vertical {
--left-pane-background-color: transparent;
--launcher-pane-background-color: rgba(255, 255, 255, 0.055);
}
body.background-effects #launcher-pane .launcher-button {
background-color: transparent;
body.electron.platform-win32,
body.electron.platform-win32 #root-widget,
body.electron.platform-win32 #launcher-pane .launcher-button {
background: transparent !important;
}
body.background-effects.layout-horizontal #horizontal-main-container {
body.electron.platform-win32.layout-horizontal #horizontal-main-container {
background-color: var(--root-background);
}
/* #endregion */

View File

@ -37,7 +37,6 @@ function index(req: Request, res: Response) {
platform: process.platform,
isElectron,
hasNativeTitleBar: (isElectron && options.nativeTitleBarVisible === "true"),
hasBackgroundEffects: true, // TODO: Replace with option
mainFontSize: parseInt(options.mainFontSize),
treeFontSize: parseInt(options.treeFontSize),
detailFontSize: parseInt(options.detailFontSize),

View File

@ -6,7 +6,7 @@
<link rel="manifest" crossorigin="use-credentials" href="manifest.webmanifest">
<title>TriliumNext Notes</title>
</head>
<body class="desktop heading-style-<%= headingStyle %> layout-<%= layoutOrientation %> platform-<%= platform %> <%= isElectron ? 'electron' : '' %> <%= hasNativeTitleBar ? 'native-titlebar' : '' %> <%= hasBackgroundEffects ? 'background-effects' : '' %>">
<body class="desktop heading-style-<%= headingStyle %> layout-<%= layoutOrientation %> platform-<%= platform %> <%= isElectron ? 'electron' : '' %> <%= hasNativeTitleBar ? 'native-titlebar' : '' %>">
<noscript><%= t("javascript-required") %></noscript>
<script>
@ -38,7 +38,6 @@
appPath: "<%= appPath %>",
platform: "<%= platform %>",
hasNativeTitleBar: <%= hasNativeTitleBar %>,
hasBackgroundEffects: <%= hasBackgroundEffects %>,
TRILIUM_SAFE_MODE: <%= !!process.env.TRILIUM_SAFE_MODE %>
};
</script>