fix(ags osd): set closeWindowDelay to 300
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
362daed7c4
commit
8f11f75e8b
3 changed files with 4 additions and 4 deletions
|
@ -36,7 +36,6 @@
|
||||||
"func-style": ["warn", "expression"],
|
"func-style": ["warn", "expression"],
|
||||||
"logical-assignment-operators": ["warn", "always"],
|
"logical-assignment-operators": ["warn", "always"],
|
||||||
"no-array-constructor": ["error"],
|
"no-array-constructor": ["error"],
|
||||||
"no-else-return": ["error"],
|
|
||||||
"no-empty-function": ["warn"],
|
"no-empty-function": ["warn"],
|
||||||
"no-empty-static-block": ["warn"],
|
"no-empty-static-block": ["warn"],
|
||||||
"no-extend-native": ["error"],
|
"no-extend-native": ["error"],
|
||||||
|
|
|
@ -30,7 +30,7 @@ export default {
|
||||||
'applauncher': closeWinDelay,
|
'applauncher': closeWinDelay,
|
||||||
'calendar': closeWinDelay,
|
'calendar': closeWinDelay,
|
||||||
'notification-center': closeWinDelay,
|
'notification-center': closeWinDelay,
|
||||||
'osd': closeWinDelay,
|
'osd': 300,
|
||||||
'osk': closeWinDelay,
|
'osk': closeWinDelay,
|
||||||
'overview': closeWinDelay,
|
'overview': closeWinDelay,
|
||||||
'powermenu': closeWinDelay,
|
'powermenu': closeWinDelay,
|
||||||
|
|
|
@ -14,12 +14,13 @@ for (const osd in Modules) {
|
||||||
} // Array
|
} // Array
|
||||||
|
|
||||||
const HIDE_DELAY = 2000;
|
const HIDE_DELAY = 2000;
|
||||||
|
const transition_duration = 300;
|
||||||
|
|
||||||
|
|
||||||
const OSDs = () => {
|
const OSDs = () => {
|
||||||
const stack = Stack({
|
const stack = Stack({
|
||||||
transition: 'over_up_down',
|
transition: 'over_up_down',
|
||||||
transition_duration: 200,
|
transition_duration,
|
||||||
|
|
||||||
attribute: {
|
attribute: {
|
||||||
popup: () => {/**/},
|
popup: () => {/**/},
|
||||||
|
@ -59,6 +60,6 @@ export default () => PopupWindow({
|
||||||
exclusivity: 'ignore',
|
exclusivity: 'ignore',
|
||||||
close_on_unfocus: 'stay',
|
close_on_unfocus: 'stay',
|
||||||
transition: 'slide_up',
|
transition: 'slide_up',
|
||||||
transition_duration: 200,
|
transition_duration,
|
||||||
child: OSDs(),
|
child: OSDs(),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue