mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
fixed settings icon for mac (still need to change the icon)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4b364b3f2a
commit
66aea36685
@ -23,6 +23,7 @@ var toggler = require('lib/toggler')
|
||||
|
||||
var core = require('features/core')
|
||||
var base = require('features/base')
|
||||
var widgets = require('features/ui-widgets')
|
||||
|
||||
|
||||
|
||||
@ -549,23 +550,20 @@ module.AppControl = core.ImageGridFeatures.Feature('ui-app-control', [
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// Fullscreen app control buttons...
|
||||
|
||||
var AppButtonsActions = actions.Actions({
|
||||
config: {
|
||||
'app-buttons': {
|
||||
//'<span/>': ['touch-controls', 'toggleSideButtons -- Toggle touch controls'],
|
||||
// XXX not sure about this...
|
||||
//'⛭': ['ui-settings', [
|
||||
'<span class="material-icons">settings</span>': ['ui-settings', [
|
||||
'browseActions: "Interface/" -- Interface settings...',
|
||||
'toggleSideButtons -- Toggle touch controls',
|
||||
]],
|
||||
'_': ['minimize',
|
||||
'minimize -- Minimize'],
|
||||
'↙': ['fullscreen',
|
||||
'toggleFullScreen -- Toggle fullscreen'],
|
||||
'×': ['close',
|
||||
'close -- Quit'],
|
||||
},
|
||||
// append app-specific buttons...
|
||||
'app-buttons': Object.assign({},
|
||||
widgets.Buttons.actions.config['app-buttons'],
|
||||
{
|
||||
'_': ['minimize',
|
||||
'minimize -- Minimize'],
|
||||
'↙': ['fullscreen',
|
||||
'toggleFullScreen -- Toggle fullscreen'],
|
||||
'×': ['close',
|
||||
'close -- Quit'],
|
||||
}),
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
@ -1978,6 +1978,12 @@ module.ContextActionMenu = core.ImageGridFeatures.Feature({
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
// XXX mac seems not to have the utf gear icon...
|
||||
var SETTINGS_ICON =
|
||||
typeof(navigator) == 'undefined' ? 'settings'
|
||||
: navigator.platform == 'Win32' ? '⛭'
|
||||
: '<span class="material-icons">settings</span>'
|
||||
|
||||
// XXX add context menu action to buttons...
|
||||
var ButtonsActions = actions.Actions({
|
||||
config: {
|
||||
@ -2010,8 +2016,6 @@ var ButtonsActions = actions.Actions({
|
||||
'browseActions: "/Collections/" -- Collection menu...',
|
||||
]],
|
||||
'C<sub/>': ['crop', 'browseActions: "Crop/" -- Crop menu...'],
|
||||
//'▤<sub/>': ['collections', 'browseCollections -- Collections...'],
|
||||
//'⛶': ['view', 'toggleSingleImage -- Single image / ribbon toggle'],
|
||||
'▷': ['slideshow', [
|
||||
'toggleSlideshow -- Slideshow',
|
||||
'slideshowDialog -- Slideshow menu...',
|
||||
@ -2021,6 +2025,7 @@ var ButtonsActions = actions.Actions({
|
||||
// XXX not sure about these yet...
|
||||
'secondary-buttons-state': 'off',
|
||||
'secondary-buttons': {
|
||||
//'<span/>': ['touch-controls', 'toggleSideButtons -- Toggle touch controls'],
|
||||
//'Z<sub/>': ['zoom', 'browseActions: "Zoom/" -- Zoom menu...'],
|
||||
//'+': ['zoom-in', 'zoomIn -- Zoom in'],
|
||||
//'-': ['zoom-out', 'zoomOut -- Zoom out'],
|
||||
@ -2028,10 +2033,7 @@ var ButtonsActions = actions.Actions({
|
||||
},
|
||||
|
||||
'app-buttons': {
|
||||
//'<span/>': ['touch-controls', 'toggleSideButtons -- Toggle touch controls'],
|
||||
//'⛭': ['ui-settings', 'browseActions: "Interface/" -- Interface settings...'],
|
||||
//'⛭': ['ui-settings', [
|
||||
'<span class="material-icons">settings</span>': ['ui-settings', [
|
||||
[SETTINGS_ICON]: ['ui-settings', [
|
||||
'browseActions: "Interface/" -- Interface settings...',
|
||||
'toggleSideButtons -- Toggle touch controls',
|
||||
]],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user