Issue #108: Add accessibility options in pdf reader [enhancement] - settings in ui, finish work

This commit is contained in:
Jakub Melka
2023-11-19 14:28:23 +01:00
parent 6f6ddaab04
commit 65fd88aa71
10 changed files with 256 additions and 18 deletions

View File

@@ -92,6 +92,17 @@ public:
/// to ensure accurate differentiation between light and dark areas in images.
void setBitonalThreshold(int newBitonalThreshold);
/// Set background color
/// \param newBackgroundColor Background color
void setBackgroundColor(const QColor& newBackgroundColor);
/// Set foreground color
/// \param newForegroundColor Foreground color
void setForegroundColor(const QColor& newForegroundColor);
QColor getBackgroundColor() const;
QColor getForegroundColor() const;
private:
/// Correct lightness using sigmoid function
/// \return Adjusted lightness normalized in range [0.0, 1.0]