51n7 / kMenu

7 stars 1 forks source link

Rearrange entries? #4

Closed Hairo closed 2 weeks ago

Hairo commented 2 months ago

Any way to rearrange entries without removing them and adding them again the preferred order?

51n7 commented 1 month ago

It really depends if there's a drag drop sort component in QML but I'll see what I can find.

If you know another component that has this functionality let me know because it's easier to reverse engineer someone else's code than use the Kwin / QML documentation as it's pretty bad.

51n7 commented 1 month ago

Work In Progress:

51n7 commented 1 month ago

@Hairo you might have to delete and re-add your menu items for this to work but let me know how it goes. I've repackaged the plasmoid file and also reuploaded it to the KDE store.

EDIT:

I tested this on a new machine with the plasmoid previously installed and if you see the word "separator" in the list you'll have to delete all the lines and re add them, just because of how the data is saved differently now. This is just a one time thing though if you had the applet installed before. I had to log out and back in to see this issue fixed too.

image

51n7 commented 1 month ago

In case the icons need to be reset, the default used are:

About This Computer = help-hint
System Preferences... = settings-configure
App Store... = update-none
Force Quit... = error
Sleep = system-suspend
Restart... = system-reboot
Shut Down... = system-shutdown
Lock Screen = system-lock-screen
Log Out = system-log-out
51n7 commented 2 weeks ago

closing this ticket due to lack of feedback and also being complete.

Hairo commented 2 weeks ago

Sorry, seems i missed the notifications, looks good :+1: