Skip to content

Commit

Permalink
Hide camera button on screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
mhismail committed Jan 15, 2018
1 parent 4ea13a5 commit 3d24aba
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 253 deletions.
11 changes: 8 additions & 3 deletions app/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ canvas{
.zoom{
position: absolute;
top: 0;
left:0;
left:20;
}


.zoom2{
position: absolute;
top: 6%;
left:0;
top: 4%;
left:20;
}


Expand Down Expand Up @@ -268,6 +268,11 @@ i.fa.fa-minus:hover {
cursor: pointer;
}

i.fa.fa-plus:hover {
color: #23ea09;
cursor: pointer;
}

.close {
background-color: rgba(88, 88, 88,.5);
line-height: 0;
Expand Down
8 changes: 4 additions & 4 deletions app/shapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,15 +622,15 @@ console.log(windowPos)
//shell.openExternal("file://"+screenshotPath)
setTimeout(function(){
addDragImage("file://"+screenshotPath)
console.log("file://"+screenshotPath)
$(".main-container").css("background"," rgba(171, 163, 163, 0.17)");
$('.screen-cap-button').show()
$('.floating-canvas').show()
},100)


})
})
$(".main-container").css("background"," rgba(171, 163, 163, 0.17)");
$('.screen-cap-button').show()
$('.floating-canvas').show()




Expand Down
12 changes: 7 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const electron = require('electron');
const {app} = electron;
const {app, protocol} = electron;
const {BrowserWindow} = electron;
const {globalShortcut} = electron;
const {ipcRenderer} = electron;
Expand All @@ -10,21 +10,23 @@ const {webContents} = electron;

var mainWindow = null;
app.commandLine.appendSwitch('--disable-http-cache');
app.disableHardwareAcceleration()

app.on('ready', function() {
protocol.unregisterProtocol('', () => {
mainWindow = new BrowserWindow({
frame: false,
height: 100,
//resizable: true,
width: 100,
height: 500,
//resizable: false,
width: 500,
transparent:true
});
mainWindow.loadURL('file://' + __dirname + '/index.html');
mainWindow.maximize()




})
});


Expand Down
Loading

0 comments on commit 3d24aba

Please sign in to comment.