Skip to content

Commit

Permalink
Fixed screenshare, removed unused graphics and updated color theme fo…
Browse files Browse the repository at this point in the history
…r css
  • Loading branch information
Milkshiift committed Mar 23, 2023
1 parent 5ed0c9d commit a2721f4
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 15 deletions.
Binary file removed assets/ac_black_plug.png
Binary file not shown.
Binary file removed assets/ac_black_plug_hollow.png
Binary file not shown.
Binary file removed assets/ac_white_plug.png
Binary file not shown.
Binary file removed assets/ac_white_plug_hollow.png
Binary file not shown.
Binary file removed assets/clsc-dsc-tray.png
Binary file not shown.
Binary file removed assets/dsc-tray.png
Binary file not shown.
Binary file removed assets/macos.png
Binary file not shown.
Binary file removed assets/screenshot-1920x1080.png
Binary file not shown.
6 changes: 3 additions & 3 deletions src/content/css/screenshare.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
left: 0;
width: 100%;
height: 100vh;
background: rgba(30, 30, 30, 0.75);
background: #313338;
color: #ffffff;
z-index: 10000000;
display: flex;
Expand Down Expand Up @@ -43,7 +43,7 @@
border: 0;
border-radius: 3px;
padding: 4px;
background: #2c2f33;
background: #23272a;
text-align: left;
}

Expand All @@ -52,7 +52,7 @@

.desktop-capturer-selection__btn:hover,
.desktop-capturer-selection__btn:focus {
background: #7289da;
background: #5865f2;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.45), 0 0 2px rgba(0, 0, 0, 0.25);
color: #fff;
}
Expand Down
10 changes: 5 additions & 5 deletions src/content/css/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.*/
:root {
--background-secondary: #2f3136;
--background-secondary: #474554;
--background-secondary-alt: #292b2f;
--background-floating: #18191c;
--background-floating: #23272a;
--background-modifier-hover: rgba(106, 116, 128, 0.16);
--brand-experiment: #7289da;
--brand-experiment: #5865f2;
--brand-experiment-560: #5c6fb1;
--brand-experiment-600: #4e5d94;
--brand-experiment-600: #aca5db;
--interactive-normal: #b9bbbe;
--interactive-hover: #dcddde;
--text-muted: #72767d;
Expand Down Expand Up @@ -165,7 +165,7 @@ button {
}

button:hover {
background: var(--brand-experiment-560);
background: var(--brand-experiment-600);
cursor: pointer;
transition: 0.17s ease;
}
Expand Down
1 change: 0 additions & 1 deletion src/extensions/mods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ const unstrictCSP = () => {
});
};
electron.app.whenReady().then(async () => {
console.log("TESTTTTTTT");
unstrictCSP();
});
9 changes: 3 additions & 6 deletions src/screenshare/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ function registerCustomHandler() {
capturerWindow = new BrowserWindow({
width: 800,
height: 600,
title: "GoofCord Screenshare",
darkTheme: true,
icon: iconPath,
frame: true,
frame: false,
autoHideMenuBar: true,
webPreferences: {
sandbox: false,
Expand All @@ -26,8 +23,8 @@ function registerCustomHandler() {
}
});
ipcMain.once("selectScreenshareSource", (event, id, name) => {
console.log(sources[id]);
console.log(id);
//console.log(sources[id]);
//console.log(id);
capturerWindow.close();
const result = {id, name, width: 9999, height: 9999};
callback({video: result});
Expand Down
2 changes: 2 additions & 0 deletions src/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ async function doAfterDefiningTheWindow() {
}
return {action: "deny"};
});
console.log("Starting screenshare module...");
import("./screenshare/main");

//Blocking discords trash
mainWindow.webContents.session.webRequest.onBeforeRequest(
Expand Down

0 comments on commit a2721f4

Please sign in to comment.