diff --git a/Khoj.spec b/Khoj.spec index 0e025ab8..7076e0c0 100644 --- a/Khoj.spec +++ b/Khoj.spec @@ -50,7 +50,7 @@ pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) if system() != 'Darwin': # Add Splash screen to show on app launch splash = Splash( - 'src/khoj/interface/web/assets/icons/favicon-144x144.png', + 'src/khoj/interface/web/assets/icons/favicon-128x128.png', binaries=a.binaries, datas=a.datas, text_pos=(10, 160), @@ -82,7 +82,7 @@ if system() != 'Darwin': target_arch='x86_64', codesign_identity=None, entitlements_file=None, - icon='src/khoj/interface/web/assets/icons/favicon-144x144.ico', + icon='src/khoj/interface/web/assets/icons/favicon-128x128.ico', ) else: exe = EXE( diff --git a/src/khoj/interface/desktop/main_window.py b/src/khoj/interface/desktop/main_window.py index 751c0a64..8d54f209 100644 --- a/src/khoj/interface/desktop/main_window.py +++ b/src/khoj/interface/desktop/main_window.py @@ -49,7 +49,7 @@ class MainWindow(QtWidgets.QMainWindow): self.setFixedWidth(600) # Set Window Icon - icon_path = constants.web_directory / "assets/icons/favicon-144x144.png" + icon_path = constants.web_directory / "assets/icons/favicon-128x128.png" self.setWindowIcon(QtGui.QIcon(f"{icon_path.absolute()}")) # Initialize Configure Window Layout diff --git a/src/khoj/interface/desktop/system_tray.py b/src/khoj/interface/desktop/system_tray.py index 52baec80..526d7da6 100644 --- a/src/khoj/interface/desktop/system_tray.py +++ b/src/khoj/interface/desktop/system_tray.py @@ -17,7 +17,7 @@ def create_system_tray(gui: QtWidgets.QApplication, main_window: MainWindow): """ # Create the system tray with icon - icon_path = constants.web_directory / "assets/icons/favicon-144x144.png" + icon_path = constants.web_directory / "assets/icons/favicon-128x128.png" icon = QtGui.QIcon(f"{icon_path.absolute()}") tray = QtWidgets.QSystemTrayIcon(icon) tray.setVisible(True) diff --git a/src/khoj/interface/web/assets/icons/favicon-144x144.ico b/src/khoj/interface/web/assets/icons/favicon-128x128.ico similarity index 100% rename from src/khoj/interface/web/assets/icons/favicon-144x144.ico rename to src/khoj/interface/web/assets/icons/favicon-128x128.ico diff --git a/src/khoj/interface/web/assets/icons/favicon-144x144.png b/src/khoj/interface/web/assets/icons/favicon-128x128.png similarity index 100% rename from src/khoj/interface/web/assets/icons/favicon-144x144.png rename to src/khoj/interface/web/assets/icons/favicon-128x128.png diff --git a/src/khoj/interface/web/assets/icons/favicon.icns b/src/khoj/interface/web/assets/icons/favicon.icns new file mode 100644 index 00000000..3b375fa0 Binary files /dev/null and b/src/khoj/interface/web/assets/icons/favicon.icns differ diff --git a/src/khoj/interface/web/base_config.html b/src/khoj/interface/web/base_config.html index 89ea6067..d5d8107c 100644 --- a/src/khoj/interface/web/base_config.html +++ b/src/khoj/interface/web/base_config.html @@ -1,14 +1,14 @@
- -| - + | diff --git a/src/khoj/routers/web_client.py b/src/khoj/routers/web_client.py index 590e27e9..da40628c 100644 --- a/src/khoj/routers/web_client.py +++ b/src/khoj/routers/web_client.py @@ -11,8 +11,6 @@ from khoj.utils import constants, state import logging import json -logger = logging.getLogger("khoj") - # Initialize Router web_client = APIRouter() @@ -32,11 +30,6 @@ def config_page(request: Request): return templates.TemplateResponse("config.html", context={"request": request}) -@web_client.get("/test-child", response_class=HTMLResponse) -def test_child(request: Request): - return templates.TemplateResponse("child0.html", context={"request": request, "config": constants.default_config}) - - @web_client.get("/config/content_type/{content_type}", response_class=HTMLResponse) def content_config_page(request: Request, content_type: str): if content_type not in VALID_CONTENT_TYPES: |