minor tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-04-28 18:01:00 +03:00
parent c1a6f90731
commit a3d2f84cad
2 changed files with 8 additions and 7 deletions

View File

@ -70,11 +70,11 @@ module.GLOBAL_KEYBOARD = {
'#0', '#1', '#2', '#3', '#4', '#5', '#6', '#7', '#8', '#9', '#0', '#1', '#2', '#3', '#4', '#5', '#6', '#7', '#8', '#9',
], ],
'#1': 'fitScreen',
// XXX use a means to scale that does not get affected by image // XXX use a means to scale that does not get affected by image
// proportions... // proportions...
'#1': 'fitScreen', //'#2': 'fitNormal',
'#2': 'fitNormal', //'#3': 'fitSmall',
'#3': 'fitSmall',
Esc: 'toggleSingleImage: "off" -- Exit single image view', Esc: 'toggleSingleImage: "off" -- Exit single image view',

View File

@ -592,15 +592,14 @@ module.ViewerActions = actions.Actions({
this.ribbons.fitImage(count) this.ribbons.fitImage(count)
this.refresh() this.refresh()
}], }],
fitMax: ['Zoom/Fit the maximum number of images', fitMax: ['Zoom/Fit the maximum number of images',
function(){ this.fitImage(this.config['max-screen-images']) }], function(){ this.fitImage(this.config['max-screen-images']) }],
// XXX make this viewer/image proportion independent....
// XXX the question with these is how to make these relatively
// similar across platforms...
// ...for this we need to get display dpi...
fitSmall: ['Zoom/Show small image', fitSmall: ['Zoom/Show small image',
function(){ this.fitImage(5, 0) }], function(){ this.fitImage(5, 0) }],
// XXX make this viewer/image proportion independent....
fitNormal: ['Zoom/Show normal image', fitNormal: ['Zoom/Show normal image',
function(){ this.fitImage(1.5, 0) }], function(){ this.fitImage(1.5, 0) }],
fitScreen: ['Zoom/Fit image to screen', fitScreen: ['Zoom/Fit image to screen',
@ -892,6 +891,8 @@ module.SortUI = core.ImageGridFeatures.Feature({
}) })
//---------------------------------------------------------------------
// XXX tag dialogs... // XXX tag dialogs...
// XXX // XXX