refactor(ags): add const to decide popup window anim duration
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2023-12-30 17:14:55 -05:00
parent 4a85e1c402
commit ef7ddf7398

View file

@ -16,6 +16,7 @@ import QSettings from './js/quick-settings/main.js';
const scss = `${App.configDir }/scss/main.scss`; const scss = `${App.configDir }/scss/main.scss`;
const css = `${App.configDir }/style.css`; const css = `${App.configDir }/style.css`;
const closeWinDelay = 500;
exec(`sassc ${scss} ${css}`); exec(`sassc ${scss} ${css}`);
Setup(); Setup();
@ -26,14 +27,14 @@ export default {
notificationPopupTimeout: 5000, notificationPopupTimeout: 5000,
cacheNotificationActions: true, cacheNotificationActions: true,
closeWindowDelay: { closeWindowDelay: {
'applauncher': 500, 'applauncher': closeWinDelay,
'calendar': 500, 'calendar': closeWinDelay,
'notification-center': 500, 'notification-center': closeWinDelay,
'osd': 500, 'osd': closeWinDelay,
'osk': 500, 'osk': closeWinDelay,
'overview': 500, 'overview': closeWinDelay,
'powermenu': 500, 'powermenu': closeWinDelay,
'quick-settings': 500, 'quick-settings': closeWinDelay,
}, },
windows: [ windows: [
// Put the corners first so they // Put the corners first so they