header privacy button fix

This commit is contained in:
samtiz 2025-07-14 03:00:28 +09:00
parent aa14a1d0b6
commit 2a3c7db200
6 changed files with 15 additions and 8 deletions

2
aec

@ -1 +1 @@
Subproject commit 9e11f4f95707714464194bdfc9db0222ec5c6163 Subproject commit f00bb1fb948053c752b916adfee19f90644a0b2f

View File

@ -1,5 +1,5 @@
// src/bridge/windowBridge.js // src/bridge/windowBridge.js
const { ipcMain, BrowserWindow } = require('electron'); const { ipcMain, shell } = require('electron');
const windowManager = require('../window/windowManager'); const windowManager = require('../window/windowManager');
module.exports = { module.exports = {
@ -15,6 +15,7 @@ module.exports = {
ipcMain.handle('open-personalize-page', () => windowManager.openLoginPage()); ipcMain.handle('open-personalize-page', () => windowManager.openLoginPage());
ipcMain.handle('move-window-step', (event, direction) => windowManager.moveWindowStep(direction)); ipcMain.handle('move-window-step', (event, direction) => windowManager.moveWindowStep(direction));
ipcMain.on('close-shortcut-editor', () => windowManager.closeWindow('shortcut-settings')); ipcMain.on('close-shortcut-editor', () => windowManager.closeWindow('shortcut-settings'));
ipcMain.handle('open-external', (event, url) => shell.openExternal(url));
// Newly moved handlers from windowManager // Newly moved handlers from windowManager
ipcMain.on('header-state-changed', (event, state) => windowManager.handleHeaderStateChanged(state)); ipcMain.on('header-state-changed', (event, state) => windowManager.handleHeaderStateChanged(state));

View File

@ -19,6 +19,7 @@ contextBridge.exposeInMainWorld('api', {
// App Control // App Control
quitApplication: () => ipcRenderer.invoke('quit-application'), quitApplication: () => ipcRenderer.invoke('quit-application'),
openExternal: (url) => ipcRenderer.invoke('open-external', url),
// User state listener (used by multiple components) // User state listener (used by multiple components)
onUserStateChanged: (callback) => ipcRenderer.on('user-state-changed', callback), onUserStateChanged: (callback) => ipcRenderer.on('user-state-changed', callback),

View File

@ -256,6 +256,7 @@ export class ApiKeyHeader extends LitElement {
.footer-link { .footer-link {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
-webkit-app-region: no-drag;
} }
.error-message, .error-message,
.success-message { .success-message {
@ -1904,8 +1905,9 @@ export class ApiKeyHeader extends LitElement {
} }
openPrivacyPolicy() { openPrivacyPolicy() {
if (window.require) { console.log('🔊 openPrivacyPolicy ApiKeyHeader');
window.require('electron').shell.openExternal('https://pickleglass.com/privacy'); if (window.api?.common) {
window.api.common.openExternal('https://pickle.com/privacy-policy');
} }
} }

View File

@ -156,6 +156,7 @@ export class WelcomeHeader extends LitElement {
.footer-link { .footer-link {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
-webkit-app-region: no-drag;
} }
`; `;
@ -177,8 +178,8 @@ export class WelcomeHeader extends LitElement {
} }
handleClose() { handleClose() {
if (window.require) { if (window.api?.common) {
window.require('electron').ipcRenderer.invoke('quit-application'); window.api.common.quitApplication();
} }
} }
@ -225,8 +226,9 @@ export class WelcomeHeader extends LitElement {
} }
openPrivacyPolicy() { openPrivacyPolicy() {
if (window.require) { console.log('🔊 openPrivacyPolicy WelcomeHeader');
window.require('electron').shell.openExternal('https://pickleglass.com/privacy'); if (window.api?.common) {
window.api.common.openExternal('https://pickle.com/privacy-policy');
} }
} }
} }

View File

@ -640,6 +640,7 @@ function createWindows() {
frame: false, frame: false,
transparent: true, transparent: true,
vibrancy: false, vibrancy: false,
hasShadow: false,
alwaysOnTop: true, alwaysOnTop: true,
skipTaskbar: true, skipTaskbar: true,
hiddenInMissionControl: true, hiddenInMissionControl: true,