mirror of
https://github.com/R0m1k3/EveFlow.git
synced 2026-10-23 07:08:14 +02:00
style(widget): increase widget size to 300x600 and avatar height to 360px
This commit is contained in:
1 parent
33cd8156f9
commit
17d00b085b
3 files changed
+5
-5
No files matched your search
@@ -308,17 +308,17 @@ ipcMain.on('window-control', (event, action) => {
|
||||
ipcMain.on('set-window-mode', (event, mode) => {
|
||||
if (!mainWindow) return;
|
||||
if (mode === 'floating') {
|
||||
// Mode flottant compact : 300x550
|
||||
// Mode flottant compact : 300x600
|
||||
mainWindow.setResizable(true);
|
||||
mainWindow.setMinimumSize(250, 350);
|
||||
mainWindow.setSize(300, 550);
|
||||
mainWindow.setSize(300, 600);
|
||||
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 - 570);
|
||||
mainWindow.setPosition(width - 320, height - 620);
|
||||
|
||||
event.reply('window-mode-changed', 'floating');
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user