Skip to content

1jss/NoteLauncher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NoteLauncher

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.

Technical Details

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}

Nim Libraries

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.

Build and Run

Navigate to the project directory and run: nim c -r launcher.nim

To Do

  • Load icon objects from .desktop files
  • Make clicking an icon launch the application
  • Clean SVG icon source

Done

  • 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 for icon(url string), executable(url string) and name(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)

About

Application Launcher for PineNote

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages