tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-03-20 17:13:03 +03:00
parent aba11b5e0a
commit e48742f4f6
3 changed files with 4 additions and 1926 deletions

File diff suppressed because it is too large Load Diff

View File

@ -49,7 +49,7 @@ var StatusBarActions = actions.Actions({
'status-bar-modes': [ 'status-bar-modes': [
'none', 'none',
'minimal', 'minimal',
'full' 'full',
], ],
'status-bar-items': [ 'status-bar-items': [
'index', 'index',

View File

@ -3043,6 +3043,7 @@ var UIScaleActions = actions.Actions({
// XXX need to account for scale in PartialRibbons // XXX need to account for scale in PartialRibbons
// XXX should this be browser API??? // XXX should this be browser API???
// XXX this does not re-scale the ribbons correctly in nw0.13
toggleInterfaceScale: ['Interface/Toggle interface modes', toggleInterfaceScale: ['Interface/Toggle interface modes',
base.makeConfigToggler('ui-scale-mode', base.makeConfigToggler('ui-scale-mode',
function(){ return Object.keys(this.config['ui-scale-modes']) }, function(){ return Object.keys(this.config['ui-scale-modes']) },
@ -3055,10 +3056,8 @@ var UIScaleActions = actions.Actions({
var w = this.screenwidth var w = this.screenwidth
// XXX need to compensate for external size change... // NOTE: scale = Math.pow(1.2, zoomLevel)
//this.ribbons.viewer[0].style.transform = 'scale(' // XXX in nw0.13 this appears to be async...
// + (this.config['ui-scale-modes'][state] || 1)
// +')'
win.zoomLevel = this.config['ui-scale-modes'][state] || 0 win.zoomLevel = this.config['ui-scale-modes'][state] || 0
this.screenwidth = w this.screenwidth = w