Skip to content

Commit

Permalink
1.0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ImAiiR committed Nov 6, 2024
1 parent 2ecdc9b commit 082c904
Show file tree
Hide file tree
Showing 14 changed files with 1,374 additions and 1,125 deletions.
3 changes: 3 additions & 0 deletions QobuzDownloaderX/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@
<setting name="showDownloadSpeed" serializeAs="String">
<value>False</value>
</setting>
<setting name="currentTheme" serializeAs="String">
<value>Dark</value>
</setting>
</QobuzDownloaderX.Properties.Settings>
</userSettings>
</configuration>
2 changes: 1 addition & 1 deletion QobuzDownloaderX/Download/DownloadAlbum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ public async Task downloadAlbum(string app_id, string album_id, string format_id
sw.WriteLine("");
sw.WriteLine("[b]DOWNLOADS[/b]");
sw.WriteLine("-----------------------------------");
sw.WriteLine("[spoiler=" + Regex.Replace(QoAlbum.Label.Name, @"\s+", " ") + " / " + QoAlbum.UPC + " / WEB]");
if (QoAlbum.MaximumBitDepth > 16)
{
sw.WriteLine("[spoiler=" + Regex.Replace(QoAlbum.Label.Name, @"\s+", " ") + " / " + QoAlbum.UPC + " / WEB]");
sw.WriteLine("[format=FLAC / Lossless (" + QoAlbum.MaximumBitDepth.ToString() + "bit/" + QoAlbum.MaximumSamplingRate.ToString() + "kHz) / WEB]");
sw.WriteLine("Uploaded by [USER=2]@AiiR[/USER]");
sw.WriteLine("");
Expand Down
32 changes: 16 additions & 16 deletions QobuzDownloaderX/Download/SearchPanelHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void PopulateTableAlbums(qbdlxForm mainForm, SearchAlbumResult QoAlbumSea
/*artistName.MaximumSize = new Size(0, 0);*/ // Word-wrap if needed
artistName.TextAlign = ContentAlignment.MiddleCenter; // Center text horizontally and vertically
artistName.Anchor = AnchorStyles.None; // Center within the cell
artistName.ForeColor = Color.FromArgb(147, 147, 147); // Set text color
artistName.ForeColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.LabelText); // Set text color
artistName.Font = new Font("Nirmala UI", 10F, FontStyle.Regular); // Set font size and style
searchResultsTablePanel.Controls.Add(artistName, 1, rowIndex);

Expand All @@ -103,7 +103,7 @@ public void PopulateTableAlbums(qbdlxForm mainForm, SearchAlbumResult QoAlbumSea
/*albumTitle.MaximumSize = new Size(0, 0);*/ // Allow word-wrap
albumTitle.TextAlign = ContentAlignment.MiddleCenter; // Center text horizontally and vertically
albumTitle.Anchor = AnchorStyles.None; // Center within the cell
albumTitle.ForeColor = Color.FromArgb(147, 147, 147); // Set text color
albumTitle.ForeColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.LabelText); // Set text color
albumTitle.Font = new Font("Nirmala UI", 10F, FontStyle.Regular); // Set font size and style
searchResultsTablePanel.Controls.Add(albumTitle, 2, rowIndex);

Expand All @@ -118,11 +118,11 @@ public void PopulateTableAlbums(qbdlxForm mainForm, SearchAlbumResult QoAlbumSea
// Set text color
if (qualityLabel.Text.Contains("24bit"))
{
qualityLabel.ForeColor = Color.FromArgb(253, 202, 28);
qualityLabel.ForeColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.HiResLabelText);
}
else
{
qualityLabel.ForeColor = Color.FromArgb(147, 147, 147);
qualityLabel.ForeColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.LabelText); ;
}

qualityLabel.Font = new Font("Nirmala UI", 10F, FontStyle.Regular); // Set font size and style
Expand All @@ -131,13 +131,13 @@ public void PopulateTableAlbums(qbdlxForm mainForm, SearchAlbumResult QoAlbumSea
// Add Button for selecting album ID
Button selectButton = new Button();
selectButton.Text = "GET";
selectButton.ForeColor = Color.FromArgb(147, 147, 147); // Set button text color
selectButton.BackColor = Color.FromArgb(13, 13, 13); // Set button background color
selectButton.ForeColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.ButtonText); // Set button text color
selectButton.BackColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.ButtonBackground); // Set button background color
selectButton.Font = new Font("Nirmala UI", 8F, FontStyle.Regular); // Set font size and style
selectButton.FlatStyle = FlatStyle.Flat; // Set FlatStyle to Flat
selectButton.FlatAppearance.BorderSize = 0; // Set border size
selectButton.FlatAppearance.MouseOverBackColor = Color.FromArgb(18, 18, 18); // Set background color when hovering
selectButton.FlatAppearance.MouseDownBackColor = Color.FromArgb(25, 25, 25); // Set background color when clicked
selectButton.FlatAppearance.MouseOverBackColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.HighlightedButtonBackground); // Set background color when hovering
selectButton.FlatAppearance.MouseDownBackColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.ClickedButtonBackground); // Set background color when clicked
string albumLink = "https://play.qobuz.com/album/" + album.Id.ToString(); // Store the album link
selectButton.Click += (sender, e) => SendURL(mainForm, albumLink);
selectButton.Anchor = AnchorStyles.None; // Center the button
Expand Down Expand Up @@ -189,7 +189,7 @@ public void PopulateTableTracks(qbdlxForm mainForm, SearchTrackResult QoTrackSea
/*artistName.MaximumSize = new Size(0, 0);*/ // Word-wrap if needed
artistName.TextAlign = ContentAlignment.MiddleCenter; // Center text horizontally and vertically
artistName.Anchor = AnchorStyles.None; // Center within the cell
artistName.ForeColor = Color.FromArgb(147, 147, 147); // Set text color
artistName.ForeColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.LabelText); // Set text color
artistName.Font = new Font("Nirmala UI", 10F, FontStyle.Regular); // Set font size and style
searchResultsTablePanel.Controls.Add(artistName, 1, rowIndex);

