@@ -16,6 +16,7 @@ import CellLibraryPanel from "components/CellLibraryPanel.vue";
1616import ChatPanel from " components/ChatPanel.vue" ;
1717import BatchProcessorPanel from " components/BatchProcessorPanel.vue" ;
1818import NotificationFeedPanel from " components/NotificationFeedPanel.vue" ;
19+ import neuronIcon from ' ../../static/badges/pyr/neuron-icon-white.png' ;
1920
2021import {loginSession , useLoginStore , useVolumesStore , useUserStatsStore , useSegmentAnnotationStore , useHelpRequestStore , useProofreadingQueueStore , useProofreadingBackendStore , useUserPreferencesStore } from ' ../store' ;
2122import {useTutorialStore } from ' ../store-pyr' ;
@@ -95,6 +96,7 @@ interface ToolbarIcon {
9596 id: string ;
9697 emoji: string ;
9798 svg? : string ;
99+ img? : string ;
98100 label: string ;
99101 action: () => void ;
100102 badge? : () => number ;
@@ -110,7 +112,7 @@ const toolbarDefs = computed<ToolbarIcon[]>(() => [
110112 { id: ' recap' , emoji: ' 📊' , label: ' Your Week in Science' , action : () => { showRecap .value = true ; } },
111113 { id: ' leaderboard' , emoji: ' 🏆' , label: ' Leaderboard' , action : () => { showLeaderboard .value = true ; } },
112114 { id: ' quest' , emoji: ' 🧠' , label: ' Brain Quest' , action : () => { showQueue .value = ! showQueue .value ; }, badge : () => queueStore .pendingCount () },
113- { id: ' cells' , emoji: ' 🧬' , label: ' Cell Library' , action : () => { cellLibraryInitialTab .value = undefined ; showCellLibrary .value = ! showCellLibrary .value ; } },
115+ { id: ' cells' , emoji: ' 🧬' , img: neuronIcon , label: ' Cell Library' , action : () => { cellLibraryInitialTab .value = undefined ; showCellLibrary .value = ! showCellLibrary .value ; } },
114116 { id: ' batch' , emoji: ' 📦' , label: ' Batch Processor' , action : () => { showBatchProcessor .value = ! showBatchProcessor .value ; } },
115117 { id: ' help' , emoji: ' 🔍' , label: ' Second Opinion Requests' , action : () => { cellLibraryInitialTab .value = ' help' ; showCellLibrary .value = true ; }, badge : () => helpStore .pending .length },
116118 { id: ' feed' , emoji: ' 📡' , label: ' Activity Feed' , action : () => { showFeed .value = true ; } },
@@ -241,7 +243,7 @@ function activateTool(toolType: 'multicut' | 'merge') {
241243 }"
242244 :title =" icon.label"
243245 @click =" icon.action()"
244- ><span v-if =" icon.svg" v-html =" icon.svg" ></span ><template v-else >{{ icon.emoji }}</template ><span v-if =" icon.badge && icon.badge() > 0" class =" nge-toolbar-badge" >{{ icon.badge() }}</span ></button >
246+ ><span v-if =" icon.svg" v-html =" icon.svg" ></span ><img v-else-if = " icon.img " :src = " icon.img " class = " nge-toolbar-icon-img " />< template v-else >{{ icon.emoji }}</template ><span v-if =" icon.badge && icon.badge() > 0" class =" nge-toolbar-badge" >{{ icon.badge() }}</span ></button >
245247 </div >
246248
247249 <!-- Merge/Split celebration burst -->
@@ -444,6 +446,13 @@ function activateTool(toolType: 'multicut' | 'merge') {
444446}
445447.nge-icon-btn--badge { position : relative ; }
446448
449+ .nge-toolbar-icon-img {
450+ width : 16px ;
451+ height : 16px ;
452+ object-fit : contain ;
453+ vertical-align : middle ;
454+ opacity : 0.85 ;
455+ }
447456.nge-toolbar-badge {
448457 position : absolute ;
449458 top : 1px ;
0 commit comments