1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-15 10:14:43 +01:00

Add option to turn off playlist alternating row colors

This commit is contained in:
jonas@jkvinge.net 2021-05-11 19:40:47 +02:00
parent 5d96ee5492
commit 1803705749
3 changed files with 11 additions and 0 deletions

View File

@ -1155,6 +1155,7 @@ void PlaylistView::ReloadSettings() {
bool editmetadatainline = s.value("editmetadatainline", false).toBool();
select_track_ = s.value("select_track", false).toBool();
auto_sort_ = s.value("auto_sort", false).toBool();
setAlternatingRowColors(s.value("alternating_row_colors", true).toBool());
s.endGroup();
s.beginGroup(AppearanceSettingsPage::kSettingsGroup);

View File

@ -52,6 +52,8 @@ void PlaylistSettingsPage::Load() {
QSettings s;
s.beginGroup(kSettingsGroup);
ui_->checkbox_alternating_row_colors->setChecked(s.value("alternating_row_colors", true).toBool());
#ifdef Q_OS_MACOS
bool glow_effect = false;
#else
@ -118,6 +120,7 @@ void PlaylistSettingsPage::Save() {
QSettings s;
s.beginGroup(kSettingsGroup);
s.setValue("alternating_row_colors", ui_->checkbox_alternating_row_colors->isChecked());
s.setValue("glow_effect", ui_->checkbox_glowcurrenttrack->isChecked());
s.setValue("warn_close_playlist", ui_->checkbox_warncloseplaylist->isChecked());
s.setValue("continue_on_error", ui_->checkbox_continueonerror->isChecked());

View File

@ -14,6 +14,13 @@
<string>Playlist</string>
</property>
<layout class="QVBoxLayout" name="layout_playlistsettingspage">
<item>
<widget class="QCheckBox" name="checkbox_alternating_row_colors">
<property name="text">
<string>Use alternating row colors</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkbox_glowcurrenttrack">
<property name="text">