Update colors, icons, and fonts
This commit is contained in:
parent
28aed8247f
commit
c81c25bb85
225 changed files with 3080 additions and 4594 deletions
23
main.js
23
main.js
|
@ -527,7 +527,7 @@ async function showSettingsWindow() {
|
|||
resizable: false,
|
||||
title: locale.messages.signalDesktopPreferences.message,
|
||||
autoHideMenuBar: true,
|
||||
backgroundColor: '#FFFFFF',
|
||||
backgroundColor: '#2090EA',
|
||||
show: false,
|
||||
modal: true,
|
||||
vibrancy: 'appearance-based',
|
||||
|
@ -571,9 +571,9 @@ async function showDebugLogWindow() {
|
|||
width: Math.max(size[0] - 100, MIN_WIDTH),
|
||||
height: Math.max(size[1] - 100, MIN_HEIGHT),
|
||||
resizable: false,
|
||||
title: locale.messages.signalDesktopPreferences.message,
|
||||
title: locale.messages.debugLog.message,
|
||||
autoHideMenuBar: true,
|
||||
backgroundColor: '#FFFFFF',
|
||||
backgroundColor: '#2090EA',
|
||||
show: false,
|
||||
modal: true,
|
||||
vibrancy: 'appearance-based',
|
||||
|
@ -620,9 +620,9 @@ async function showPermissionsPopupWindow() {
|
|||
width: Math.min(400, size[0]),
|
||||
height: Math.min(150, size[1]),
|
||||
resizable: false,
|
||||
title: locale.messages.signalDesktopPreferences.message,
|
||||
title: locale.messages.allowAccess.message,
|
||||
autoHideMenuBar: true,
|
||||
backgroundColor: '#FFFFFF',
|
||||
backgroundColor: '#2090EA',
|
||||
show: false,
|
||||
modal: true,
|
||||
vibrancy: 'appearance-based',
|
||||
|
@ -1021,6 +1021,19 @@ ipc.on('delete-all-data', () => {
|
|||
}
|
||||
});
|
||||
|
||||
ipc.on('get-built-in-images', async () => {
|
||||
try {
|
||||
const images = await attachments.getBuiltInImages();
|
||||
mainWindow.webContents.send('get-success-built-in-images', null, images);
|
||||
} catch (error) {
|
||||
if (mainWindow && mainWindow.webContents) {
|
||||
mainWindow.webContents.send('get-success-built-in-images', error.message);
|
||||
} else {
|
||||
console.error('Error handling get-built-in-images:', error.stack);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function getDataFromMainWindow(name, callback) {
|
||||
ipc.once(`get-success-${name}`, (_event, error, value) =>
|
||||
callback(error, value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue