@@ -74,6 +74,13 @@ export async function createNote(noteType, { x = null, y = null } = {}) {
7474 : ( game . settings . get ( MODULE_ID , `${ noteType } NoteDefaultText` ) || "Notes" ) ;
7575
7676 const extraFlags = { } ;
77+
78+ // Apply default colors from settings
79+ if ( noteType !== "handout" && noteType !== "pin" ) {
80+ extraFlags . tint = game . settings . get ( MODULE_ID , "defaultNoteColor" ) || "#ffffff" ;
81+ extraFlags . textColor = game . settings . get ( MODULE_ID , "defaultInkColor" ) || "#000000" ;
82+ }
83+
7784 // Set default font size to 9 for index cards
7885 if ( noteType === "index" ) {
7986 extraFlags . fontSize = 9 ;
@@ -164,6 +171,7 @@ export async function createPhotoNoteFromActor(actor, isUnknown = false) {
164171 const imagePath = actor . img || "modules/investigation-board/assets/placeholder.webp" ;
165172 const extraFlags = {
166173 image : imagePath ,
174+ textColor : game . settings . get ( MODULE_ID , "defaultInkColor" ) || "#000000" ,
167175 ...( isUnknown ? { unknown : true } : { } )
168176 } ;
169177
@@ -232,7 +240,10 @@ export async function createPhotoNoteFromScene(targetScene) {
232240 const displayName = targetScene . navName || targetScene . name || "Unknown Location" ;
233241 const imagePath = targetScene . background ?. src || "modules/investigation-board/assets/placeholder.webp" ;
234242
235- const extraFlags = { image : imagePath } ;
243+ const extraFlags = {
244+ image : imagePath ,
245+ textColor : game . settings . get ( MODULE_ID , "defaultInkColor" ) || "#000000"
246+ } ;
236247
237248 const created = await collaborativeCreate ( {
238249 type : "r" ,
@@ -427,7 +438,10 @@ export async function createPhotoNoteFromItem(item) {
427438 const displayName = item . name || "Unknown Item" ;
428439 const imagePath = item . img || "modules/investigation-board/assets/placeholder.webp" ;
429440
430- const extraFlags = { image : imagePath } ;
441+ const extraFlags = {
442+ image : imagePath ,
443+ textColor : game . settings . get ( MODULE_ID , "defaultInkColor" ) || "#000000"
444+ } ;
431445
432446 const created = await collaborativeCreate ( {
433447 type : "r" ,
@@ -565,14 +579,19 @@ export async function importFolderAsNotes(folder) {
565579 const y = startY + row * ( height + spacing ) ;
566580
567581 let noteData = null ;
582+ const defaultTint = game . settings . get ( MODULE_ID , "defaultNoteColor" ) || "#ffffff" ;
583+ const defaultInk = game . settings . get ( MODULE_ID , "defaultInkColor" ) || "#000000" ;
584+
568585 if ( type === "Actor" ) {
569586 const displayName = getActorDisplayName ( doc ) ;
570587 const imagePath = doc . img || "modules/investigation-board/assets/placeholder.webp" ;
571588 noteData = {
572589 type : "photo" ,
573590 text : displayName ,
574591 linkedObject : `@UUID[${ doc . uuid } ]{${ displayName } }` ,
575- image : imagePath
592+ image : imagePath ,
593+ textColor : defaultInk ,
594+ tint : "#ffffff"
576595 } ;
577596 } else if ( type === "Item" ) {
578597 const displayName = doc . name || "Unknown Item" ;
@@ -581,7 +600,9 @@ export async function importFolderAsNotes(folder) {
581600 type : "photo" ,
582601 text : displayName ,
583602 linkedObject : `@UUID[${ doc . uuid } ]{${ displayName } }` ,
584- image : imagePath
603+ image : imagePath ,
604+ textColor : defaultInk ,
605+ tint : "#ffffff"
585606 } ;
586607 } else if ( type === "Scene" ) {
587608 const displayName = doc . navName || doc . name || "Unknown Location" ;
@@ -590,7 +611,9 @@ export async function importFolderAsNotes(folder) {
590611 type : "photo" ,
591612 text : displayName ,
592613 linkedObject : `@UUID[${ doc . uuid } ]{${ displayName } }` ,
593- image : imagePath
614+ image : imagePath ,
615+ textColor : defaultInk ,
616+ tint : "#ffffff"
594617 } ;
595618 } else if ( type === "Playlist" ) { // doc is a PlaylistSound
596619 const imagePath = cassetteImages [ i % cassetteImages . length ] ;
@@ -600,7 +623,8 @@ export async function importFolderAsNotes(folder) {
600623 image : imagePath ,
601624 audioPath : doc . path ,
602625 linkedObject : `@UUID[${ doc . uuid } ]{${ doc . name } }` ,
603- audioEffectEnabled : applyLoFi
626+ audioEffectEnabled : applyLoFi ,
627+ textColor : defaultInk
604628 } ;
605629 }
606630
@@ -694,6 +718,8 @@ export async function importPlaylistAsNotes(playlist) {
694718 cassetteImages . push ( await _getRandomCassetteImage ( ) ) ;
695719 }
696720
721+ const defaultInk = game . settings . get ( MODULE_ID , "defaultInkColor" ) || "#000000" ;
722+
697723 for ( let i = 0 ; i < documents . length ; i ++ ) {
698724 const doc = documents [ i ] ;
699725 const col = i % cols ;
@@ -709,7 +735,8 @@ export async function importPlaylistAsNotes(playlist) {
709735 image : imagePath ,
710736 audioPath : doc . path ,
711737 linkedObject : `@UUID[${ doc . uuid } ]{${ doc . name } }` ,
712- audioEffectEnabled : applyLoFi
738+ audioEffectEnabled : applyLoFi ,
739+ textColor : defaultInk
713740 } ;
714741
715742 createDataArray . push ( {
0 commit comments