Skip to content

Commit

Permalink
chore: UI Improvement.
Browse files Browse the repository at this point in the history
  • Loading branch information
imoize committed Sep 27, 2024
1 parent 7c62e74 commit 977f020
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions package/contents/ui/ListPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ ColumnLayout {

PlasmaComponents.ToolButton {
text: i18n("Refresh")
icon.name: Qt.resolvedUrl("icons/refresh.svg")
icon.name: Qt.resolvedUrl("icons/oc-refresh.svg")
onClicked: {
Utils.getModels();
}
Expand Down Expand Up @@ -94,7 +94,7 @@ ColumnLayout {
id: ejectButton
enabled: modelsCombobox.currentIndex !== -1
text: i18n("Eject")
icon.name: Qt.resolvedUrl("icons/eject.svg")
icon.name: Qt.resolvedUrl("icons/oc-eject.svg")
onClicked: {
var model = modelsCombobox.currentText;
Utils.handleModel(model, "unload");
Expand Down Expand Up @@ -135,7 +135,7 @@ ColumnLayout {
currentIndex: -1

delegate: ModelsDelegate {
showSeparator: index !== 0
showSeparator: index !== -1
width: modelListView.width
}
}
Expand Down
6 changes: 3 additions & 3 deletions package/contents/ui/ModelsDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ PlasmaComponents.ItemDelegate {
id: loadModelButton
// anchors.centerIn: parent
text: i18n("Load Model")
icon.name: Qt.resolvedUrl("icons/up-square.svg")
icon.name: Qt.resolvedUrl("icons/oc-up-square.svg")
onClicked: {
var model = modelName;
Utils.handleModel(modelName, "load");
Expand All @@ -129,7 +129,7 @@ PlasmaComponents.ItemDelegate {
// anchors.centerIn: parent
checkable: true
text: i18n("More")
icon.name: Qt.resolvedUrl("icons/options.svg")
icon.name: Qt.resolvedUrl("icons/oc-options.svg")
onClicked: {
createContextMenu(modelName);
}
Expand Down Expand Up @@ -176,7 +176,7 @@ PlasmaComponents.ItemDelegate {
id: separatorLine
anchors {
horizontalCenter: parent.horizontalCenter
top: parent.top
top: parent.bottom
}
imagePath: "widgets/line"
elementId: "horizontal-line"
Expand Down
8 changes: 4 additions & 4 deletions package/contents/ui/components/ContextMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PlasmaComponents.Menu {
PlasmaComponents.MenuItem {
id: copyMenuItem
text: i18n("Copy")
icon.name: Qt.resolvedUrl("../icons/copy.svg")
icon.name: Qt.resolvedUrl("../icons/oc-copy.svg")
onTriggered: {
listPage.createActionsDialog(modelName, "copy");
}
Expand All @@ -37,7 +37,7 @@ PlasmaComponents.Menu {
// PlasmaComponents.MenuItem {
// id: pushMenuItem
// text: i18n("Push")
// icon.name: Qt.resolvedUrl("../icons/up-tray.svg")
// icon.name: Qt.resolvedUrl("../icons/oc-up-tray.svg")
// onTriggered: {}
// onHoveredChanged: {
// if (!hovered) {
Expand All @@ -49,7 +49,7 @@ PlasmaComponents.Menu {
// PlasmaComponents.MenuItem {
// id: updateMenuItem
// text: i18n("Update")
// icon.name: Qt.resolvedUrl("../icons/down-tray.svg")
// icon.name: Qt.resolvedUrl("../icons/oc-down-tray.svg")
// onTriggered: {}
// onHoveredChanged: {
// if (!hovered) {
Expand All @@ -63,7 +63,7 @@ PlasmaComponents.Menu {
PlasmaComponents.MenuItem {
id: deleteMenuItem
text: i18n("Delete")
icon.name: Qt.resolvedUrl("../icons/delete.svg")
icon.name: Qt.resolvedUrl("../icons/oc-delete.svg")
onTriggered: {
listPage.createActionsDialog(modelName, "delete");
}
Expand Down

0 comments on commit 977f020

Please sign in to comment.