Skip to content

Commit

Permalink
Rounded webcam is a perfect circle.
Browse files Browse the repository at this point in the history
  • Loading branch information
javdome committed Dec 13, 2022
1 parent fe914d0 commit 79cc730
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
## Features
* 💻 Select from multiple desktops.
* 😃 Insert your webcam in a circle 🔴, or in a square 🟥, that you can move around.
* 🎤 Insert your audio microphone.
* 🎤 Select and insert your audio microphone.
* 🔈 Insert your audio system.
* 🎨 Select the quality of the recording.
* 🕐 Countdown when starts the recording.
* 👉 Some useful shortcuts.

<br>

![image](https://user-images.githubusercontent.com/36993404/182353933-dd731739-6bdb-4413-85ac-9b9ea6611cac.PNG)
![image](https://user-images.githubusercontent.com/36993404/207299318-7e35b93c-b94c-4512-ba51-d93d0728d201.PNG)

<br>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lum-recorder",
"productName": "lum-recorder",
"version": "1.5.0",
"version": "1.6.0",
"description": "Screen recorder with options like audio system, microphone, webcam, etc...",
"main": "src/index.js",
"scripts": {
Expand Down
15 changes: 13 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const createWindow = () => {
if(!isShownFace) {
isCamRounded = roundedCam;
createWinFace();
if(isCamRounded) winFace.setSize(290,290);
isShownFace = true;
} else {
winFace.close();
Expand Down Expand Up @@ -145,12 +146,22 @@ if (!gotTheLock) {

globalShortcut.register('Alt+CommandOrControl+1', () => {
if(winFace !=null ) {
if (bigFace) {
if (bigFace && isCamRounded) {
winFace.setSize(290,290);
winFace.setPosition(winFace.getPosition()[0] + 205, winFace.getPosition()[1] + 205);
bigFace = false;

} else if (bigFace && !isCamRounded) {
winFace.setSize(320,240);
winFace.setPosition(winFace.getPosition()[0] + 240, winFace.getPosition()[1] + 180);
bigFace = false;

} else {
} else if(!bigFace && isCamRounded) {
winFace.setSize(700,700);
winFace.setPosition(winFace.getPosition()[0] - 205, winFace.getPosition()[1] - 205);
bigFace = true;

} else { //(!bigFace && !isCamRounded)
winFace.setSize(800,600);
winFace.setPosition(winFace.getPosition()[0] - 240, winFace.getPosition()[1] - 180);
bigFace = true;
Expand Down
2 changes: 1 addition & 1 deletion src/main-menu.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Lum Screen Recorder (v1.5.0)</title>
<title>Lum Screen Recorder (v1.6.0)</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down

0 comments on commit 79cc730

Please sign in to comment.