Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added data/assets/UniNewsIcon.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion ui/main_window.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
from pathlib import Path

from PyQt6.QtCore import Qt, QUrl
from PyQt6.QtWidgets import (
Expand All @@ -13,7 +14,7 @@
QVBoxLayout,
QWidget, QScrollArea, QLineEdit,
)
from PyQt6.QtGui import QDesktopServices, QPixmap
from PyQt6.QtGui import QDesktopServices, QPixmap, QIcon

from database import Database
from settings import FEEDS_FILE
Expand All @@ -33,6 +34,9 @@ def __init__(self):

self.setWindowTitle("UniNews")
self.resize(1050, 720)

window_icon_path = Path(__file__).resolve().parent.parent / "data" / "assets" / "UniNewsIcon.jpeg"
self.setWindowIcon(QIcon(str(window_icon_path)))

self.settings_button = QPushButton("Settings")
self.settings_button.clicked.connect(self.open_settings)
Expand Down
Loading