From ef7ddf7398709cd7786b1965ccc848a171840701 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sat, 30 Dec 2023 17:14:55 -0500 Subject: [PATCH] refactor(ags): add const to decide popup window anim duration --- devices/wim/config/ags/config.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/devices/wim/config/ags/config.js b/devices/wim/config/ags/config.js index 48267d9..23612f4 100644 --- a/devices/wim/config/ags/config.js +++ b/devices/wim/config/ags/config.js @@ -16,6 +16,7 @@ import QSettings from './js/quick-settings/main.js'; const scss = `${App.configDir }/scss/main.scss`; const css = `${App.configDir }/style.css`; +const closeWinDelay = 500; exec(`sassc ${scss} ${css}`); Setup(); @@ -26,14 +27,14 @@ export default { notificationPopupTimeout: 5000, cacheNotificationActions: true, closeWindowDelay: { - 'applauncher': 500, - 'calendar': 500, - 'notification-center': 500, - 'osd': 500, - 'osk': 500, - 'overview': 500, - 'powermenu': 500, - 'quick-settings': 500, + 'applauncher': closeWinDelay, + 'calendar': closeWinDelay, + 'notification-center': closeWinDelay, + 'osd': closeWinDelay, + 'osk': closeWinDelay, + 'overview': closeWinDelay, + 'powermenu': closeWinDelay, + 'quick-settings': closeWinDelay, }, windows: [ // Put the corners first so they