Rename YACReaderLibrary json theme sections to be more user friendly

This commit is contained in:
luisangelsm
2026-03-02 22:31:56 +01:00
parent 547e48cc04
commit e0930d7a68
28 changed files with 372 additions and 387 deletions

View File

@ -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)

View File

@ -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;

View File

@ -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)

View File

@ -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;