Git Product home page Git Product logo

notelauncher's Introduction

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)

notelauncher's People

Contributors

1jss avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.