Skip to content
Open
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: 17 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,28 @@ compile_commands.json

*_qmlcache.qrc

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


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

# Virtual environments
.venv/
venv/

# IDEs
.idea/
.vscode/
env/
ENV/
.venv
pip-log.txt
pip-delete-this-directory.txt

# Runtime data
.local_data/
Expand Down
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 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.
19 changes: 19 additions & 0 deletions ui/data.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"folders": [
{
"path": "../data"
},
{
"path": "../local_data"
},
{
"path": "../__pycache__"
},
{
"path": "../scrapers"
},
{
"path": "."
}
]
}
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