mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Set Khoj Icon on Main Desktop Window
This commit is contained in:
parent
1b1f8f9272
commit
dfe2546c04
1 changed files with 6 additions and 2 deletions
|
@ -6,8 +6,8 @@ import webbrowser
|
|||
|
||||
|
||||
# External Packages
|
||||
from PyQt6 import QtWidgets
|
||||
from PyQt6.QtCore import Qt, QThread, QObject, pyqtSignal
|
||||
from PyQt6 import QtGui, QtWidgets
|
||||
from PyQt6.QtCore import QThread, QObject, pyqtSignal
|
||||
|
||||
# Internal Packages
|
||||
from src.configure import configure_server
|
||||
|
@ -49,6 +49,10 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||
self.setWindowTitle("Khoj")
|
||||
self.setFixedWidth(600)
|
||||
|
||||
# Set Window Icon
|
||||
icon_path = constants.web_directory / 'assets/icons/favicon-144x144.png'
|
||||
self.setWindowIcon(QtGui.QIcon(f'{icon_path.absolute()}'))
|
||||
|
||||
# Initialize Configure Window Layout
|
||||
self.layout = QtWidgets.QVBoxLayout()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue