add black theme

This commit is contained in:
marlon-erler
2026-09-25 14:18:39 +02:00
parent 2ed43598a8
commit a81d061812
10 changed files with 177 additions and 150 deletions
+6 -3
View File
@@ -172,12 +172,13 @@ body[theme=dark] [color]:not([color=standard]).subtle-background {
}
#background-wrapper {
position: fixed;
inset: 0px;
transform: scale(1.2);
top: var(--safe-area-top);
left: var(--safe-area-left);
right: var(--safe-area-right);
bottom: var(--safe-area-bottom);
z-index: 1;
pointer-events: none;
overflow: hidden;
filter: blur(40px);
background: var(--background);
}
main {
@@ -187,6 +188,8 @@ main {
content: "";
position: absolute;
inset: 0px;
transform: scale(1.2);
filter: blur(40px);
z-index: -1;
pointer-events: none;
}
+6 -2
View File
@@ -1021,8 +1021,12 @@ html {
flex-direction: column-reverse;
margin: 0px;
width: 100%;
height: 100%;
position: fixed;
top: var(--safe-area-top);
left: var(--safe-area-left);
right: var(--safe-area-right);
bottom: var(--safe-area-bottom);
}
body,
Vendored
+1 -1
View File
@@ -1,4 +1,4 @@
const VERSION = "2610 Beta 4.2"
const VERSION = "2610 Beta 4.7"
function processUrl(event) {
const url = event.request.url;
+1 -1
View File
@@ -1 +1 @@
2610 Beta 4.2
2610 Beta 4.7
+1
View File
@@ -107,4 +107,5 @@ export enum ThemeSettings {
Light = "light",
System = "system",
Dynamic = "dynamic",
Black = "black",
}
+6 -2
View File
@@ -192,6 +192,10 @@ function SettingsAppearancePane(
coreViewModel.translations.settings.themes.dynamic,
ThemeSettings.Dynamic,
],
[
coreViewModel.translations.settings.themes.system,
ThemeSettings.System,
],
[
coreViewModel.translations.settings.themes.dark,
ThemeSettings.Dark,
@@ -201,8 +205,8 @@ function SettingsAppearancePane(
ThemeSettings.Light,
],
[
coreViewModel.translations.settings.themes.system,
ThemeSettings.System,
coreViewModel.translations.settings.themes.black,
ThemeSettings.Black,
],
]),
settingsViewModel.theme,
+3
View File
@@ -98,6 +98,7 @@ const englishTranslations = {
dark: "Dark",
light: "Light",
system: "Device theme",
black: "Black",
},
version: "Version",
@@ -442,6 +443,7 @@ export const allTranslations: {
dark: "Dunkel",
light: "Hell",
system: "Geräteeinstellung",
black: "Schwarz",
},
version: "Version",
@@ -754,6 +756,7 @@ export const allTranslations: {
dark: "Oscuro",
light: "Claro",
system: "Según dispositivo",
black: "Negro",
},
version: "Versión",
Binary file not shown.
+20 -10
View File
@@ -55,19 +55,21 @@ export default class SettingsViewModel extends Context {
applyTheme = (): void => {
let theme: string = this.theme.value;
if (theme == ThemeSettings.Dynamic) {
if (theme == ThemeSettings.System)
theme = SettingsViewModel.getSystemTheme();
switch (theme) {
case ThemeSettings.Dynamic:
const scene = this.selectDynamicScene();
this.setScene(scene);
return;
}
if (theme == ThemeSettings.System) {
theme = SettingsViewModel.getSystemTheme();
}
if (theme == ThemeSettings.Dark) {
break;
case ThemeSettings.Dark:
this.setScene(DynamicSceneNight);
} else {
break;
case ThemeSettings.Black:
this.setScene(DynamicSceneBlack);
break;
default:
this.setScene(DynamicSceneDay);
}
};
@@ -224,3 +226,11 @@ export const DynamicSceneSunset: DynamicScene = {
brightness: 0.4,
baseTheme: ThemeSettings.Dark,
};
export const DynamicSceneBlack: DynamicScene = {
hue1: 0,
hue2: 0,
saturation: 0,
luma: 0,
brightness: 0,
baseTheme: ThemeSettings.Dark,
};
+7 -5
View File
@@ -9,17 +9,16 @@
/* Gradient */
#background-wrapper {
position: fixed;
inset: 0px;
transform: scale(1.2);
top: var(--safe-area-top);
left: var(--safe-area-left);
right: var(--safe-area-right);
bottom: var(--safe-area-bottom);
z-index: 1;
pointer-events: none;
overflow: hidden;
filter: blur(40px);
background: var(--background);
}
@@ -33,6 +32,9 @@ main {
position: absolute;
inset: 0px;
transform: scale(1.2);
filter: blur(40px);
z-index: -1;
pointer-events: none;
}