Commit 321a2a14 authored by Efthymia Bika's avatar Efthymia Bika
Browse files

Remove application menu, add icon bar

parent f907eb30
......@@ -14,37 +14,31 @@
create_baas_dir();
});
var gui = require('nw.gui');
var win = gui.Window.get();
win.resizeTo(1000, 700);
var menubar = new gui.Menu({
type: 'menubar'
});
var settings_edit = new gui.Menu();
settings_edit.append(new gui.MenuItem({
label: 'Edit',
click: function() {
$('#main').load('cloud-list.html');
}
}));
var backup = new gui.Menu();
backup.append(new gui.MenuItem({
label: 'List',
click: function() {
$('#main').load('backup-list.html');
}
}));
menubar.append(new gui.MenuItem({label: 'Backup/Restore', submenu: backup}));
menubar.append(new gui.MenuItem({label: 'Cloud Settings', submenu: settings_edit}));
win.menu = menubar;
</script>
</head>
<body>
<div class="blue-bar icon-bar four-up">
<a class="item">
<i class="fa fa-tasks"></i>
<label>Activity</label>
</a>
<a class="item" onclick="$('#main').load('backup-list.html');">
<i class="fa fa-upload"></i>
<label>Backup</label>
</a>
<a class="item">
<i class="fa fa-download"></i>
<label>Restore</label>
</a>
<a class="item" onclick="$('#main').load('cloud-list.html');">
<i class="fa fa-cloud"></i>
<label>Cloud Settings</label>
</a>
</div>
<div id="main"></div>
<script src="static/js/foundation.min.js"></script>
......
......@@ -35,3 +35,6 @@
font-size: small;
background: #DCEFCE;
}
.blue-bar {
background: #146A84;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment