Optimize node color

This commit is contained in:
yangdx
2025-04-06 23:04:45 +08:00
parent f92eed8441
commit b94c1e406b
3 changed files with 24 additions and 24 deletions

File diff suppressed because one or more lines are too long

View File

@@ -8,7 +8,7 @@
<link rel="icon" type="image/svg+xml" href="logo.png" /> <link rel="icon" type="image/svg+xml" href="logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lightrag</title> <title>Lightrag</title>
<script type="module" crossorigin src="/webui/assets/index-6Ki55zUp.js"></script> <script type="module" crossorigin src="/webui/assets/index-sAkGsjRM.js"></script>
<link rel="stylesheet" crossorigin href="/webui/assets/index-QU59h9JG.css"> <link rel="stylesheet" crossorigin href="/webui/assets/index-QU59h9JG.css">
</head> </head>
<body> <body>

View File

@@ -13,34 +13,34 @@ import seedrandom from 'seedrandom'
// Predefined node colors - Primary colors // Predefined node colors - Primary colors
const NODE_COLORS = [ const NODE_COLORS = [
'#0f5870', // Deep Cyan
'#e3493b', // Google Red - geo
'#fdd868', // Yellow - UNKNOWN '#fdd868', // Yellow - UNKNOWN
'#34A853', // Google Green '#e3493b', // Google Red - geo
'#a64dff', // Purple '#1212a1', // Deep Cyan - weapon
'#F39C12', // Orange '#0f705d', // Green - organization
'#1ABC9C', // Turquoise - organization '#a64dff', // Purple - technology
'#1f42ad', // Blue '#f46a9b', // Magenta
'#ee8377', // Light Red '#00bfa0', // Turquoise
'#bf95d0', // Light Violet '#fdcce5', // Light Pink
'#99cc00', // Yellow Green - tecknology '#0f558a', // Blue - location
'#0f705d', // Deep Turquoise '#b2e061', // Yellow Green
'#E67E22', // Carrot - category '#bd7ebe', // Light Violet - event
'#568be1', // Light Blue - person '#439bd6', // Cyan - person
'#803300' // Deep Brown '#094338', // Deep Green
'#dc0ab4', // Pink Red
'#fd7f6f', // Light Red - category
'#b04238', // Brown
]; ];
// Extended colors - Used when node types exceed primary colors // Extended colors - Used when node types exceed primary colors
const EXTENDED_COLORS = [ const EXTENDED_COLORS = [
'#ff4da6', // Magenta '#5ad45a', // Light Green
'#094338', // Deep Green
'#D35400', // Pumpkin
'#002699', // Deep Blue
'#5a2c6d', // Deep Violet '#5a2c6d', // Deep Violet
'#996600', // Brown '#6c1313', // Dark Red
'#2574A9', // Steel Blue '#184868', // Dark Cyan
'#912c21', // Deep Red '#996600', // Yellow Brown
'#293618' // Dark Green '#4421af', // Deep Purple
'#E67E22', // Carrot
'#e61919', // Light Red
]; ];
// All available colors combined // All available colors combined