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

View File

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

View File

@ -6,7 +6,7 @@
<link rel="manifest" crossorigin="use-credentials" href="manifest.webmanifest"> <link rel="manifest" crossorigin="use-credentials" href="manifest.webmanifest">
<title>TriliumNext Notes</title> <title>TriliumNext Notes</title>
</head> </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> <noscript><%= t("javascript-required") %></noscript>
<script> <script>
@ -38,7 +38,6 @@
appPath: "<%= appPath %>", appPath: "<%= appPath %>",
platform: "<%= platform %>", platform: "<%= platform %>",
hasNativeTitleBar: <%= hasNativeTitleBar %>, hasNativeTitleBar: <%= hasNativeTitleBar %>,
hasBackgroundEffects: <%= hasBackgroundEffects %>,
TRILIUM_SAFE_MODE: <%= !!process.env.TRILIUM_SAFE_MODE %> TRILIUM_SAFE_MODE: <%= !!process.env.TRILIUM_SAFE_MODE %>
}; };
</script> </script>