holepunchto / pear

combined Peer-to-Peer (P2P) Runtime, Development & Deployment tool
https://docs.pears.com/
Apache License 2.0
91 stars 9 forks source link

Some issues with Desktop Project #30

Closed mattdesl closed 2 days ago

mattdesl commented 6 months ago

Just starting with this guide: https://docs.pears.com/guides/starting-a-pear-desktop-project

Noticed a couple issues on my machine when following:

  1. Using pear dev, when I modify index.html and save the file, it does not trigger a live-reload in the open window. If I click the window and hit Cmd + R, it will reload and show the new markup.
  2. Changing the pear.gui.backgroundColor has no effect; the background color is dark even when closing and re-running pear dev.
  3. There doesn't appear to be a title like in the demo (the "DEV" button is not visible). See below.
Screenshot 2024-02-16 at 15 23 01

specs: macOS 13.0, node 21.6.2, npm 10.2.4

pear: 0.2494.pqbzjhqyonxprx8hghxexnmctw75mr91ewqw5dxe1zmntfyaddqy bare: 1.0.0 uv: 1.48.0 v8: 11.8.172.16

mafintosh commented 6 months ago

Ya we are re-enabling live reload soon, we had a bug before launch so we had to disable tmp

mafintosh commented 6 months ago

For the title, we changed it, there is a controls element now for full control. Will let @davidmarkclements add more context

davidmarkclements commented 6 months ago

there's an updated desktop template coming out soon that includes the <pear-ctrl> element which also needs to be documented - heres the template update: https://github.com/holepunchto/pear/pull/28

davidmarkclements commented 6 months ago

re the background will look into thanks @mattdesl 🍐

lukastanisic99 commented 5 months ago

Apart from MacOS the same issue also on Windows 10

4c656554 commented 4 months ago

I see the same issue on Ubuntu 22.04.4 LTS

davidmarkclements commented 2 days ago

we can communicate about this better, but you're seeing the body background color on top of the window background color, if the body background is transparent then you see the window background color. You want to set the backgroundColor to the same (or approx) as your body background so when slower machines load the app they don't see a flash of one color and then a flash of another. closing as not a bug, more of a docs need