mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Rename YACReaderLibrary json theme sections to be more user friendly
This commit is contained in:
@ -56,7 +56,7 @@ YACReaderTableView::YACReaderTableView(QWidget *parent)
|
||||
|
||||
void YACReaderTableView::applyTheme(const Theme &theme)
|
||||
{
|
||||
setStyleSheet(theme.tableView.tableViewQSS);
|
||||
setStyleSheet(theme.comicsViewTable.tableViewQSS);
|
||||
}
|
||||
|
||||
void YACReaderTableView::mouseMoveEvent(QMouseEvent *event)
|
||||
|
||||
@ -13,8 +13,8 @@ class YACReaderTableView : public QTableView, protected Themable
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderTableView(QWidget *parent = 0);
|
||||
QColor starRatingColor() const { return theme.tableView.starRatingColor; }
|
||||
QColor starRatingSelectedColor() const { return theme.tableView.starRatingSelectedColor; }
|
||||
QColor starRatingColor() const { return theme.comicsViewTable.starRatingColor; }
|
||||
QColor starRatingSelectedColor() const { return theme.comicsViewTable.starRatingSelectedColor; }
|
||||
|
||||
protected:
|
||||
void applyTheme(const Theme &theme) override;
|
||||
|
||||
@ -21,7 +21,7 @@ YACReaderTreeView::YACReaderTreeView(QWidget *parent)
|
||||
|
||||
void YACReaderTreeView::applyTheme(const Theme &theme)
|
||||
{
|
||||
setStyleSheet(theme.treeView.treeViewQSS);
|
||||
setStyleSheet(theme.navigationTree.navigationTreeQSS);
|
||||
}
|
||||
|
||||
void YACReaderTreeView::mousePressEvent(QMouseEvent *event)
|
||||
|
||||
@ -10,7 +10,7 @@ class YACReaderTreeView : public QTreeView, protected Themable
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderTreeView(QWidget *parent = 0);
|
||||
QColor folderIndicatorColor() const { return theme.treeView.folderIndicatorColor; }
|
||||
QColor folderIndicatorColor() const { return theme.navigationTree.folderIndicatorColor; }
|
||||
|
||||
private:
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
|
||||
Reference in New Issue
Block a user