1
Fork 0
mirror of https://github.com/diced/zipline.git synced 2025-04-11 23:31:17 -05:00

feat(theme): add midnight blue theme

change(file): updated it 15 files per page
This commit is contained in:
curet 2025-03-18 21:13:28 +01:00
parent a1bd1d2b6e
commit 41b7be5b12
3 changed files with 36 additions and 1 deletions

View file

@ -0,0 +1,33 @@
{
"name": "Midnight Blue",
"id": "builtin:midnight_blue",
"colorScheme": "dark",
"colors": {
"blue": [
"#666666",
"#5a64b9",
"#4651b0",
"#323EA8",
"#323EA8",
"#181818",
"#191919",
"#3742AA",
"#181818",
"#191919"
],
"dark": [
"#FFFFFF",
"#999999",
"#a8a8a8",
"#666666",
"#282828",
"#181818",
"#151515",
"#111111",
"#181818",
"#00001E"
]
},
"primaryColor": "blue",
"mainBackgroundColor": "#0a0a0a"
}

View file

@ -16,6 +16,7 @@ import cat_macchiato from './builtins/catppuccin_macchiato.theme.json';
import cat_mocha from './builtins/catppuccin_mocha.theme.json';
import midnight_orange from './builtins/midnight_orange.theme.json';
import midnight_blue from './builtins/midnight_blue.theme.json';
import { log } from '../logger';
@ -51,6 +52,7 @@ export async function readThemes(): Promise<ZiplineTheme[]> {
handleOverrideColors(cat_macchiato as unknown as ZiplineTheme),
handleOverrideColors(cat_mocha as unknown as ZiplineTheme),
handleOverrideColors(midnight_orange as unknown as ZiplineTheme),
handleOverrideColors(midnight_blue as unknown as ZiplineTheme),
);
return parsedThemes;

View file

@ -70,7 +70,7 @@ export default fastifyPlugin(
if (!user) return res.notFound('User not found');
const perpage = Number(req.query.perpage || '30');
const perpage = Number(req.query.perpage || '15');
if (isNaN(Number(perpage))) return res.badRequest('Perpage must be a number');
const searchQuery = req.query.searchQuery