mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
Add new themes and use them by default
This commit is contained in:
parent
f531641e97
commit
dd9a7b7cff
@ -23,6 +23,7 @@ export const themeProps = Object.keys(lightTheme.props).filter(
|
||||
export const getBuiltinThemes = () =>
|
||||
Promise.all(
|
||||
[
|
||||
"l-iceshrimp",
|
||||
"l-rosepinedawn",
|
||||
"l-light",
|
||||
"l-nord",
|
||||
@ -35,6 +36,7 @@ export const getBuiltinThemes = () =>
|
||||
"l-sushi",
|
||||
"l-u0",
|
||||
|
||||
"d-iceshrimp",
|
||||
"d-rosepine",
|
||||
"d-rosepinemoon",
|
||||
"d-dark",
|
||||
@ -50,7 +52,7 @@ export const getBuiltinThemes = () =>
|
||||
"d-green-orange",
|
||||
"d-cherry",
|
||||
"d-ice",
|
||||
"d-u0",
|
||||
"d-u0"
|
||||
].map((name) =>
|
||||
import(`../themes/${name}.json5`).then(
|
||||
({ default: _default }): Theme => _default,
|
||||
|
@ -362,8 +362,8 @@ type Plugin = {
|
||||
/**
|
||||
* 常にメモリにロードしておく必要がないような設定情報を保管するストレージ(非リアクティブ)
|
||||
*/
|
||||
import lightTheme from "@/themes/l-rosepinedawn.json5";
|
||||
import darkTheme from "@/themes/d-rosepine.json5";
|
||||
import lightTheme from "@/themes/l-iceshrimp.json5";
|
||||
import darkTheme from "@/themes/d-iceshrimp.json5";
|
||||
|
||||
export class ColdDeviceStorage {
|
||||
public static default = {
|
||||
|
15
packages/client/src/themes/d-iceshrimp.json5
Normal file
15
packages/client/src/themes/d-iceshrimp.json5
Normal 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',
|
||||
},
|
||||
}
|
21
packages/client/src/themes/l-iceshrimp.json5
Normal file
21
packages/client/src/themes/l-iceshrimp.json5
Normal 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',
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user