diff --git a/manim-slides.qrc b/manim-slides.qrc new file mode 100644 index 0000000..5b6b977 --- /dev/null +++ b/manim-slides.qrc @@ -0,0 +1,6 @@ + + + + static/icon.png + + diff --git a/manim_slides/present.py b/manim_slides/present.py index bcf962e..4bc5148 100644 --- a/manim_slides/present.py +++ b/manim_slides/present.py @@ -11,7 +11,7 @@ import numpy as np from pydantic import ValidationError from PySide6 import QtGui from PySide6.QtCore import Qt, QThread, Signal, Slot -from PySide6.QtGui import QPixmap +from PySide6.QtGui import QIcon, QPixmap from PySide6.QtWidgets import QApplication, QGridLayout, QLabel, QWidget from tqdm import tqdm @@ -19,6 +19,7 @@ from .commons import config_path_option, verbosity_option from .config import DEFAULT_CONFIG, Config, PresentationConfig, SlideConfig, SlideType from .defaults import FOLDER_PATH from .manim import logger +from .resources import * # noqa: F401, F403 os.environ.pop( "QT_QPA_PLATFORM_PLUGIN_PATH", None @@ -534,6 +535,8 @@ class App(QWidget): super().__init__() self.setWindowTitle(WINDOW_NAME) + self.icon = QIcon(":/icon.png") + self.setWindowIcon(self.icon) self.display_width, self.display_height = resolution self.aspect_ratio = aspect_ratio self.resize_mode = resize_mode diff --git a/manim_slides/resources.py b/manim_slides/resources.py new file mode 100644 index 0000000..8c49c08 --- /dev/null +++ b/manim_slides/resources.py @@ -0,0 +1,171 @@ +# type: ignore +# Resource object code (Python 3) +# Created by: object code +# Created by: The Resource Compiler for Qt version 6.4.0 +# WARNING! All changes made in this file will be lost! + +from PySide6 import QtCore + +qt_resource_data = b"\ +\x00\x00\x08\x1c\ +\x89\ +PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\ +\x00\x01\x00\x00\x00\x01\x00\x08\x06\x00\x00\x00\x5cr\xa8f\ +\x00\x00\x01\x84iCCPICC prof\ +ile\x00\x00(\x91}\x91=H\xc3@\x1c\xc5_\ +S\xa5R+\x0e\xed \xe2\x90\xa1:Y\x10-\xe2\xa8\ +U(B\x85P+\xb4\xea`r\xfd\x84&\x0dI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\x00\x09pHYs\x00\x00.#\x00\x00\ +.#\x01x\xa5?v\x00\x00\x00\x07tIME\x07\ +\xe6\x0a\x13\x0c\x0f\x03\x13^\x06\xfe\x00\x00\x00\x19tE\ +XtComment\x00Create\ +d with GIMPW\x81\x0e\x17\x00\ +\x00\x05\xf4IDATx\xda\xed\xddA\x92\x9b:\x18\ +\x85QK\xe5%\xc1\xfe\x17\x00{rF\x19\xa4\xcb\xee\ +\x801X\xd2=g\x98z\x956 }\xfe\xd5\xddy\ +\xbe\xdd\x00\x00\x00\x00\x00\x801\x95\xab\xbe\xd04M\x0f\ +\xb7\x1b\xb6[\xd7\xb5t\x1d\x00\x9b\x1e\xda\x8eA\xb1\xf1\ +!7\x04\xc5\xc6\x87\xdc\x10\x14\x1b\x1fr#Pl~\ +\xc8\x0dA\xb1\xf9!7\x02\xc5\xe6\x87\xdc\x08\x14\x9b\x1f\ +r#Pl~\xc8\x8d@\xb1\xf9!7\x02\xc5\xe6\x87\ +\xdc\x08T\x9b\x1frU\xb7\x00\xc6\xb4\xe5\x8d\xbb|\xe2\ +/\x01\xfa<\x0aT\x9b\x1f\x1c\x01\x80\xc0\xa3@\xf5\xee\ +\x0f&\x00 p\x0a\xa8\xde\xfd\xc1\x04\x00\x04N\x01\x02\ +\x00&\x00@\x00\x9c\xff!\xca\xbd\x85\x17\xb1,\x8b'\ +A\x9cy\x9e\xb3\x03`\xe3\x93\xec\xef\xfa\xfff\x08\xaa\ +\xcd\x0f\xb9\x13p\xb5\xf9!7\x02~\x0a\x00\xc1.\x0f\ +\x80w\x7fhgo\x98\x00\xc0\x04\x00\x08\x00 \x00\x80\ +\x00\x00\x02\x00\x08\x00 \x00\x80\x00\x00\x02\x00\x08\x00 \ +\x00\x80\x00\x00\x02\x00\x08\x00 \x00\x80\x00\x00\x02\x00\x08\ +\x00 \x00\x80\x00\x00\x02\x00\x08\x00 \x00\x80\x00\x00\x02\ +\x00|\xd2\xbd\xb7\x17\xfc\xdbG)\x8f\xfc\xb1c-^\ +\xb7g\xd1\xffu\x97\x9f\x7f0M\xd3\xe3\xcc/x\xe4\ +\x06m\xfd\x1c\xf5\x91\x16_\x8b\xd7\xbc\xe7\xf3\xec\x13\x9f\ +\xc5\x91\xeb\xde\xf35\xde\xb1\xaek\xe9\xf2\x08\xb0\xe7\xc6\ +\x9c}\x13\x93\xafy\xef\xd7I|\x16=]w\x1d\xf1\ +\xe6\x8f\xb0\xf0Z\xbc\xe6w\xff\xfe\xc4g\xd1\x8b\xea\xe6\ +\xb7w\xbdG\xae\xb9\xd5\xfb\x95\xf6\x1c{\xb9\xe6\xea\x01\ +x\xbd\xae/\xf7\x99\xf81\xa0\x85v\xe9\xeb;:\xe1\ + \x006\xbfkF\x00l\x04\xd7\x8e\x00t\xbc\xf8m\ +\x00\x11\x10\x00\x8b\xde\xfd\x10C\x01\xb0\xf9qo\x04\xc0\ +\x02w\x8f\xdc\x04\x01\xb0\xb0\xdd+\x04\xc0\xf9V\x04\x10\ +\x00\x8bX<\x11\x00\x9b\xdf\xbdD\x00,X\xf7\x14\x01\ +\xb0P\xdd[\x04\xc0yU\x04\x10\x00\x8bRl\x11\x00\ +\x9b\xdf\xbdG\x00,@\xcf\x00\x01\xb0\xf0<\x0b\x04\xc0\ +\xf9S\x04\x10\x00\x8b\xcc\xf3A\x00,.\x13\x1a\x02`\ +\xf3{f\x08\x80\x85\xe4\xd9\x09\x00FI\x11\x10\x00,\ +\x1a1\x17\x00\x8b\x05\xcfV\x00,\x10