Commit 3182e4f8 authored by Vlad Rakhmanin's avatar Vlad Rakhmanin
Browse files

Added font size property.

Included font size together with getters and setters to the "kontrast" class.
parent 8aed7c99
/*
* SPDX-FileCopyrightText: (C) 2020 Carl Schwan <carl@carlschwan.eu>
*
* SPDX-License-Identifier: GPL-3.0-or-later
* SPDX-LicenseRef: GPL-3.0-or-later
*/
#include "kontrast.h"
......@@ -113,6 +113,16 @@ void Kontrast::setTextSaturation(int saturation)
Q_EMIT contrastChanged();
}
int Kontrast::fontSize() const
{
return m_fontSize;
}
void Kontrast::setFontSize(int fontSize)
{
m_fontSize = fontSize;
}
QColor Kontrast::backgroundColor() const
{
return m_backgroundColor;
......
/*
* SPDX-FileCopyrightText: (C) 2020 Carl Schwan <carl@carlschwan.eu>
*
* SPDX-License-Identifier: GPL-3.0-or-later
* SPDX-LicenseRef: GPL-3.0-or-later
*/
#pragma once
......@@ -64,6 +64,9 @@ public:
int textLightness() const;
void setTextLightness(int lightness);
int fontSize() const;
void setFontSize(int fontSize);
QColor backgroundColor() const;
void setBackgroundColor(const QColor backgroundColor);
......@@ -102,6 +105,7 @@ private:
QColor m_textColor;
QColor m_backgroundColor;
QColor m_grabbedColor;
int m_fontSize;
KAboutData m_about;
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment