Added menu icons.

master
Pacman Ghost 4 years ago
parent 999626c552
commit fbd07607de
  1. 5
      vasl_templates/webapp/static/css/main.css
  2. BIN
      vasl_templates/webapp/static/images/menu/analyze-vsav.png
  3. BIN
      vasl_templates/webapp/static/images/menu/help.png
  4. BIN
      vasl_templates/webapp/static/images/menu/lfa.png
  5. BIN
      vasl_templates/webapp/static/images/menu/new.png
  6. BIN
      vasl_templates/webapp/static/images/menu/open.png
  7. BIN
      vasl_templates/webapp/static/images/menu/save.png
  8. BIN
      vasl_templates/webapp/static/images/menu/settings.png
  9. BIN
      vasl_templates/webapp/static/images/menu/template-pack.png
  10. BIN
      vasl_templates/webapp/static/images/menu/update-vsav.png
  11. 19
      vasl_templates/webapp/static/main.js

@ -14,9 +14,8 @@ label { height: 1.25em ; margin-top: -3px ; }
#menu { position: absolute ; top: 15px ; right: 8px ; z-index: 1 ; }
#menu input[type='image'] { height: 30px ; }
.PopMenu-Item { width: 12em ; }
.PopMenu-Item a { padding: 5px 10px 5px 10px ; }
.PopMenu-Icon { display: none ; }
.PopMenu-Item { width: 14em ; }
.PopMenu-Item a { padding: 5px 10px 5px 30px ; }
#alt-webapp-base-url { position: absolute ; top: 30px ; right: 110px ;
font-size: 80% ; font-style: italic ; color: #cc0000 ;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 767 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 776 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 832 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 823 B

@ -49,19 +49,20 @@ $(document).ready( function () {
// initialize the menu
var $menu = $("#menu input") ;
var imagesDir = gImagesBaseUrl + "/menu" ;
$menu.popmenu( {
new_scenario: { label: "New scenario", action: function() { on_new_scenario() ; } },
load_scenario: { label: "Load scenario", action: on_load_scenario },
save_scenario: { label: "Save scenario", action: on_save_scenario },
new_scenario: { label: "New scenario", icon: imagesDir+"/new.png", action: on_new_scenario },
load_scenario: { label: "Load scenario", icon: imagesDir+"/open.png", action: on_load_scenario },
save_scenario: { label: "Save scenario", icon: imagesDir+"/save.png", action: on_save_scenario },
separator: { type: "separator" },
analyze_vsav: { label: "Analyze VASL scenario", action: on_analyze_vsav },
update_vsav: { label: "Update VASL scenario", action: on_update_vsav },
analyze_vlog: { label: "Analyze log files", action: on_analyze_vlog },
analyze_vsav: { label: "Analyze VASL scenario", icon: imagesDir+"/analyze-vsav.png", action: on_analyze_vsav },
update_vsav: { label: "Update VASL scenario", icon: imagesDir+"/update-vsav.png", action: on_update_vsav },
analyze_vlog: { label: "Analyze log files", icon: imagesDir+"/lfa.png", action: on_analyze_vlog },
separator2: { type: "separator" },
template_pack: { label: "Load template pack", action: on_template_pack },
user_settings: { label: "Settings", action: user_settings },
template_pack: { label: "Load template pack", icon: imagesDir+"/template-pack.png", action: on_template_pack },
user_settings: { label: "Settings", icon: imagesDir+"/settings.png", action: user_settings },
separator3: { type: "separator" },
show_help: { label: "Help", action: show_help },
show_help: { label: "Help", icon: imagesDir+"/help.png", action: show_help },
} ) ;
// nb: we only show the popmenu on left click (not the normal right-click)
$menu.off( "contextmenu" ) ;

Loading…
Cancel
Save