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': [
'none',
'minimal',
'full'
'full',
],
'status-bar-items': [
'index',

View File

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