mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	client/note tree item tinting: optimize
This commit is contained in:
		| @@ -82,7 +82,7 @@ body ::-webkit-calendar-picker-indicator { | ||||
|     filter: invert(1); | ||||
| } | ||||
|  | ||||
| #left-pane span.fancytree-node { | ||||
| #left-pane .fancytree-node.tinted { | ||||
|     --custom-color: var(--dark-theme-custom-color); | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -82,6 +82,6 @@ html { | ||||
|     --native-titlebar-background: #ffffff00; | ||||
| } | ||||
|  | ||||
| #left-pane span.fancytree-node { | ||||
| #left-pane .fancytree-node.tinted { | ||||
|     --custom-color: var(--light-theme-custom-color); | ||||
| } | ||||
| @@ -268,7 +268,7 @@ | ||||
|  * Dark color scheme tweaks | ||||
|  */ | ||||
|  | ||||
| #left-pane span.fancytree-node { | ||||
| #left-pane .fancytree-node.tinted { | ||||
|     --custom-color: var(--dark-theme-custom-color); | ||||
|  | ||||
|     /* The background color of the active item in the note tree. | ||||
|   | ||||
| @@ -263,7 +263,7 @@ | ||||
|     --ck-editor-toolbar-dropdown-button-open-background: #0000000f; | ||||
| } | ||||
|  | ||||
| #left-pane span.fancytree-node { | ||||
| #left-pane .fancytree-node.tinted { | ||||
|     --custom-color: var(--light-theme-custom-color); | ||||
|  | ||||
|     /* The background color of the active item in the note tree. | ||||
|   | ||||
| @@ -905,7 +905,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { | ||||
|         const colorClass = note.getColorClass(); | ||||
|  | ||||
|         if (colorClass) { | ||||
|             extraClasses.push(colorClass); | ||||
|             extraClasses.push(...["tinted", colorClass]); | ||||
|         } | ||||
|  | ||||
|         return extraClasses.join(" "); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user