All Questions
197
questions
0
votes
2
answers
56
views
How do I gray elements based on class name?
I'm trying to grey the border elements smoothly with css smoothing and it does nothing and the elements are 1 pixel thick
code:
function greyBorder()
{
var elms
...
0
votes
2
answers
120
views
Error when Loading js file in HTML. HTML unable to load my js file
I tried loading js code in html but no js functionality is reflected in my code.
here is my html snippet
<!DOCTYPE html>
<html>
<head>
Point Of Sale
<link href="css/...
0
votes
0
answers
42
views
How to enable window maximization on Electron?
The maximize button on my Electron app is grayed out/disabled. I didn't do this in my code and I am using Windows 11.
This is my code:
import { app, BrowserWindow } from 'electron';
const ...
-1
votes
1
answer
123
views
Can You Create A Persistent Floating Window in JavaScript?
I am trying to implement a persistent floating window in a NextJS 14 app. Basically this window should persist and stay on top, even if you navigate between browser windows. If you minimize your ...
2
votes
1
answer
73
views
electron.js - BrowserWindow viewport size shrinks by 1px when it is resized
I have a frameless electron.js window here (main.js):
const createWindow = () => {
const win = new BrowserWindow({
width: 500,
height: 400,
useContentSize: true,
frame: false,
})...
0
votes
0
answers
238
views
Impact and the risk of set the param sysctl dev.i915.perf_stream_paranoid to 0 in ubuntu 20.04
I'm trying to generate and PDF using an HTML page using electron-pdf (https://www.npmjs.com/package/electron-pdf) . The pdf is generated but it's vague and not the exact html rendered when opened with ...
0
votes
0
answers
64
views
Electron navbar only dragable on top and drag does not works when scrolled
upon more debugging i came to know that click is registered below the navbar on the card thats why the drag don't work when scrolled but it works when on top,
the stack i am using is react, electron, ...
1
vote
0
answers
349
views
Font does not load correclty in electron app
I am using this font: 'https://fonts.googleapis.com/css?family=JetBrains Mono' for my electron app using react and when i load it up the electron app does not show the correct font, when i run it ...
0
votes
2
answers
299
views
Custom fonts files cant be find [ELECTRON]
The problem: I added custom fonts, but they dont show on my app
Web console: "Failed to load resource: net::ERR_FILE_NOT_FOUND"
Terminator console: - nothing -
My files structure:
main.js
...
0
votes
0
answers
190
views
Correctly Setting Transform Origin to Enable Zoom to Mouse Point in JavaScript
I'm writing an application using electron and interact.js , for image and video reference, it would best seem like the app pureRef (I decided to make that app since pureRef won't add gifs and video ...
1
vote
1
answer
124
views
How to run a batch file with electron?
I've been trying to find a solution all morning. I've watched numerous tutorials, but I just don't get how this works.
In my Electron program there is a button. When this button is clicked, a batch ...
0
votes
0
answers
62
views
QueryselectorAll invalid CSS Selector in Electron, but working in Browser
I have a form with several columns with inputs. There are also empty columns and columns with only disabled inputs.
So i want to get all columns with enabled inputs and ignore the rest. I use
...
0
votes
1
answer
430
views
Electron Leaves 1px Border Around titleBarOverlay
I'm very new to Electron and Node.js so forgive any misuse of the terminology.
I'm working on a Windows 10 application. I'm trying to gain the ability to customize the title bar area of my app (along ...
1
vote
2
answers
625
views
Webkit-app-region: drag and hover don't work together
When building an Electron app, by adding -webkit-app-region: drag; an element can be seen that it will drag the app around the desktop, but this element is exempt from properties such as hover, ...
1
vote
0
answers
129
views
Electron - How to keep consistent contents size?
There is a problem with the window contents. In the index.html file, everything appears correctly in terms of size. However, when clicking on the "Click here" link to navigate to register....