Log In  


Cart #dock-1 | 2024-09-25 | Embed ▽ | License: CC4-BY-NC-SA
10

Mac OS X Tiger-style dock application.
Does not work in the web player.
Works best when saved to desktop and ran by double-clicking.

Current features:

  • Customisable program shortcuts (edit /appdata/dock/dock.txt)
  • Loads icons from application metadata
  • Automatic size adjustment
  • Follows user theme
  • Displays below or above every window (user selectable)
  • Reacts to user mouse in a way similar to the OS X Tiger dock

Not supported, but I might add these in the future:

  • [Very Likely] Custom positions ("north", "east", "south", "west", etc.)
  • [Quite Likely] Selectable orientation (landscape or portrait)
  • [Less Likely] Some sort of interactive applist edition thing
  • [Less Likely] Open shortcuts that aren't files with associated programs (currently throws error but doesn't crash)

Changelog:
0.1:

  • Initial release
    0.2:
  • [New feature] You can now specify the directory the given program should be opened in (though the paths should probably not contain spaces in them now)
  • [Enhancement] Icons now bob upwards when hovered over, and when clicked their background briefly changes colour
  • [Enhancement] Edges are now nice and rounded (and even transparent when needed)!
  • [Bugfix] Hopefully fixed unresponsiveness in certain situations
10


1

As a big fan of centred docks, I thank you! 🙏


No matter how many times I try, the dock becomes unresponsive once I open the notebook.
Am I doing something wrong?


You should save it and run it by double clicking it. When run using load and ctrl+r/run the program will do a weird "quit-to-console" if you press esc.


I saved it as dock.p64 and double-clicked to launch it.
It seems to work for a little while, then suddenly it's unresponsive.
Click on the text editor icon, edit the text, save, close the text editor, get a coffee. The dock is already unresponsive!
It's a little confusing what's going on.


1

That's certainly odd. I'll try to fix it in the next version.
If you don't want to wait you go into the source code and set z=-10 in the window definition in _init(). I found that it won't be responsive if I launch it at boot with startup.lua unless I change that value. Seems like z=-999 is too low for picotron... :P

Edit: Version 0.2 should address the issue (and it looks much better IMO too!)
Let me know if it works now.


1

I tried it right away.
I think it's working very well with the fixes.
No issues so far and very responsive.
Thank you very much :D


1

very very nice! I thought about adding the ability to reorder shortcuts by dragging them - it shouldnt be too hard UI-wise, actually, but it would require the program to rewrite its own save file, that kinda thing gets clunky fast. Have you considered a .pod file for settings?

(btw are you on picotron discord?)


Glad you're enjoying it!

I thought about dragging files and using a pod too, but that would make removing them kind of difficult (distinguishing between a short click and a long click etc.). It would also mean that the dock would need to change it's own position and size, which would be hard to do smoothly. The current system has it's upsides too! For example you can set the directory a program is opened in (like with the filenav shortcut: it kept opening in /system/apps/ instead of /).

I might do some sort of popup config UI or some other hybrid solution in the future.

As for the discord, I was not aware there was one. I will check it out soon!


I was thinking just making it so that opening happens on mouse release, not just mouse down (pretty common actually, most buttons work like that in GUIs), and then you could just check if you released over the same icon or a different one, and in that case reorder.

oh, btw, since pod files have a builtin editor, if you make the config a .pod file, just opening it in the editor could substitute for a full-blown settings page.


That might actually work, I'll think about how I could fit it in. My problem with the pod file editor is that you don't seem to be able to add or remove entries in it (at least I couldn't do it).



[Please log in to post a comment]