Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 2.39 KB

README.md

File metadata and controls

60 lines (43 loc) · 2.39 KB

sycamore-mac

Yes that window is transparent. :}

window.setBackgroundColor_(NSColor::colorWithCalibratedRed_green_blue_alpha_(nil, 1.0, 0.5, 0.5, 0.5));

Getting started with this WIP

git clone https://github.com/Submersible/sycamore-mac.git
cd sycamore-mac
cargo run --example simple_example

Help Wanted

Sycamore makes it really easy to extend, almost simply by implementing GenericNode.

Main issue is figuring out to create the Mac UI using cocoa & objc, plus lots of trial and error reading the AppKit documentation. 🥴

Todo...

  • View component
    • Simple horizontal & vertical layouts
    • Children with constant sizes
  • Text component
    • Text font family
    • Text color
    • Text size
  • Text input component
    • Change event binding
  • Component
    • Click event
    • Mouse move event
  • Window component
  • Create more todo items...
  • Launching a window on Mac, from a sycamore template (bindings don't work)

Auto Layout

Right now strugglying to figure out how to auto layouts, so that components positions & sizes don't need to be manually set--something like the flexbox model would be ideal.