fmaclen / hollama

A minimal web-UI for talking to Ollama servers
https://hollama.fernando.is
MIT License
316 stars 27 forks source link

Desktop: add "loading" splash screen while the server is loading #144

Open fmaclen opened 1 month ago

fmaclen commented 1 month ago

It avoids this scenario where the window is created but there is a blank page visible for a second or two, with a lower-case window title:

image

Here's an example implementation:

export const setLoadingView = (window: BrowserWindow) => {
  if (app.isPackaged) {
    window.loadFile(path.join(process.resourcesPath, 'assets', LOADING_HTML));
  } else {
    window.loadFile(`../../resources/assets/${LOADING_HTML}`);
  }
}

Example:

fmaclen commented 2 weeks ago

@GregoMac1 I think this one can wait.