Skip to content

Commit

Permalink
Bump deps, speed up transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner committed Apr 17, 2020
1 parent 275d18d commit ba06612
Show file tree
Hide file tree
Showing 6 changed files with 720 additions and 933 deletions.
21 changes: 11 additions & 10 deletions app/transitions.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
export default function() {
const transitionOptions = { duration: 300, easing: 'easeInOut' };
export default function () {
this.transition(
this.fromRoute('palettes'),
this.toRoute('colors'),
this.use('toLeft', { easing: 'easeInOut' }),
this.reverse('toRight', { easing: 'easeInOut' })
this.use('toLeft', transitionOptions),
this.reverse('toRight', transitionOptions)
);

this.transition(
this.fromRoute('colors'),
this.toRoute('kuler'),
this.use('toLeft', { easing: 'easeInOut' }),
this.reverse('toRight', { easing: 'easeInOut' })
this.use('toLeft', transitionOptions),
this.reverse('toRight', transitionOptions)
);

this.transition(
this.fromRoute('kuler'),
this.toRoute('palettes'),
this.use('toRight', { easing: 'easeInOut' })
this.use('toRight', transitionOptions)
);

this.transition(
this.toRoute('contrast'),
this.use('toLeft', { easing: 'easeInOut' }),
this.reverse('toRight', { easing: 'easeInOut' })
this.use('toLeft', transitionOptions),
this.reverse('toRight', transitionOptions)
);

this.transition(
this.toRoute('settings'),
this.use('toLeft', { easing: 'easeInOut' }),
this.reverse('toRight', { easing: 'easeInOut' })
this.use('toLeft', transitionOptions),
this.reverse('toRight', transitionOptions)
);
}
2 changes: 1 addition & 1 deletion electron-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@electron-forge/maker-zip": "6.0.0-beta.50",
"@sentry/cli": "^1.52.1",
"devtron": "^1.4.0",
"electron": "^8.2.0",
"electron": "^8.2.3",
"electron-download": "^4.1.1"
}
}
1 change: 0 additions & 1 deletion electron-app/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const {
clipboard,
globalShortcut,
protocol,
Menu,
ipcMain
Expand Down
Loading

0 comments on commit ba06612

Please sign in to comment.