public SongInfo()
        {
            InitializeComponent();
            Track track = new Track(Player.filePath);

            songtitleText.Text = $"{track.Artist} - {track.Title}";
            albumText.Text     = $"Album - {track.Album}";
            genreText.Text     = $"Genre - {track.Genre}";
            yearText.Text      = $"Year - {track.Year.ToString()}";
            trackText.Text     = $"Track #{track.TrackNumber}";
            discText.Text      = $"Disc #{track.DiscNumber}";
            bitrateText.Text   = $"Bitrate - {track.Bitrate.ToString()}kbps";
            IList <ATL.PictureInfo> embeddedPictures = track.EmbeddedPictures;

            toolTip1.SetToolTip(songtitleText, $"{track.Artist} - {track.Title}");
            toolTip1.SetToolTip(albumText, track.Album);
            if (embeddedPictures.Count != 0)
            {
                albumArt          = Image.FromStream(new MemoryStream(embeddedPictures[0].PictureData));
                pictureBox1.Image = albumArt;
            }
            else
            {
                albumArt          = null;
                pictureBox1.Image = albumArt;
            }
            if (Properties.Settings.Default.Appearance_DarkMode)
            {
                ThemeHandler.SetColors(this, (44, 47, 51), (255, 255, 255), Color.Black, Color.White);
            }
            else
            {
                ThemeHandler.SetColors(this, (4, 160, 219), (255, 255, 255), Color.White, Color.Black);
            }
        }
 public QueueManagement()
 {
     InitializeComponent();
     PopulateList();
     PlayerForm.songChanged += new EventHandler(this.songChangedHandler);
     if (Properties.Settings.Default.Appearance_DarkMode)
     {
         ThemeHandler.SetColors(this, (44, 47, 51), (255, 255, 255), Color.Black, Color.White);
     }
 }
 public MiniPlayer()
 {
     InitializeComponent();
     Player.songChanged   += new EventHandler(this.songChangedHandler);
     Player.songStopped   += Player_songStopped;
     Player.songException += Player_songException;
     if (Properties.Settings.Default.Appearance_DarkMode)
     {
         ThemeHandler.SetColors(this, (44, 47, 51), (255, 255, 255), Color.Black, Color.White);
     }
     else
     {
         ThemeHandler.SetColors(this, (4, 160, 219), (255, 255, 255), Color.White, Color.Black);
     }
 }
Example #4
0
 public void ApplySettings()
 {
     if (Properties.Settings.Default.Appearance_DarkMode)
     {
         ThemeHandler.SetColors(this,
                                (44, 47, 51),
                                (255, 255, 255),
                                Color.Black,
                                Color.White);
     }
     else
     {
         ThemeHandler.SetColors(this, (Properties.Settings.Default.Appearance_AccentColorRed, Properties.Settings.Default.Appearance_AccentColorGreen, Properties.Settings.Default.Appearance_AccentColorBlue), (255, 255, 255), Color.White, Color.Black);
     }
     if (Properties.Settings.Default.General_DiscordIntegration)
     {
         Player.InitDiscordRPC();
     }
     else
     {
         Player.DisposeRPC();
     }
 }