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
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,26 @@ compile_commands.json
*creator.user*

*_qmlcache.qrc

# IDE files
.vscode/
.idea/
*.swp
*.swo
.DS_Store


# Bytecode & cache
__pycache__/
*.py[cod]
*.pyo
*.pyd
.Python

# Virtual environments
venv/
env/
ENV/
.venv
pip-log.txt
pip-delete-this-directory.txt
Binary file removed __pycache__/app_settings.cpython-310.pyc
Binary file not shown.
Binary file removed __pycache__/database.cpython-310.pyc
Binary file not shown.
Binary file removed __pycache__/notifications.cpython-310.pyc
Binary file not shown.
Binary file removed __pycache__/rss_service.cpython-310.pyc
Binary file not shown.
Binary file removed __pycache__/settings.cpython-310.pyc
Binary file not shown.
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.
Binary file modified local_data/uninews.db
Binary file not shown.
Binary file modified scrapers/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added scrapers/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file modified scrapers/__pycache__/base_scraper.cpython-310.pyc
Binary file not shown.
Binary file added scrapers/__pycache__/base_scraper.cpython-312.pyc
Binary file not shown.
Binary file modified scrapers/__pycache__/scraper_service.cpython-310.pyc
Binary file not shown.
Binary file added scrapers/__pycache__/scraper_service.cpython-312.pyc
Binary file not shown.
Binary file modified scrapers/__pycache__/uom_scraper.cpython-310.pyc
Binary file not shown.
Binary file added scrapers/__pycache__/uom_scraper.cpython-312.pyc
Binary file not shown.
Binary file modified ui/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added ui/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file modified ui/__pycache__/main_window.cpython-310.pyc
Binary file not shown.
Binary file added ui/__pycache__/main_window.cpython-312.pyc
Binary file not shown.
Binary file modified ui/__pycache__/settings_dialog.cpython-310.pyc
Binary file not shown.
Binary file added ui/__pycache__/settings_dialog.cpython-312.pyc
Binary file not shown.
5 changes: 4 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 @@ -32,6 +33,8 @@ def __init__(self):
super().__init__()

self.setWindowTitle("UniNews")
icon_path = Path(__file__).resolve().parent.parent / "data" / "assets" / "UniNewsIcon.jpeg"
self.setWindowIcon(QIcon(str(icon_path)))
self.resize(1050, 720)

self.settings_button = QPushButton("Settings")
Expand Down