Skip to content

Commit

Permalink
new favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Jul 21, 2021
1 parent 2d359d8 commit 941569e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ You can call `ui.run()` with optional arguments for some high-level configuratio
- `host` (default: `'0.0.0.0'`)
- `port` (default: `80`)
- `title` (default: `'NiceGUI'`)
- `favicon` (default: `'favicon.png'`)
- `favicon` (default: `'favicon.ico'`)
- `reload`: automatically reload the ui on file changes (default: `True`)
- `show`: automatically open the ui in a browser tab (default: `True`)

Expand Down
2 changes: 1 addition & 1 deletion nicegui/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Config(BaseModel):
host: str = '0.0.0.0'
port: int = 80
title: str = 'NiceGUI'
favicon: str = 'favicon.png'
favicon: str = 'favicon.ico'
reload: bool = True
show: bool = True

Expand Down
2 changes: 1 addition & 1 deletion nicegui/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
uvicorn.run('nicegui:app', host=config.host, port=config.port, lifespan='on', reload=True)
sys.exit()

def run(self, *, host='0.0.0.0', port=80, title='NiceGUI', favicon='favicon.png', reload=True, show=True):
def run(self, *, host='0.0.0.0', port=80, title='NiceGUI', favicon='favicon.ico', reload=True, show=True):

if reload == False: # NOTE: in case reload == True we already started uvicorn above
if show:
Expand Down
Binary file added nicegui/static/favicon.ico
Binary file not shown.
Binary file removed nicegui/static/favicon.png
Binary file not shown.

0 comments on commit 941569e

Please sign in to comment.