feat(workspace): map client classes to application icons (#368)
* feat(workspace): map client classes to application icons * refactor: extract app icon detection * feat: hide duplicate icons per workspace * feat: use dedicated icons for empty workspace and fallback * provide default icons * feat: title or class matcher can no provided as regex * style: change option description * style: use more descriptive param name * style: fix comment * fix(lint): missing return type * refactor: move type definitions into separate file * feat: defined default app icon set * docs: change option subtitles * style: change icons * fix: add missing default variant --------- Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
committed by
GitHub
parent
25753e5f17
commit
4e2a774c7e
11
lib/types/workspace.d.ts
vendored
11
lib/types/workspace.d.ts
vendored
@@ -11,10 +11,21 @@ export type MonitorMap = {
|
||||
[key: number]: string;
|
||||
};
|
||||
|
||||
export type ApplicationIcons = {
|
||||
[key: string]: string;
|
||||
};
|
||||
|
||||
export type WorkspaceIcons = {
|
||||
[key: string]: string;
|
||||
};
|
||||
|
||||
export type AppIconOptions = {
|
||||
iconMap: ApplicationIcons;
|
||||
defaultIcon: string;
|
||||
emptyIcon: string;
|
||||
};
|
||||
export type ClientAttributes = [className: string, title: string];
|
||||
|
||||
export type WorkspaceIconsColored = {
|
||||
[key: string]: {
|
||||
color: string;
|
||||
|
||||
Reference in New Issue
Block a user