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:
Anmol Singh Bhatia
2023-05-11 18:40:17 +05:30
committed by GitHub
parent 44d49b5500
commit 1329145173
16 changed files with 575 additions and 373 deletions

View File

@@ -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;