minor tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-05-08 15:58:22 +03:00
parent 01fc68ae92
commit 28708baf62
4 changed files with 6 additions and 4 deletions

View File

@ -303,6 +303,8 @@ button:hover {
opacity: 0.4; opacity: 0.4;
size: 30px; size: 30px;
cursor: default;
} }
.fullscreen-controls:hover { .fullscreen-controls:hover {
opacity: 1; opacity: 1;

View File

@ -54,6 +54,7 @@ var AppControlActions = actions.Actions({
}], }],
restoreWindowGeometry: ['- Interface/Restore window state', restoreWindowGeometry: ['- Interface/Restore window state',
function(){ function(){
var that = this
// or global.window.nwDispatcher.requireNwGui() // or global.window.nwDispatcher.requireNwGui()
// (see: https://github.com/rogerwang/node-webkit/issues/707) // (see: https://github.com/rogerwang/node-webkit/issues/707)
var win = nw.Window.get() var win = nw.Window.get()
@ -100,7 +101,7 @@ var AppControlActions = actions.Actions({
// XXX check if we are full screen... // XXX check if we are full screen...
if(cfg != null && cfg.fullscreen && !win.isFullscreen){ if(cfg != null && cfg.fullscreen && !win.isFullscreen){
this.toggleFullScreen('on') that.toggleFullScreen('on')
} }
}, this.config['window-delay-initial-display'] || 0) }, this.config['window-delay-initial-display'] || 0)
}], }],

View File

@ -388,6 +388,7 @@ module.makeUIDialog = function(a, b){
var makeDrawer = function(direction){ var makeDrawer = function(direction){
return makeUIContainer(function(dialog, options){ return makeUIContainer(function(dialog, options){
var that = this
var parent = (options || {}).parentElement var parent = (options || {}).parentElement
parent = parent ? $(parent) : this.ribbons.viewer parent = parent ? $(parent) : this.ribbons.viewer

View File

@ -13,9 +13,7 @@
"toolbar": false, "toolbar": false,
"show": false "show": false
}, },
"webkit": { "chromium-args": "",
"page-cache": true
},
"dependencies": { "dependencies": {
"app-module-path": "^1.0.6", "app-module-path": "^1.0.6",
"commander": "^2.9.0", "commander": "^2.9.0",