mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
adjust frontend to use the new tag color api
This commit is contained in:
@@ -1,27 +1,10 @@
|
||||
import { MatchingModel } from './matching-model';
|
||||
import { ObjectWithId } from './object-with-id';
|
||||
|
||||
|
||||
export const TAG_COLOURS = [
|
||||
{ id: "", name: "Auto", textColor: "#000000" },
|
||||
{ id: "#a6cee3", name: $localize`Light blue`, textColor: "#000000" },
|
||||
{ id: "#1f78b4", name: $localize`Blue`, textColor: "#ffffff" },
|
||||
{ id: "#b2df8a", name: $localize`Light green`, textColor: "#000000" },
|
||||
{ id: "#33a02c", name: $localize`Green`, textColor: "#ffffff" },
|
||||
{ id: "#fb9a99", name: $localize`Light red`, textColor: "#000000" },
|
||||
{ id: "#e31a1c", name: $localize`Red `, textColor: "#ffffff" },
|
||||
{ id: "#fdbf6f", name: $localize`Light orange`, textColor: "#000000" },
|
||||
{ id: "#ff7f00", name: $localize`Orange`, textColor: "#000000" },
|
||||
{ id: "#cab2d6", name: $localize`Light violet`, textColor: "#000000" },
|
||||
{ id: "#6a3d9a", name: $localize`Violet`, textColor: "#ffffff" },
|
||||
{ id: "#b15928", name: $localize`Brown`, textColor: "#ffffff" },
|
||||
{ id: "#000000", name: $localize`Black`, textColor: "#ffffff" },
|
||||
{ id: "#cccccc", name: $localize`Light grey`, textColor: "#000000" }
|
||||
]
|
||||
import { MatchingModel } from "./matching-model";
|
||||
|
||||
export interface PaperlessTag extends MatchingModel {
|
||||
|
||||
colour?: string
|
||||
color?: string
|
||||
|
||||
text_color?: string
|
||||
|
||||
is_inbox_tag?: boolean
|
||||
|
||||
|
Reference in New Issue
Block a user