Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Accessibility
Kontrast
Commits
3182e4f8
Commit
3182e4f8
authored
Sep 11, 2022
by
Vlad Rakhmanin
Browse files
Added font size property.
Included font size together with getters and setters to the "kontrast" class.
parent
8aed7c99
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/kontrast.cpp
View file @
3182e4f8
/*
* SPDX-FileCopyrightText: (C) 2020 Carl Schwan <carl@carlschwan.eu>
*
* SPDX-License
-Identifier
: GPL-3.0-or-later
* SPDX-License
Ref
: 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
;
...
...
src/kontrast.h
View file @
3182e4f8
/*
* SPDX-FileCopyrightText: (C) 2020 Carl Schwan <carl@carlschwan.eu>
*
* SPDX-License
-Identifier
: GPL-3.0-or-later
* SPDX-License
Ref
: 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
;
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment