-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9004ae5
commit 6537bb8
Showing
7 changed files
with
88 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
function setScale ( | ||
value | ||
) { | ||
mainWindow | ||
.webContents | ||
.setZoomFactor( | ||
value | ||
) | ||
} | ||
|
||
module.exports = setScale |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
function setScale ( | ||
tab, | ||
value | ||
) { | ||
tab | ||
.webContents | ||
.setZoomFactor( | ||
value | ||
) | ||
} | ||
|
||
module.exports = setScale |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
const getTabs = require( | ||
'./get' | ||
) | ||
const setTabBounds = require( | ||
'../tab/setBounds' | ||
) | ||
const setTabScale = require( | ||
'../tab/setScale' | ||
) | ||
|
||
function setScale ( | ||
value | ||
) { | ||
function setTabBoundsAndScale ( | ||
tab | ||
) { | ||
setTabBounds( | ||
tab | ||
) | ||
|
||
setTabScale( | ||
tab, | ||
value | ||
) | ||
} | ||
|
||
getTabs().forEach( | ||
setTabBoundsAndScale | ||
) | ||
} | ||
|
||
module.exports = setScale |