From 3f439760920bab5e38601d51545d60968d8ea1d1 Mon Sep 17 00:00:00 2001 From: Anne Haley Date: Thu, 14 Sep 2023 12:26:23 -0400 Subject: [PATCH] Add red, green, blue, and gray to the color table --- .../web_client/vue/components/FrameSelector.vue | 2 +- girder/girder_large_image/web_client/vue/utils/colors.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/girder/girder_large_image/web_client/vue/components/FrameSelector.vue b/girder/girder_large_image/web_client/vue/components/FrameSelector.vue index b2254e9ad..dacd059ff 100644 --- a/girder/girder_large_image/web_client/vue/components/FrameSelector.vue +++ b/girder/girder_large_image/web_client/vue/components/FrameSelector.vue @@ -173,7 +173,7 @@ export default Vue.extend({ {id: 2, name: 'Channel Compositing'} ); } - if (this.metadata.bandCount > 1) { + if (this.metadata.bandCount) { this.sliderModes.push( {id: 3, name: 'Band Compositing'} ); diff --git a/girder/girder_large_image/web_client/vue/utils/colors.js b/girder/girder_large_image/web_client/vue/utils/colors.js index d9ebe31ac..b3881f31e 100644 --- a/girder/girder_large_image/web_client/vue/utils/colors.js +++ b/girder/girder_large_image/web_client/vue/utils/colors.js @@ -5,7 +5,11 @@ export const CHANNEL_COLORS = { '^CY3(|[^\d].*)$': '#FF8000', // eslint-disable-line '^CY5(|[^\d].*)$': '#FF00FF', // eslint-disable-line '^YFP.*$': '#00FF00', - '^GFP.*$': '#00FF00' + '^GFP.*$': '#00FF00', + '^red$': '#FF0000', + '^green$': '#00FF00', + '^blue$': '#0000FF', + '^gr[ae]y(|scale)$': '#FFFFFF', }; export const OTHER_COLORS = [