Skip to content

Submersible/sycamore-mac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages