Skip to content

Commit 0bed990

Browse files
committed
feat: integrate Tailwind CSS for styling and enhance UI components for screen recording application
1 parent a769e80 commit 0bed990

File tree

14 files changed

+226
-231
lines changed

14 files changed

+226
-231
lines changed

electron.vite.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ export default defineConfig({
2929
'@renderer': resolve('src/renderer/src')
3030
}
3131
},
32-
plugins: [react(), tailwindcss()]
32+
plugins: [
33+
react(),
34+
tailwindcss({
35+
config: './tailwind.config.js'
36+
})
37+
]
3338
}
3439
})

src/main/window.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,17 @@ export function createWindow(): BrowserWindow {
1717
preload: join(__dirname, '../preload/preload.js'),
1818
sandbox: false,
1919
contextIsolation: true,
20-
nodeIntegration: false
20+
nodeIntegration: false,
21+
webSecurity: false,
22+
allowRunningInsecureContent: true
2123
}
2224
})
2325

26+
mainWindow.webContents.session.setPermissionRequestHandler((_, permission, callback) => {
27+
console.log('Permission requested:', permission)
28+
callback(true)
29+
})
30+
2431
mainWindow.on('ready-to-show', () => {
2532
mainWindow.show()
2633
})
@@ -30,8 +37,6 @@ export function createWindow(): BrowserWindow {
3037
return { action: 'deny' }
3138
})
3239

33-
// HMR for renderer base on electron-vite cli.
34-
// Load the remote URL for development or the local html file for production.
3540
if (is.dev && process.env['ELECTRON_RENDERER_URL']) {
3641
mainWindow.loadURL(process.env['ELECTRON_RENDERER_URL'])
3742
} else {

0 commit comments

Comments
 (0)