Commit 37763ba7 authored by David Redondo's avatar David Redondo 🏎
Browse files

[Cuttlefish] Add 48 to the sizeslider

Summary:
The initial icon size Cuttlefish starts with is 48 (Kirigami.Unis.iconSizes.large).
However this size cannot be selected using the slider. To quickly see this
start Cuttlefish (note the slider says 64) and move the slide to some other
value and back to 64. The icons have now a different size than before. Since we
also show a preview for 48 add this size to the selectable ones.

Reviewers: #plasma, cblack, ngraham

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24304
parent 8392680f
......@@ -88,7 +88,7 @@ Rectangle {
id: sizeslider
Layout.preferredWidth: preview.width - units.gridUnit * 2
to: 5.0
to: 6.0
stepSize: 1.0
snapMode: QQC2.Slider.SnapAlways
value: 4.0
......
......@@ -143,8 +143,9 @@ Kirigami.ApplicationWindow {
sizes[1] = 16;
sizes[2] = 22;
sizes[3] = 32;
sizes[4] = 64;
sizes[5] = 128;
sizes[4] = 48
sizes[5] = 64;
sizes[6] = 128;
return sizes[ix];
}
......
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