Commit 3de72df1 authored by Stavros Sachtouris's avatar Stavros Sachtouris Committed by Giorgos Korfiatis
Browse files

Modify GUI appearance for OS X

All menu icons are now 20X20 pixels and they are instructed to not
behave as template icons, allowing them to be rendered with colors
parent dc09abc3
......@@ -35,8 +35,9 @@ function closeWindows() {
// GUI components
var tray = new gui.Tray({
title: 'Agkyra syncs with Pithos+',
icon: 'static/images/tray.png'
tooltip: 'Agkyra Syncing Client',
icon: 'static/images/tray.png',
iconsAreTemplates: false
});
var menu = new gui.Menu();
......@@ -57,6 +58,7 @@ menu.append(new gui.MenuItem({type: 'separator'}));
pause_item = new gui.MenuItem({
// pause menu item
icon: 'static/images/play_pause.png',
iconIsTemplate: false,
label: 'NOT READY',
type: 'normal',
click: function() {
......@@ -70,6 +72,7 @@ menu.append(pause_item);
var local_folder_menu = new gui.MenuItem({
label: 'Open local folder',
icon: 'static/images/folder.png',
iconIsTemplate: false,
enabled: false,
click: function () {
var dir = globals['settings']['directory'];
......@@ -82,6 +85,7 @@ menu.append(local_folder_menu);
var pithos_page_menu = new gui.MenuItem({
label: 'Launch Pithos+ page',
icon: 'static/images/pithos.png',
iconIsTemplate: false,
enabled: false,
click: function () {
log_debug('Visit ' + get_pithos_ui());
......@@ -95,7 +99,9 @@ menu.append(new gui.MenuItem({type: 'separator'}));
var settings_menu = new gui.MenuItem({
label: 'Settings',
icon: 'static/images/settings.png',
iconIsTemplate: false,
enabled: false,
//kiosk: false,
click: function () {
globals.settings_are_open = true;
globals.open_settings = false;
......@@ -129,6 +135,7 @@ menu.append(settings_menu);
menu.append(new gui.MenuItem({
label: 'About',
icon: 'static/images/about.png',
iconIsTemplate: false,
click: function () {
if (windows['about']) windows['about'].close();
windows['about'] = gui.Window.open("about.html", {
......@@ -143,6 +150,7 @@ menu.append(new gui.MenuItem({type: 'separator'}));
menu.append(new gui.MenuItem({
label: 'Quit Agkyra',
icon: 'static/images/exit.png',
iconIsTemplate: false,
click: function() {post_shutdown(socket);}
}));
......@@ -263,4 +271,4 @@ tray.menu = menu;
</script>
</body>
</html>
\ No newline at end of file
</html>
agkyra/nwgui/static/images/about.png

2.06 KB | W: | H:

agkyra/nwgui/static/images/about.png

1.31 KB | W: | H:

agkyra/nwgui/static/images/about.png
agkyra/nwgui/static/images/about.png
agkyra/nwgui/static/images/about.png
agkyra/nwgui/static/images/about.png
  • 2-up
  • Swipe
  • Onion skin
agkyra/nwgui/static/images/exit.png

1.86 KB | W: | H:

agkyra/nwgui/static/images/exit.png

1.21 KB | W: | H:

agkyra/nwgui/static/images/exit.png
agkyra/nwgui/static/images/exit.png
agkyra/nwgui/static/images/exit.png
agkyra/nwgui/static/images/exit.png
  • 2-up
  • Swipe
  • Onion skin
agkyra/nwgui/static/images/folder.png

1.21 KB | W: | H:

agkyra/nwgui/static/images/folder.png

731 Bytes | W: | H:

agkyra/nwgui/static/images/folder.png
agkyra/nwgui/static/images/folder.png
agkyra/nwgui/static/images/folder.png
agkyra/nwgui/static/images/folder.png
  • 2-up
  • Swipe
  • Onion skin
agkyra/nwgui/static/images/pithos.png

1.13 KB | W: | H:

agkyra/nwgui/static/images/pithos.png

966 Bytes | W: | H:

agkyra/nwgui/static/images/pithos.png
agkyra/nwgui/static/images/pithos.png
agkyra/nwgui/static/images/pithos.png
agkyra/nwgui/static/images/pithos.png
  • 2-up
  • Swipe
  • Onion skin
agkyra/nwgui/static/images/settings.png

3.44 KB | W: | H:

agkyra/nwgui/static/images/settings.png

1.64 KB | W: | H:

agkyra/nwgui/static/images/settings.png
agkyra/nwgui/static/images/settings.png
agkyra/nwgui/static/images/settings.png
agkyra/nwgui/static/images/settings.png
  • 2-up
  • Swipe
  • Onion skin
agkyra/nwgui/static/images/tray.png

2.24 KB | W: | H:

agkyra/nwgui/static/images/tray.png

1.33 KB | W: | H:

agkyra/nwgui/static/images/tray.png
agkyra/nwgui/static/images/tray.png
agkyra/nwgui/static/images/tray.png
agkyra/nwgui/static/images/tray.png
  • 2-up
  • Swipe
  • Onion skin
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