diff --git a/ScreenPlay/ScreenPlayAssets.qrc b/ScreenPlay/ScreenPlayAssets.qrc index e4e807c0..f984b3e1 100644 --- a/ScreenPlay/ScreenPlayAssets.qrc +++ b/ScreenPlay/ScreenPlayAssets.qrc @@ -149,5 +149,7 @@ translations/ScreenPlay_it_IT.qm translations/ScreenPlay_it_IT.ts assets/icons/icon_sort_button.svg + assets/icons/icon_date.svg + assets/icons/icon_size.svg diff --git a/ScreenPlay/assets/icons/icon_date.svg b/ScreenPlay/assets/icons/icon_date.svg new file mode 100644 index 00000000..20c24199 --- /dev/null +++ b/ScreenPlay/assets/icons/icon_date.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ScreenPlay/assets/icons/icon_size.svg b/ScreenPlay/assets/icons/icon_size.svg new file mode 100644 index 00000000..69be2b28 --- /dev/null +++ b/ScreenPlay/assets/icons/icon_size.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ScreenPlay/qml/Installed/Navigation.qml b/ScreenPlay/qml/Installed/Navigation.qml index 48384cf7..b41340e4 100644 --- a/ScreenPlay/qml/Installed/Navigation.qml +++ b/ScreenPlay/qml/Installed/Navigation.qml @@ -152,7 +152,8 @@ Item { ToolTip.delay: 100 ToolTip.timeout: 5000 ToolTip.visible: hovered - ToolTip.text: (sortOrder === Qt.AscendingOrder) ? qsTr("Ascending") : qsTr("Descending") + ToolTip.text: (sortOrder === Qt.AscendingOrder) ? qsTr("Ascending") : qsTr( + "Descending") onClicked: { sortOrder = (sortOrder @@ -167,7 +168,7 @@ Item { verticalCenter: parent.verticalCenter } } - Button { + ToolButton { id: sortButton icon.source: "qrc:/assets/icons/icon_sort_button.svg" icon.width: 16 @@ -180,6 +181,7 @@ Item { MenuItem { text: "Date" + icon.source: "qrc:/assets/icons/icon_date.svg" hoverEnabled: true ToolTip.delay: 100 ToolTip.timeout: 5000 @@ -188,6 +190,7 @@ Item { } MenuItem { text: "Size" + icon.source: "qrc:/assets/icons/icon_size.svg" hoverEnabled: true ToolTip.delay: 100 ToolTip.timeout: 5000