toastify icon indicating copy to clipboard operation
toastify copied to clipboard

Internal Design Overhaul: ToastView

Open aleab opened this issue 6 years ago • 4 comments

Internal Design Overhaul: ToastView

ToastView is one of the other monsters of Toastify codebase: 1200+ LOC. This is the code-behind of the Toast view and entry point of the whole App. It currently does the following:

  • Initializes the Toast window.
  • Initializes the tray icon.
  • Starts the Spotify class by calling the Spotify.StartSpotify() method, which also launches the Spotify client if it's not already running.
  • Has a useless LoadPlugins() method, legacy from the original project. Everything related to plugins in the project should honestly just be removed!
  • Handles updates of the Toast: ChangeCurrentSong, UpdateToastText, ...
  • Handles its own visibility with FadeIn, FadeOut, ShowToastPreview, ResetPositionIfOffScreen, ...

I still have no ideas on how to refactor this.

aleab avatar Apr 04 '18 17:04 aleab