Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Gitscout @ Electron TechTalks SF

Gitscout @ Electron TechTalks SF

Avatar for Gitscout

Gitscout

March 03, 2017
Tweet

Other Decks in Programming

Transcript

  1. Why Electron? We are web developers Our designer can ship

    some code (css/html) Great community and resources available
  2. Your app is locked in a browser window but sometimes

    you want some elements to get out of these “walls” So we need another window and make them communicate somehow Easy, right?
  3. Window lifecycle (creation/destruction) makes it flash. Always here but `opacity:0`

    and `setIgnoreMouseEvents:true` and then manage it’s state.
  4. Creating a new window makes you loose focus from the

    main one (see traffic light) We recreated a custom nav bar from scratch and mapped all its behaviours (all buttons, active/inactive states – greyed)
  5. Communication between 2 windows (e.g. selecting a user from a

    list) Using webContents API and IPC for window management
  6. Problem 5, 6, 7, 8, … 99 Mimicking all native

    UX details (focus management, position, resize, keyboard navigation) Demo
  7. Sounds like a hassle, but totally worth it We love

    crafting great experience with a native feeling and we are grateful to use tools that enable us to do it. Thank you Electron Maintainers <3