Add option for disabling bars on currently playing track

Fixes #972
This commit is contained in:
Jonas Kvinge
2022-06-09 00:50:21 +02:00
parent 9b743e55d1
commit 25e48d6cae
4 changed files with 124 additions and 52 deletions

View File

@@ -195,6 +195,7 @@ class PlaylistView : public QTreeView {
void ReloadBarPixmaps();
QList<QPixmap> LoadBarPixmap(const QString &filename);
void LoadTinyPlayPausePixmaps(const int desired_size);
void UpdateCachedCurrentRowPixmap(QStyleOptionViewItem option, const QModelIndex &idx);
void set_background_image_type(AppearanceSettingsPage::BackgroundImageType bg) {
@@ -259,6 +260,7 @@ class PlaylistView : public QTreeView {
int previous_background_image_x_;
int previous_background_image_y_;
bool bars_enabled_;
bool glow_enabled_;
bool select_track_;
bool auto_sort_;
@@ -301,6 +303,9 @@ class PlaylistView : public QTreeView {
QColor playlist_playing_song_color_;
QPixmap pixmap_tinyplay_;
QPixmap pixmap_tinypause_;
};
#endif // PLAYLISTVIEW_H