Commit 0aa141ad authored by Piotr Kąkol's avatar Piotr Kąkol Committed by Nate Graham

Changed variable type to int to display squares instead of rectangles

Summary:
{F6044411}
On the left there's the old applet and on the right mine after only changing dotSize from real to int. All squares, not rectangles.

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: davidedmundson, plasma-devel, ngraham, gladhorn

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D14377
parent 9eae090a
......@@ -68,7 +68,7 @@ Item {
readonly property color offColor: plasmoid.configuration.useCustomColorForInactive ? plasmoid.configuration.customColorForInactive : Qt.rgba(onColor.r, onColor.g, onColor.b, 0.4)
readonly property color gridColor: plasmoid.configuration.useCustomColorForGrid ? plasmoid.configuration.customColorForGrid : Qt.rgba(onColor.r, onColor.g, onColor.b, 0.6)
readonly property real dotSize: Math.min((height-5*units.smallSpacing)/4, (width-(dots+1)*units.smallSpacing)/dots)
readonly property int dotSize: Math.min((height-5*units.smallSpacing)/4, (width-(dots+1)*units.smallSpacing)/dots)
readonly property real displayTop: (height - 4*dotSize-3*units.smallSpacing)/2
readonly property real displayLeft: (width - dots*dotSize-(dots-1)*units.smallSpacing)/2
......@@ -137,4 +137,4 @@ Item {
visible: showGrid
color: gridColor
}
}
\ No newline at end of file
}
Markdown is supported
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