diff --git a/README.md b/README.md index 103a944..28f8b3d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Bouquin +![Bouquin logo](bouquin/icons/bouquin.svg) ## Introduction diff --git a/bouquin.desktop b/bouquin.desktop new file mode 100644 index 0000000..5d6b52e --- /dev/null +++ b/bouquin.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Type=Application +Name=Bouquin +Exec=Bouquin.AppImage +Categories=Office;TextEditor diff --git a/bouquin/icons/bouquin-light.svg b/bouquin/icons/bouquin-light.svg new file mode 100644 index 0000000..aa96992 --- /dev/null +++ b/bouquin/icons/bouquin-light.svg @@ -0,0 +1,145 @@ + + Bouquin + + A notebook with a centered B-shaped right edge, a shield and keyhole as the upper hole of a B, + and a green-blue neon version control fork as the lower hole, on a lighter toolbar-friendly background. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bouquin/icons/bouquin.svg b/bouquin/icons/bouquin.svg new file mode 100644 index 0000000..fd5f345 --- /dev/null +++ b/bouquin/icons/bouquin.svg @@ -0,0 +1,145 @@ + + Bouquin + + A notebook with a centered B-shaped right edge, a shield and keyhole as the upper hole of a B, + and a green-blue neon version control fork as the lower hole, with one shorter branch like a git fork. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bouquin/main.py b/bouquin/main.py index 693917e..6ef3718 100644 --- a/bouquin/main.py +++ b/bouquin/main.py @@ -1,7 +1,9 @@ from __future__ import annotations import sys +from pathlib import Path from PySide6.QtWidgets import QApplication +from PySide6.QtGui import QIcon from .settings import APP_NAME, APP_ORG, get_settings from .main_window import MainWindow @@ -13,6 +15,11 @@ def main(): app = QApplication(sys.argv) app.setApplicationName(APP_NAME) app.setOrganizationName(APP_ORG) + # Icon + BASE_DIR = Path(__file__).resolve().parent + ICON_PATH = BASE_DIR / "icons" / "bouquin-light.svg" + icon = QIcon(str(ICON_PATH)) + app.setWindowIcon(icon) s = get_settings() theme_str = s.value("ui/theme", "system") diff --git a/pyproject.toml b/pyproject.toml index 14dad41..406bf46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,8 @@ pyproject-appimage = "^4.2" [tool.pyproject-appimage] script = "bouquin" output = "Bouquin.AppImage" +icon = "bouquin/icons/bouquin-light.svg" +desktop-entry = "bouquin.desktop" [tool.vulture] paths = ["bouquin", "vulture_ignorelist.py"]