feat: インスタンスのテーマカラーを設定できるように

This commit is contained in:
syuilo
2022-02-09 21:25:48 +09:00
parent 624aef6979
commit 4ae1a65958
10 changed files with 57 additions and 2 deletions

View File

@ -41,6 +41,10 @@ export const meta = {
validator: $.optional.nullable.arr($.str),
},
themeColor: {
validator: $.optional.nullable.str,
},
mascotImageUrl: {
validator: $.optional.nullable.str,
},
@ -331,6 +335,10 @@ export default define(meta, async (ps, me) => {
set.blockedHosts = ps.blockedHosts.filter(Boolean);
}
if (ps.themeColor !== undefined) {
set.themeColor = ps.themeColor;
}
if (ps.mascotImageUrl !== undefined) {
set.mascotImageUrl = ps.mascotImageUrl;
}