Add new themes and use them by default

This commit is contained in:
Aylam 2023-09-12 20:19:28 +03:00 committed by Laura Hausmann
parent f531641e97
commit dd9a7b7cff
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
4 changed files with 41 additions and 3 deletions

View file

@ -23,6 +23,7 @@ export const themeProps = Object.keys(lightTheme.props).filter(
export const getBuiltinThemes = () => export const getBuiltinThemes = () =>
Promise.all( Promise.all(
[ [
"l-iceshrimp",
"l-rosepinedawn", "l-rosepinedawn",
"l-light", "l-light",
"l-nord", "l-nord",
@ -35,6 +36,7 @@ export const getBuiltinThemes = () =>
"l-sushi", "l-sushi",
"l-u0", "l-u0",
"d-iceshrimp",
"d-rosepine", "d-rosepine",
"d-rosepinemoon", "d-rosepinemoon",
"d-dark", "d-dark",
@ -50,7 +52,7 @@ export const getBuiltinThemes = () =>
"d-green-orange", "d-green-orange",
"d-cherry", "d-cherry",
"d-ice", "d-ice",
"d-u0", "d-u0"
].map((name) => ].map((name) =>
import(`../themes/${name}.json5`).then( import(`../themes/${name}.json5`).then(
({ default: _default }): Theme => _default, ({ default: _default }): Theme => _default,

View file

@ -362,8 +362,8 @@ type Plugin = {
/** /**
* () * ()
*/ */
import lightTheme from "@/themes/l-rosepinedawn.json5"; import lightTheme from "@/themes/l-iceshrimp.json5";
import darkTheme from "@/themes/d-rosepine.json5"; import darkTheme from "@/themes/d-iceshrimp.json5";
export class ColdDeviceStorage { export class ColdDeviceStorage {
public static default = { public static default = {

View file

@ -0,0 +1,15 @@
{
id: '0c74bfbe-c9b9-4a42-9798-2ee030e65f1c',
name: 'Iceshrimp Dark',
author: 'aylamz',
base: 'dark',
props: {
accent: '#47BFE8',
bg: '#212526',
shadow: 'rgba(0, 0, 0, 0)',
fgOnAccent: '@bg',
},
}

View file

@ -0,0 +1,21 @@
{
id: '360da846-debe-40f9-9f10-5ad035afa546',
name: 'Iceshrimp Light',
author: 'aylamz',
base: 'light',
props: {
fg: '#444',
bg: '#f7f7f7',
accent: '#008cff',
panel: ':lighten<3<@bg',
panelHeaderBg: ':lighten<1<@bg',
panelHighlight: ':darken<6<@bg',
shadow: 'rgba(0, 0, 0, 0)',
hashtag: '#c44100',
link: '#2c7386',
infoFg: '#212528',
},
}