Use double resolution logo to support hires displays

This commit is contained in:
Thomas Kluyver 2014-12-09 12:11:02 -08:00
parent cad0c32137
commit 7cc07251e4
3 changed files with 10 additions and 1 deletions

View File

@ -85,7 +85,7 @@ define([
this.events.on('spec_changed.Kernel', function(event, data) {
that.current_selection = data.name;
that.element.find("#current_kernel_spec").find('.kernel_name').text(data.display_name);
that.element.find("#current_kernel_logo").attr("src", "/kernelspecs/"+data.name+"/logo-32.png");
that.element.find("#current_kernel_logo").attr("src", "/kernelspecs/"+data.name+"/logo-64.png");
});
this.events.on('kernel_created.Session', function(event, data) {

View File

@ -9,4 +9,9 @@
margin-top:0px;
}
}
& > img#current_kernel_logo {
width: 32px;
height: 32px;
}
}

View File

@ -9680,6 +9680,10 @@ fieldset[disabled] #kernel_selector_widget > button.active {
#kernel_selector_widget > button > span.caret {
margin-top: 0px;
}
#kernel_selector_widget > img#current_kernel_logo {
width: 32px;
height: 32px;
}
#menubar {
margin-top: 0px;
box-sizing: border-box;