mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30: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 core = require('features/core')
|
||||||
var base = require('features/base')
|
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...
|
// Fullscreen app control buttons...
|
||||||
|
|
||||||
var AppButtonsActions = actions.Actions({
|
var AppButtonsActions = actions.Actions({
|
||||||
config: {
|
config: {
|
||||||
'app-buttons': {
|
// append app-specific buttons...
|
||||||
//'<span/>': ['touch-controls', 'toggleSideButtons -- Toggle touch controls'],
|
'app-buttons': Object.assign({},
|
||||||
// XXX not sure about this...
|
widgets.Buttons.actions.config['app-buttons'],
|
||||||
//'⛭': ['ui-settings', [
|
{
|
||||||
'<span class="material-icons">settings</span>': ['ui-settings', [
|
'_': ['minimize',
|
||||||
'browseActions: "Interface/" -- Interface settings...',
|
'minimize -- Minimize'],
|
||||||
'toggleSideButtons -- Toggle touch controls',
|
'↙': ['fullscreen',
|
||||||
]],
|
'toggleFullScreen -- Toggle fullscreen'],
|
||||||
'_': ['minimize',
|
'×': ['close',
|
||||||
'minimize -- Minimize'],
|
'close -- Quit'],
|
||||||
'↙': ['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...
|
// XXX add context menu action to buttons...
|
||||||
var ButtonsActions = actions.Actions({
|
var ButtonsActions = actions.Actions({
|
||||||
config: {
|
config: {
|
||||||
@ -2010,8 +2016,6 @@ var ButtonsActions = actions.Actions({
|
|||||||
'browseActions: "/Collections/" -- Collection menu...',
|
'browseActions: "/Collections/" -- Collection menu...',
|
||||||
]],
|
]],
|
||||||
'C<sub/>': ['crop', 'browseActions: "Crop/" -- Crop menu...'],
|
'C<sub/>': ['crop', 'browseActions: "Crop/" -- Crop menu...'],
|
||||||
//'▤<sub/>': ['collections', 'browseCollections -- Collections...'],
|
|
||||||
//'⛶': ['view', 'toggleSingleImage -- Single image / ribbon toggle'],
|
|
||||||
'▷': ['slideshow', [
|
'▷': ['slideshow', [
|
||||||
'toggleSlideshow -- Slideshow',
|
'toggleSlideshow -- Slideshow',
|
||||||
'slideshowDialog -- Slideshow menu...',
|
'slideshowDialog -- Slideshow menu...',
|
||||||
@ -2021,6 +2025,7 @@ var ButtonsActions = actions.Actions({
|
|||||||
// XXX not sure about these yet...
|
// XXX not sure about these yet...
|
||||||
'secondary-buttons-state': 'off',
|
'secondary-buttons-state': 'off',
|
||||||
'secondary-buttons': {
|
'secondary-buttons': {
|
||||||
|
//'<span/>': ['touch-controls', 'toggleSideButtons -- Toggle touch controls'],
|
||||||
//'Z<sub/>': ['zoom', 'browseActions: "Zoom/" -- Zoom menu...'],
|
//'Z<sub/>': ['zoom', 'browseActions: "Zoom/" -- Zoom menu...'],
|
||||||
//'+': ['zoom-in', 'zoomIn -- Zoom in'],
|
//'+': ['zoom-in', 'zoomIn -- Zoom in'],
|
||||||
//'-': ['zoom-out', 'zoomOut -- Zoom out'],
|
//'-': ['zoom-out', 'zoomOut -- Zoom out'],
|
||||||
@ -2028,10 +2033,7 @@ var ButtonsActions = actions.Actions({
|
|||||||
},
|
},
|
||||||
|
|
||||||
'app-buttons': {
|
'app-buttons': {
|
||||||
//'<span/>': ['touch-controls', 'toggleSideButtons -- Toggle touch controls'],
|
[SETTINGS_ICON]: ['ui-settings', [
|
||||||
//'⛭': ['ui-settings', 'browseActions: "Interface/" -- Interface settings...'],
|
|
||||||
//'⛭': ['ui-settings', [
|
|
||||||
'<span class="material-icons">settings</span>': ['ui-settings', [
|
|
||||||
'browseActions: "Interface/" -- Interface settings...',
|
'browseActions: "Interface/" -- Interface settings...',
|
||||||
'toggleSideButtons -- Toggle touch controls',
|
'toggleSideButtons -- Toggle touch controls',
|
||||||
]],
|
]],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user