Commit f9fef4eb authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Use the right icon depending on the layout

Summary: If we're showing the icons in a horizontal layout, the < and > buttons feel like it should be selecting instead of switching pages.

Test Plan:
Tested locally

{F7514919}

{F7514920}

Reviewers: #plasma, ngraham

Reviewed By: ngraham

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24408
parent bb2b300a
......@@ -152,7 +152,7 @@ PlasmaCore.Dialog {
Layout.maximumHeight: height
PlasmaCore.IconItem {
id: prevButton
source: "arrow-left"
source: inputpanel.verticalLayout ? "arrow-left" : "arrow-up"
width: inputpanel.baseSize
height: width
scale: prevButtonMouseArea.pressed ? 0.9 : 1
......@@ -166,7 +166,7 @@ PlasmaCore.Dialog {
}
PlasmaCore.IconItem {
id: nextButton
source: "arrow-right"
source: inputpanel.verticalLayout ? "arrow-right" : "arrow-down"
width: inputpanel.baseSize
height: width
scale: nextButtonMouseArea.pressed ? 0.9 : 1
......
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