NoteLauncher is an Application Launcher for Pine64 PineNote
It's in it's very early stages, so most things are hard coded while the underlaying functionality is put together.
NoteLauncher is built in Nim and uses the SDL2 library.
Hint! The best way to install the SDL2 libraries in macOS is to use Homebrew with the following command:
brew install sdl2{,_gfx,_image,_mixer,_net,_ttf}
The following Nim libraries are needed:
- Pixie (
nimble install pixie@#head
) - SDL2 (
nimble install sdl2@#head
)
Pixie
is a graphics library and SDL2
is Nim bindings for the SDL2 C library.
Navigate to the project directory and run: nim c -r launcher.nim
- Load icon objects from
.desktop
files - Make clicking an icon launch the application
- Clean SVG icon source
- Create SDL2 window
- Scale window to half for development
- Load SVG into window
- Load font
- Draw app names in correct places
- Detect mouse click and motion
- Update window on mouse event
- Draw tap targets
- Detect target on click
- Make the view scrollable
- Detect dragging (touch scrolling)
- Make layout relative to scroll
- Draw icons and names in a grid
- Make
icon object
with fields foricon
(url string),executable
(url string) andname
(string) - Make store for icon objects (list of
icon object
) - Make grid view that can draw icons and names in a data store (layout math)
- Make