D29156: [kcms/fonts] When adjusting all fonts, keep Small font size smaller

Ahmad Samir noreply at phabricator.kde.org
Tue Apr 28 15:51:44 BST 2020


ahmadsamir added inline comments.

INLINE COMMENTS

> fonts.cpp:267
> +        QFont smallerSmallestFont = font;
> +        smallerSmallestFont.setPointSize(font.pointSize() - 2);
> +        m_settings->setSmallestReadableFont(applyFontDiff(m_settings->smallestReadableFont(), smallerSmallestFont, fontDiffFlags));

But if the user selects a very small size, then size - 2 will be even tinier. Maybe make it conditional for size >= 6 or 8?

REPOSITORY
  R119 Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D29156

To: ngraham, #plasma, ahmadsamir, bport
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200428/47cace57/attachment-0001.html>


More information about the Plasma-devel mailing list