Expand All @@ -202,7 +202,7 @@ public void PopulateTableTracks(qbdlxForm mainForm, SearchTrackResult QoTrackSea
/*trackTitle.MaximumSize = new Size(0, 0);*/ // Allow word-wrap
trackTitle.TextAlign = ContentAlignment.MiddleCenter; // Center text horizontally and vertically
trackTitle.Anchor = AnchorStyles.None; // Center within the cell
trackTitle.ForeColor = Color.FromArgb(147, 147, 147); // Set text color
trackTitle.ForeColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.LabelText); // Set text color
trackTitle.Font = new Font("Nirmala UI", 10F, FontStyle.Regular); // Set font size and style
searchResultsTablePanel.Controls.Add(trackTitle, 2, rowIndex);

Expand All @@ -217,11 +217,11 @@ public void PopulateTableTracks(qbdlxForm mainForm, SearchTrackResult QoTrackSea
// Set text color
if (qualityLabel.Text.Contains("24bit"))
{
qualityLabel.ForeColor = Color.FromArgb(253, 202, 28);
qualityLabel.ForeColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.HiResLabelText);
}
else
{
qualityLabel.ForeColor = Color.FromArgb(147, 147, 147);
qualityLabel.ForeColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.LabelText);
}

qualityLabel.Font = new Font("Nirmala UI", 10F, FontStyle.Regular); // Set font size and style
Expand All @@ -230,13 +230,13 @@ public void PopulateTableTracks(qbdlxForm mainForm, SearchTrackResult QoTrackSea
// Add Button for selecting album ID
Button selectButton = new Button();
selectButton.Text = "GET";
selectButton.ForeColor = Color.FromArgb(147, 147, 147); // Set button text color
selectButton.BackColor = Color.FromArgb(13, 13, 13); // Set button background color
selectButton.ForeColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.ButtonText); // Set button text color
selectButton.BackColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.ButtonBackground); // Set button background color
selectButton.Font = new Font("Nirmala UI", 8F, FontStyle.Regular); // Set font size and style
selectButton.FlatStyle = FlatStyle.Flat; // Set FlatStyle to Flat
selectButton.FlatAppearance.BorderSize = 0; // Set border size
selectButton.FlatAppearance.MouseOverBackColor = Color.FromArgb(18, 18, 18); // Set background color when hovering
selectButton.FlatAppearance.MouseDownBackColor = Color.FromArgb(25, 25, 25); // Set background color when clicked
selectButton.FlatAppearance.MouseOverBackColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.HighlightedButtonBackground); // Set background color when hovering
selectButton.FlatAppearance.MouseDownBackColor = ColorTranslator.FromHtml(qbdlxForm._qbdlxForm._themeManager._currentTheme.ClickedButtonBackground); // Set background color when clicked
string trackLink = "https://open.qobuz.com/track/" + track.Id.ToString(); // Store the track link
selectButton.Click += (sender, e) => SendURL(mainForm, trackLink);
selectButton.Anchor = AnchorStyles.None; // Center the button
Expand Down
Loading

0 comments on commit 082c904

Please sign in to comment.