Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/ui/MenuRepresentation.qml
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 25 | FocusScope { | |||
---|---|---|---|---|---|
55 | Row { | 55 | Row { | ||
56 | id: mainRow | 56 | id: mainRow | ||
57 | 57 | | |||
58 | height: parent.height | 58 | height: parent.height | ||
59 | 59 | | |||
60 | spacing: units.smallSpacing | 60 | spacing: units.smallSpacing | ||
61 | 61 | | |||
62 | LayoutMirroring.enabled: ((plasmoid.location == PlasmaCore.Types.RightEdge) | 62 | LayoutMirroring.enabled: ((plasmoid.location == PlasmaCore.Types.RightEdge) | ||
63 | || (Qt.application.layoutDirection == Qt.RightToLeft)) | 63 | || (Qt.application.layoutDirection == Qt.RightToLeft && plasmoid.location != PlasmaCore.Types.LeftEdge)) | ||
64 | 64 | | |||
65 | PlasmaCore.FrameSvgItem { | 65 | PlasmaCore.FrameSvgItem { | ||
66 | id: sideBar | 66 | id: sideBar | ||
67 | 67 | | |||
68 | width: units.iconSizes.medium + margins.left + margins.right | 68 | width: units.iconSizes.medium + margins.left + margins.right | ||
69 | height: parent.height | 69 | height: parent.height | ||
70 | 70 | | |||
71 | imagePath: "widgets/frame" | 71 | imagePath: "widgets/frame" | ||
▲ Show 20 Lines • Show All 274 Lines • ▼ Show 20 Line(s) | 334 | states: [ State { | |||
346 | PropertyChanges { | 346 | PropertyChanges { | ||
347 | target: searchField | 347 | target: searchField | ||
348 | anchors.leftMargin: sideBar.width + mainRow.spacing + units.smallSpacing | 348 | anchors.leftMargin: sideBar.width + mainRow.spacing + units.smallSpacing | ||
349 | anchors.rightMargin: undefined | 349 | anchors.rightMargin: undefined | ||
350 | } | 350 | } | ||
351 | }, | 351 | }, | ||
352 | State { | 352 | State { | ||
353 | name: "right" | 353 | name: "right" | ||
354 | when: (plasmoid.location == PlasmaCore.Types.RightEdge | 354 | when: (plasmoid.location == PlasmaCore.Types.RightEdge && Qt.application.layoutDirection == Qt.LeftToRight) | ||
355 | || (plasmoid.location != PlasmaCore.Types.RightEdge && mainRow.LayoutMirroring.enabled)) | 355 | || (plasmoid.location == PlasmaCore.Types.LeftEdge && Qt.application.layoutDirection == Qt.RightToLeft) | ||
356 | 356 | | |||
357 | AnchorChanges { | 357 | AnchorChanges { | ||
358 | target: searchField | 358 | target: searchField | ||
359 | anchors.top: undefined | 359 | anchors.top: undefined | ||
360 | anchors.bottom: mainRow.bottom | 360 | anchors.bottom: mainRow.bottom | ||
361 | anchors.left: undefined | 361 | anchors.left: undefined | ||
362 | anchors.right: parent.right | 362 | anchors.right: parent.right | ||
363 | } | 363 | } | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |