Commit e37f9dba authored by Gabriel Craciunescu's avatar Gabriel Craciunescu Committed by Nate Graham
Browse files

Fix force font DPI UI logic

The kcm UI has right now a step size of 24 with a max size of 1000 and a minimum of 1.

Max size need to divide to step size and the lowest possible value should be the step size
because  0 means disabled.

Reviewers: davidedmundson, #plasma

Reviewed By: davidedmundson, #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 7bfcb7e3
......@@ -236,8 +236,10 @@ KCM.SimpleKCM {
enabled: dpiCheckBox.checked
value: kcm.fontAASettings.dpi !== 0 ? kcm.fontAASettings.dpi : 96
onValueModified: kcm.fontAASettings.dpi = value
to: 1000
from: 1
// to: need to divide to stepSize
to: 1008
// lowest vaue here can be == stepSize, that is because 0 means off
from: 24
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