Issue #99: Icons for dark mode

This commit is contained in:
Jakub Melka
2023-11-26 19:15:20 +01:00
parent f5cb2a17af
commit 1c5c7da5ba
8 changed files with 110 additions and 0 deletions

View File

@ -192,6 +192,11 @@ MainWindow::MainWindow(QWidget* parent) :
}
}
if (pdf::PDFWidgetUtils::isDarkTheme())
{
pdf::PDFWidgetUtils::convertActionsForDarkTheme(actions, iconSize, qGuiApp->devicePixelRatio());
}
// Initialize pixmap cache size
const int depth = 4; // 4 bytes (ARGB)
const int reserveSize = 2; // Caching of two screens