Replace goto.png with a themeable svg image
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
Build / Publish YACReader10 Pre-release Builds (push) Has been cancelled

This commit is contained in:
luisangelsm
2026-03-17 19:35:30 +01:00
parent b49446c246
commit 83e1b88c2c
10 changed files with 46 additions and 5 deletions

View File

@ -8,6 +8,7 @@ GoToDialog::GoToDialog(QWidget *parent)
: QDialog(parent)
{
setupUI();
initTheme(this);
}
void GoToDialog::setupUI()
@ -42,9 +43,7 @@ void GoToDialog::setupUI()
mainLayout->addLayout(bottomLayout);
auto imgMainLayout = new QHBoxLayout;
auto imgLabel = new QLabel();
QPixmap p(":/images/goto.png");
imgLabel->setPixmap(p);
imgLabel = new QLabel();
imgMainLayout->addWidget(imgLabel);
imgMainLayout->addLayout(mainLayout);
@ -78,3 +77,8 @@ void GoToDialog::open()
pageNumber->setFocus();
QDialog::open();
}
void GoToDialog::applyTheme(const Theme &theme)
{
imgLabel->setPixmap(theme.dialogIcons.goToDialogIcon);
}