mirror of
https://github.com/R0m1k3/EveFlow.git
synced 2026-10-20 05:38:14 +02:00
style(widget): enlarge avatar canvas height to 220px and floating window to 300x460
This commit is contained in:
1 parent
125322ae07
commit
f4cfd6a12d
4 files changed
+4
-4
No files matched your search
@@ -309,14 +309,14 @@ ipcMain.on('set-window-mode', (event, mode) => {
|
||||
// Mode flottant compact : 320x450
|
||||
mainWindow.setResizable(true);
|
||||
mainWindow.setMinimumSize(250, 350);
|
||||
mainWindow.setSize(300, 400);
|
||||
mainWindow.setSize(300, 460);
|
||||
mainWindow.setAlwaysOnTop(true, 'screen-saver');
|
||||
|
||||
// Positionner dans le coin inférieur droit de l'écran principal
|
||||
const { screen } = require('electron');
|
||||
const primaryDisplay = screen.getPrimaryDisplay();
|
||||
const { width, height } = primaryDisplay.workAreaSize;
|
||||
mainWindow.setPosition(width - 320, height - 420);
|
||||
mainWindow.setPosition(width - 320, height - 480);
|
||||
|
||||
event.reply('window-mode-changed', 'floating');
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user