toastify
toastify copied to clipboard
Internal Design Overhaul: ToastView
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 theSpotify.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.