forked from github/plane
feat: custom theming (#1028)
* chore: custom theme types and constants * feat: custom theming * feat: preferences tab added in profile settings * feat: remove unneccessary file * feat:theme apply on page load * fix: theme switch dropdown fix * feat: color picker input, theme icon added, chore: code refactor * style: color picker icon added * fix: mutation fix * fix: palette sequence fix * chore: default custom theme palette updated * style: join project and not authorized page theming * fix: merge conflict * fix: build fix and preferences tab layout fix
This commit is contained in:
committed by
GitHub
parent
44d49b5500
commit
1329145173
14
apps/app/types/users.d.ts
vendored
14
apps/app/types/users.d.ts
vendored
@@ -18,6 +18,7 @@ export interface IUser {
|
||||
is_onboarded: boolean;
|
||||
token: string;
|
||||
role: string;
|
||||
theme: ICustomTheme;
|
||||
|
||||
my_issues_prop?: {
|
||||
properties: Properties;
|
||||
@@ -27,6 +28,19 @@ export interface IUser {
|
||||
[...rest: string]: any;
|
||||
}
|
||||
|
||||
export interface ICustomTheme {
|
||||
accent: string;
|
||||
bgBase: string;
|
||||
bgSurface1: string;
|
||||
bgSurface2: string;
|
||||
border: string;
|
||||
darkPalette: boolean;
|
||||
palette: string;
|
||||
sidebar: string;
|
||||
textBase: string;
|
||||
textSecondary: string;
|
||||
}
|
||||
|
||||
export interface ICurrentUserResponse {
|
||||
assigned_issues: number;
|
||||
user: IUser;
|
||||
|
||||
Reference in New Issue
Block a user