diff --git a/images/empty.svg b/images/empty.svg new file mode 100644 index 00000000..00f0aa24 --- /dev/null +++ b/images/empty.svg @@ -0,0 +1 @@ +empty \ No newline at end of file diff --git a/images/voyager/cmap_a.png b/images/voyager/color_a.png similarity index 100% rename from images/voyager/cmap_a.png rename to images/voyager/color_a.png diff --git a/images/voyager/cmap_aips0.png b/images/voyager/color_aips0.png similarity index 100% rename from images/voyager/cmap_aips0.png rename to images/voyager/color_aips0.png diff --git a/images/voyager/cmap_b.png b/images/voyager/color_b.png similarity index 100% rename from images/voyager/cmap_b.png rename to images/voyager/color_b.png diff --git a/images/voyager/cmap_bb.png b/images/voyager/color_bb.png similarity index 100% rename from images/voyager/cmap_bb.png rename to images/voyager/color_bb.png diff --git a/images/voyager/cmap_blue.png b/images/voyager/color_blue.png similarity index 100% rename from images/voyager/cmap_blue.png rename to images/voyager/color_blue.png diff --git a/images/voyager/cmap_color.png b/images/voyager/color_color.png similarity index 100% rename from images/voyager/cmap_color.png rename to images/voyager/color_color.png diff --git a/images/voyager/cmap_cool.png b/images/voyager/color_cool.png similarity index 100% rename from images/voyager/cmap_cool.png rename to images/voyager/color_cool.png diff --git a/images/voyager/cmap_green.png b/images/voyager/color_green.png similarity index 100% rename from images/voyager/cmap_green.png rename to images/voyager/color_green.png diff --git a/images/voyager/cmap_grey.png b/images/voyager/color_grey.png similarity index 100% rename from images/voyager/cmap_grey.png rename to images/voyager/color_grey.png diff --git a/images/voyager/cmap_he.png b/images/voyager/color_he.png similarity index 100% rename from images/voyager/cmap_he.png rename to images/voyager/color_he.png diff --git a/images/voyager/cmap_heat.png b/images/voyager/color_heat.png similarity index 100% rename from images/voyager/cmap_heat.png rename to images/voyager/color_heat.png diff --git a/images/voyager/cmap_hsv.png b/images/voyager/color_hsv.png similarity index 100% rename from images/voyager/cmap_hsv.png rename to images/voyager/color_hsv.png diff --git a/images/voyager/cmap_i8.png b/images/voyager/color_i8.png similarity index 100% rename from images/voyager/cmap_i8.png rename to images/voyager/color_i8.png diff --git a/images/voyager/cmap_inferno.png b/images/voyager/color_inferno.png similarity index 100% rename from images/voyager/cmap_inferno.png rename to images/voyager/color_inferno.png diff --git a/images/voyager/cmap_magma.png b/images/voyager/color_magma.png similarity index 100% rename from images/voyager/cmap_magma.png rename to images/voyager/color_magma.png diff --git a/images/voyager/cmap_parula.png b/images/voyager/color_parula.png similarity index 100% rename from images/voyager/cmap_parula.png rename to images/voyager/color_parula.png diff --git a/images/voyager/cmap_plasma.png b/images/voyager/color_plasma.png similarity index 100% rename from images/voyager/cmap_plasma.png rename to images/voyager/color_plasma.png diff --git a/images/voyager/cmap_rainbow.png b/images/voyager/color_rainbow.png similarity index 100% rename from images/voyager/cmap_rainbow.png rename to images/voyager/color_rainbow.png diff --git a/images/voyager/cmap_red.png b/images/voyager/color_red.png similarity index 100% rename from images/voyager/cmap_red.png rename to images/voyager/color_red.png diff --git a/images/voyager/cmap_sls.png b/images/voyager/color_sls.png similarity index 100% rename from images/voyager/cmap_sls.png rename to images/voyager/color_sls.png diff --git a/images/voyager/cmap_staircase.png b/images/voyager/color_staircase.png similarity index 100% rename from images/voyager/cmap_staircase.png rename to images/voyager/color_staircase.png diff --git a/images/voyager/cmap_standard.png b/images/voyager/color_standard.png similarity index 100% rename from images/voyager/cmap_standard.png rename to images/voyager/color_standard.png diff --git a/images/voyager/cmap_turbo.png b/images/voyager/color_turbo.png similarity index 100% rename from images/voyager/cmap_turbo.png rename to images/voyager/color_turbo.png diff --git a/images/voyager/cmap_viridis.png b/images/voyager/color_viridis.png similarity index 100% rename from images/voyager/cmap_viridis.png rename to images/voyager/color_viridis.png diff --git a/images/voyager/zoom_zoom.svg b/images/voyager/zoom_zoom.svg new file mode 100644 index 00000000..4da9d2b1 --- /dev/null +++ b/images/voyager/zoom_zoom.svg @@ -0,0 +1 @@ +mag \ No newline at end of file diff --git a/js9-allinone.css b/js9-allinone.css index c174ae3d..b6b1d5c7 100644 --- a/js9-allinone.css +++ b/js9-allinone.css @@ -1662,6 +1662,10 @@ div.JS9MouseTouchHeader, div.JS9MouseTouchFooter { padding-left: 2px; } +.JS9StatusbarImage { + white-space:nowrap; +} + .JS9StatusbarItemNoHighlight { border: 1px solid #D0D0D0; } @@ -1669,6 +1673,16 @@ div.JS9MouseTouchHeader, div.JS9MouseTouchFooter { .JS9StatusbarItemHighlight { border: 1px solid #B5B5B5; } + +img.JS9StatusbarImageOption[name*="zoom_"]{ + height: 12px; + width: 12px; +} + +img.JS9StatusbarImageOption[name*="color_"]{ + height: 12px; + width: 40px; +} div.JS9SeparateContainer { padding: 2px; } diff --git a/js9-allinone.js b/js9-allinone.js index c66d4adb..9a46e972 100644 --- a/js9-allinone.js +++ b/js9-allinone.js @@ -4447,7 +4447,7 @@ maxMemory:2E9,corsURL:"params/loadcors.html",proxyURL:"params/loadproxy.html",lo color:"green"},imexamLineHeight:1,copyWcsPosFormat:"$ra $dec $sys",floatPrecision:6,mouseActions:["display value/position","change contrast/bias","pan the image"],touchActions:["display value/position","change contrast/bias","pan the image"],keyboardActions:{b:"toggle selected region: source/background",c:"toggle crosshair",d:"send selected region to back",e:"toggle selected region: include/exclude","M-e":"edit selected region",i:"refresh image",I:"display full image","M-i":"display selected cutouts", "M-k":"toggle keyboard actions plugin",l:"toggle active shape layers","M-l":"new JS9 light window",m:"pan to mouse position","M-m":"toggle mouse/touch plugin","M-o":"open local file",P:"paste regions from local clipboard",p:"paste regions to current position",u:"undo remove of region(s)","M-,":"toggle preferences plugin","M-p":"toggle preferences plugin",r:"copy selected region to clipboard",R:"copy all regions to clipboard",s:"select region",S:"select all regions","M-s":"toggle shape layers plugin", x:"flip image around x axis",y:"flip image around y axis",9:"rotate image by 90 degrees","/":"copy wcs position to clipboard","?":"copy value and position to clipboard",0:"reset zoom","=":"zoom in","+":"zoom in","-":"zoom out","^":"raise region layer to top",">":"display next image","<":"display previous image","delete":"remove selected region",leftArrow:"move region/position left",upArrow:"move region/position up",rightArrow:"move region/position right",downArrow:"move region/position down"},mousetouchZoom:!1, -metaClickPan:!0,statusBar:"zoom: $zoom; scale: $scale/$scaleclipping($scalemin,$scalemax); color: $colormap($contrast,$bias); wcs: $wcssys($wcsunits)",toolbarTooltips:!1,centerDivs:["JS9Menubar"],resizeDivs:["JS9Menubar","JS9Colorbar","JS9Toolbar","JS9Statusbar"],pinchWait:8,pinchThresh:6,xeqPlugins:!0,extendedPlugins:!0,intensivePlugins:!1,dynamicSelect:"click",dynamicHighlight:!0,corsProxy:"https://js9.si.edu/cgi-bin/CORS-proxy.cgi",simbadProxy:"https://js9.si.edu/cgi-bin/simbad-proxy.cgi",catalogs:{ras:["RA", +metaClickPan:!0,statusBar:"$img(images/voyager/zoom_1.svg) $zoom; $scale($scaleclipping); $img(images/voyager/color_$colormap.png) $colormap; $wcssys",toolbarTooltips:!1,centerDivs:["JS9Menubar"],resizeDivs:["JS9Menubar","JS9Colorbar","JS9Toolbar","JS9Statusbar"],pinchWait:8,pinchThresh:6,xeqPlugins:!0,extendedPlugins:!0,intensivePlugins:!1,dynamicSelect:"click",dynamicHighlight:!0,corsProxy:"https://js9.si.edu/cgi-bin/CORS-proxy.cgi",simbadProxy:"https://js9.si.edu/cgi-bin/simbad-proxy.cgi",catalogs:{ras:["RA", "_RAJ2000","RAJ2000"],decs:["Dec","_DEJ2000","DEJ2000"],shape:"circle",color:"yellow",width:7,height:7,radius:3.5,r1:5,r2:3.5,wcssys:"ICRS",skip:"#\n",save:!0,tooltip:"$data.ra $data.dec"},topColormaps:"grey heat cool turbo viridis magma sls red green blue".split(" "),infoBox:"file object wcsfov wcscen wcspos impos physpos value regions progress".split(" "),infoBoxResize:!0,menuBar:"file edit view zoom scale color region wcs analysis help".split(" "),menubarStyle:"classic",menuPosition:"right-5 bottom-5", menuClickEvent:"mouseup",menuSelected:"check",menuImages:!0,userMenus:!1,userMenuDivider:"   ",imagesFileSubmenu:5,toolBar:"annulus box circle ellipse line polygon text zoom+ zoom- zoom1 zoomtofit".split(" "),syncOps:"colormap contrastbias flip pan regions rot90 scale wcs zoom".split(" "),syncReciprocate:!0,syncWCS:!0,hiddenPluginDivs:[],separate:{layout:"auto",leftMargin:10,topMargin:10},imageTemplates:".fits,.fts,.png,.jpg,.jpeg,.fz,.ftz",wcsUnits:{FK4:"sexagesimal",FK5:"sexagesimal", ICRS:"sexagesimal",galactic:"degrees",ecliptic:"degrees",linear:"degrees",physical:"pixels",image:"pixels"},regionTemplates:".reg",sessionTemplates:".ses,.js9ses",colormapTemplates:".cmap",catalogTemplates:".cat,.tab",localTemplates:".fits,.fts",controlsMatchRegion:!1,internalColorPicker:!0,newWindowWidth:530,newWindowHeight:625,debug:0};a.desktopOpts={currentPath:!0,sessionPath:!0};a.imageOpts={inherit:!1,contrast:1,bias:.5,invert:!1,exp:1E3,colormap:"grey",scale:"linear",scaleclipping:"dataminmax", @@ -11295,7 +11295,6 @@ JS9.RegisterPlugin(JS9.Mef.CLASS, JS9.Mef.NAME, JS9.Mef.init, winResize: true, winDims: [JS9.Mef.WIDTH, JS9.Mef.HEIGHT]}); - /* * JS9 menubar to manage menubar and its menus */ @@ -13265,7 +13264,7 @@ JS9.Menubar.createMenus = function(){ s1 = JS9.globalOpts.topColormaps[i]; s2 = s1; if( JS9.globalOpts.menuImages ){ - hstr = `
` + `  ${s2}
`; + hstr = `
` + `  ${s2}
`; items[s1] = {name: hstr, isHtmlName: true}; } else { items[s1] = xname(s2); @@ -13288,7 +13287,7 @@ JS9.Menubar.createMenus = function(){ if( !JS9.globalOpts.topColormaps.includes(s1) ){ s2 = s1; if( JS9.globalOpts.menuImages ){ - hstr = `
` + `  ${s2}
`; + hstr = `
` + `  ${s2}
`; items.morecmaps.items[s1] = {name: hstr, isHtmlName: true}; } else { items.morecmaps.items[s1] = xname(s2); @@ -13525,7 +13524,7 @@ JS9.Menubar.createMenus = function(){ if( JS9.globalOpts.menuImages ){ for(i=0; i` + `  ${reg}`, + items[reg] = {name: `
` + `  ${reg}
`, isHtmlName: true}; } } else { @@ -17384,7 +17383,8 @@ JS9.Statusbar.display = function(im){ // wrap in element containers s = `${s}` .replace(/: */g, ": ") - .replace(/; */g, " "); + .replace(/; */g, " ") + .replace(/\$img\(([^()]+)\)/g, ""); } this.statusContainer.html(s); } else { diff --git a/js9.js b/js9.js index 376b8931..da90729b 100644 --- a/js9.js +++ b/js9.js @@ -229,7 +229,8 @@ JS9.globalOpts = { mousetouchZoom: false, // use mouse wheel, pinch to zoom? metaClickPan: true, // metaKey + click pans to mouse position? // statusBar: ["zoom", "scale", "colormap", "wcssys"], // status display - statusBar: "zoom: $zoom; scale: $scale/$scaleclipping($scalemin,$scalemax); color: $colormap($contrast,$bias); wcs: $wcssys($wcsunits)", // status display + // statusBar: "zoom: $zoom; scale: $scale/$scaleclipping($scalemin,$scalemax); color: $colormap($contrast,$bias); wcs: $wcssys($wcsunits)", // status display + statusBar: "$img(images/voyager/zoom_1.svg) $zoom; $scale($scaleclipping); $img(images/voyager/color_$colormap.png) $colormap; $wcssys", // status display toolbarTooltips: false, // display tooltips on toolbar? centerDivs: ["JS9Menubar"], // divs which take part in JS9.Display.center() resizeDivs: ["JS9Menubar", "JS9Colorbar", "JS9Toolbar", "JS9Statusbar"], // divs which take part in JS9.Display.resize() diff --git a/js9.min.js b/js9.min.js index 52e21440..8beddcb7 100644 --- a/js9.min.js +++ b/js9.min.js @@ -22,7 +22,7 @@ maxMemory:2E9,corsURL:"params/loadcors.html",proxyURL:"params/loadproxy.html",lo color:"green"},imexamLineHeight:1,copyWcsPosFormat:"$ra $dec $sys",floatPrecision:6,mouseActions:["display value/position","change contrast/bias","pan the image"],touchActions:["display value/position","change contrast/bias","pan the image"],keyboardActions:{b:"toggle selected region: source/background",c:"toggle crosshair",d:"send selected region to back",e:"toggle selected region: include/exclude","M-e":"edit selected region",i:"refresh image",I:"display full image","M-i":"display selected cutouts", "M-k":"toggle keyboard actions plugin",l:"toggle active shape layers","M-l":"new JS9 light window",m:"pan to mouse position","M-m":"toggle mouse/touch plugin","M-o":"open local file",P:"paste regions from local clipboard",p:"paste regions to current position",u:"undo remove of region(s)","M-,":"toggle preferences plugin","M-p":"toggle preferences plugin",r:"copy selected region to clipboard",R:"copy all regions to clipboard",s:"select region",S:"select all regions","M-s":"toggle shape layers plugin", x:"flip image around x axis",y:"flip image around y axis",9:"rotate image by 90 degrees","/":"copy wcs position to clipboard","?":"copy value and position to clipboard",0:"reset zoom","=":"zoom in","+":"zoom in","-":"zoom out","^":"raise region layer to top",">":"display next image","<":"display previous image","delete":"remove selected region",leftArrow:"move region/position left",upArrow:"move region/position up",rightArrow:"move region/position right",downArrow:"move region/position down"},mousetouchZoom:!1, -metaClickPan:!0,statusBar:"zoom: $zoom; scale: $scale/$scaleclipping($scalemin,$scalemax); color: $colormap($contrast,$bias); wcs: $wcssys($wcsunits)",toolbarTooltips:!1,centerDivs:["JS9Menubar"],resizeDivs:["JS9Menubar","JS9Colorbar","JS9Toolbar","JS9Statusbar"],pinchWait:8,pinchThresh:6,xeqPlugins:!0,extendedPlugins:!0,intensivePlugins:!1,dynamicSelect:"click",dynamicHighlight:!0,corsProxy:"https://js9.si.edu/cgi-bin/CORS-proxy.cgi",simbadProxy:"https://js9.si.edu/cgi-bin/simbad-proxy.cgi",catalogs:{ras:["RA", +metaClickPan:!0,statusBar:"$img(images/voyager/zoom_1.svg) $zoom; $scale($scaleclipping); $img(images/voyager/color_$colormap.png) $colormap; $wcssys",toolbarTooltips:!1,centerDivs:["JS9Menubar"],resizeDivs:["JS9Menubar","JS9Colorbar","JS9Toolbar","JS9Statusbar"],pinchWait:8,pinchThresh:6,xeqPlugins:!0,extendedPlugins:!0,intensivePlugins:!1,dynamicSelect:"click",dynamicHighlight:!0,corsProxy:"https://js9.si.edu/cgi-bin/CORS-proxy.cgi",simbadProxy:"https://js9.si.edu/cgi-bin/simbad-proxy.cgi",catalogs:{ras:["RA", "_RAJ2000","RAJ2000"],decs:["Dec","_DEJ2000","DEJ2000"],shape:"circle",color:"yellow",width:7,height:7,radius:3.5,r1:5,r2:3.5,wcssys:"ICRS",skip:"#\n",save:!0,tooltip:"$data.ra $data.dec"},topColormaps:"grey heat cool turbo viridis magma sls red green blue".split(" "),infoBox:"file object wcsfov wcscen wcspos impos physpos value regions progress".split(" "),infoBoxResize:!0,menuBar:"file edit view zoom scale color region wcs analysis help".split(" "),menubarStyle:"classic",menuPosition:"right-5 bottom-5", menuClickEvent:"mouseup",menuSelected:"check",menuImages:!0,userMenus:!1,userMenuDivider:"   ",imagesFileSubmenu:5,toolBar:"annulus box circle ellipse line polygon text zoom+ zoom- zoom1 zoomtofit".split(" "),syncOps:"colormap contrastbias flip pan regions rot90 scale wcs zoom".split(" "),syncReciprocate:!0,syncWCS:!0,hiddenPluginDivs:[],separate:{layout:"auto",leftMargin:10,topMargin:10},imageTemplates:".fits,.fts,.png,.jpg,.jpeg,.fz,.ftz",wcsUnits:{FK4:"sexagesimal",FK5:"sexagesimal", ICRS:"sexagesimal",galactic:"degrees",ecliptic:"degrees",linear:"degrees",physical:"pixels",image:"pixels"},regionTemplates:".reg",sessionTemplates:".ses,.js9ses",colormapTemplates:".cmap",catalogTemplates:".cat,.tab",localTemplates:".fits,.fts",controlsMatchRegion:!1,internalColorPicker:!0,newWindowWidth:530,newWindowHeight:625,debug:0};a.desktopOpts={currentPath:!0,sessionPath:!0};a.imageOpts={inherit:!1,contrast:1,bias:.5,invert:!1,exp:1E3,colormap:"grey",scale:"linear",scaleclipping:"dataminmax", diff --git a/js9plugins.js b/js9plugins.js index 133d2c30..20a62a2b 100644 --- a/js9plugins.js +++ b/js9plugins.js @@ -6089,7 +6089,6 @@ JS9.RegisterPlugin(JS9.Mef.CLASS, JS9.Mef.NAME, JS9.Mef.init, winResize: true, winDims: [JS9.Mef.WIDTH, JS9.Mef.HEIGHT]}); - /* * JS9 menubar to manage menubar and its menus */ @@ -8059,7 +8058,7 @@ JS9.Menubar.createMenus = function(){ s1 = JS9.globalOpts.topColormaps[i]; s2 = s1; if( JS9.globalOpts.menuImages ){ - hstr = `
` + `  ${s2}
`; + hstr = `
` + `  ${s2}
`; items[s1] = {name: hstr, isHtmlName: true}; } else { items[s1] = xname(s2); @@ -8082,7 +8081,7 @@ JS9.Menubar.createMenus = function(){ if( !JS9.globalOpts.topColormaps.includes(s1) ){ s2 = s1; if( JS9.globalOpts.menuImages ){ - hstr = `
` + `  ${s2}
`; + hstr = `
` + `  ${s2}
`; items.morecmaps.items[s1] = {name: hstr, isHtmlName: true}; } else { items.morecmaps.items[s1] = xname(s2); @@ -8319,7 +8318,7 @@ JS9.Menubar.createMenus = function(){ if( JS9.globalOpts.menuImages ){ for(i=0; i` + `  ${reg}`, + items[reg] = {name: `
` + `  ${reg}
`, isHtmlName: true}; } } else { @@ -12178,7 +12177,8 @@ JS9.Statusbar.display = function(im){ // wrap in element containers s = `${s}
` .replace(/: */g, ": ") - .replace(/; */g, " "); + .replace(/; */g, " ") + .replace(/\$img\(([^()]+)\)/g, ""); } this.statusContainer.html(s); } else { diff --git a/js9support.css b/js9support.css index ac885306..4686ca82 100644 --- a/js9support.css +++ b/js9support.css @@ -1661,6 +1661,10 @@ div.JS9MouseTouchHeader, div.JS9MouseTouchFooter { padding-left: 2px; } +.JS9StatusbarImage { + white-space:nowrap; +} + .JS9StatusbarItemNoHighlight { border: 1px solid #D0D0D0; } @@ -1668,6 +1672,16 @@ div.JS9MouseTouchHeader, div.JS9MouseTouchFooter { .JS9StatusbarItemHighlight { border: 1px solid #B5B5B5; } + +img.JS9StatusbarImageOption[name*="zoom_"]{ + height: 12px; + width: 12px; +} + +img.JS9StatusbarImageOption[name*="color_"]{ + height: 12px; + width: 40px; +} div.JS9SeparateContainer { padding: 2px; } diff --git a/js9usermenus.js b/js9usermenus.js index fb4b01b8..e65c9366 100644 --- a/js9usermenus.js +++ b/js9usermenus.js @@ -111,60 +111,60 @@ JS9.globalOpts.userMenuBar = [ { "name": "colormap", "title": "myColormaps", - "imageTitle": "images/voyager/cmap_viridis.png", + "imageTitle": "images/voyager/color_viridis.png", "updateTitle": "image", "options": [ { "name": "grey", - "image": "images/voyager/cmap_grey.png", + "image": "images/voyager/color_grey.png", "cmd": "SetColormap", "args": ["grey"] }, { "name": "cool", - "image": "images/voyager/cmap_cool.png", + "image": "images/voyager/color_cool.png", "cmd": "SetColormap", "args": ["cool"] }, { "name": "heat", - "image": "images/voyager/cmap_heat.png", + "image": "images/voyager/color_heat.png", "cmd": "SetColormap", "args": ["heat"] }, { "name": "viridis", - "image": "images/voyager/cmap_viridis.png", + "image": "images/voyager/color_viridis.png", "cmd": "SetColormap", "args": ["viridis"] }, { "name": "magma", - "image": "images/voyager/cmap_magma.png", + "image": "images/voyager/color_magma.png", "cmd": "SetColormap", "args": ["magma"] }, { "name": "sls", - "image": "images/voyager/cmap_sls.png", + "image": "images/voyager/color_sls.png", "cmd": "SetColormap", "args": ["sls"] }, { "name": "red", - "image": "images/voyager/cmap_red.png", + "image": "images/voyager/color_red.png", "cmd": "SetColormap", "args": ["red"] }, { "name": "green", - "image": "images/voyager/cmap_green.png", + "image": "images/voyager/color_green.png", "cmd": "SetColormap", "args": ["green"] }, { "name": "blue", - "image": "images/voyager/cmap_blue.png", + "image": "images/voyager/color_blue.png", "cmd": "SetColormap", "args": ["blue"] }, diff --git a/plugins/core/menubar.js b/plugins/core/menubar.js index e3e7d371..9ed6cec8 100644 --- a/plugins/core/menubar.js +++ b/plugins/core/menubar.js @@ -1,4 +1,3 @@ - /* * JS9 menubar to manage menubar and its menus */ @@ -1968,7 +1967,7 @@ JS9.Menubar.createMenus = function(){ s1 = JS9.globalOpts.topColormaps[i]; s2 = s1; if( JS9.globalOpts.menuImages ){ - hstr = `
` + `  ${s2}
`; + hstr = `
` + `  ${s2}
`; items[s1] = {name: hstr, isHtmlName: true}; } else { items[s1] = xname(s2); @@ -1991,7 +1990,7 @@ JS9.Menubar.createMenus = function(){ if( !JS9.globalOpts.topColormaps.includes(s1) ){ s2 = s1; if( JS9.globalOpts.menuImages ){ - hstr = `
` + `  ${s2}
`; + hstr = `
` + `  ${s2}
`; items.morecmaps.items[s1] = {name: hstr, isHtmlName: true}; } else { items.morecmaps.items[s1] = xname(s2); @@ -2228,7 +2227,7 @@ JS9.Menubar.createMenus = function(){ if( JS9.globalOpts.menuImages ){ for(i=0; i` + `  ${reg}`, + items[reg] = {name: `
` + `  ${reg}
`, isHtmlName: true}; } } else { diff --git a/plugins/core/statusbar.css b/plugins/core/statusbar.css index 3ee350fe..928c57a4 100644 --- a/plugins/core/statusbar.css +++ b/plugins/core/statusbar.css @@ -19,6 +19,10 @@ padding-left: 2px; } +.JS9StatusbarImage { + white-space:nowrap; +} + .JS9StatusbarItemNoHighlight { border: 1px solid #D0D0D0; } @@ -26,3 +30,13 @@ .JS9StatusbarItemHighlight { border: 1px solid #B5B5B5; } + +img.JS9StatusbarImageOption[name*="zoom_"]{ + height: 12px; + width: 12px; +} + +img.JS9StatusbarImageOption[name*="color_"]{ + height: 12px; + width: 40px; +} diff --git a/plugins/core/statusbar.js b/plugins/core/statusbar.js index e0504203..00b2b90e 100644 --- a/plugins/core/statusbar.js +++ b/plugins/core/statusbar.js @@ -86,7 +86,8 @@ JS9.Statusbar.display = function(im){ // wrap in element containers s = `${s}
` .replace(/: */g, ": ") - .replace(/; */g, " "); + .replace(/; */g, " ") + .replace(/\$img\(([^()]+)\)/g, ""); } this.statusContainer.html(s); } else {