From 128848719d798cd7727f822259c5579bd7ee860e Mon Sep 17 00:00:00 2001 From: Yannis Chatzikonstantinou Date: Mon, 29 Apr 2024 22:34:41 +0300 Subject: [PATCH 1/2] add app icon --- studio/Python/Manifest.in | 1 + studio/Python/tinymovr/gui/gui.py | 7 +++++++ .../tinymovr/resources/icons/app_icon.png | Bin 0 -> 13896 bytes 3 files changed, 8 insertions(+) create mode 100644 studio/Python/tinymovr/resources/icons/app_icon.png diff --git a/studio/Python/Manifest.in b/studio/Python/Manifest.in index 7c656374..5740a2e6 100644 --- a/studio/Python/Manifest.in +++ b/studio/Python/Manifest.in @@ -1,4 +1,5 @@ include README.md +include tinymovr/resources/icons/app_icon.png include tinymovr/resources/icons/call.png include tinymovr/resources/icons/call_dark.png include tinymovr/resources/icons/call@2x.png diff --git a/studio/Python/tinymovr/gui/gui.py b/studio/Python/tinymovr/gui/gui.py index 99539b00..e6473123 100644 --- a/studio/Python/tinymovr/gui/gui.py +++ b/studio/Python/tinymovr/gui/gui.py @@ -16,8 +16,10 @@ import sys import yaml import pkg_resources +from importlib_resources import files from docopt import docopt from PySide6.QtWidgets import QApplication +from PySide6.QtGui import QIcon, QPixmap from tinymovr.gui import MainWindow, app_stylesheet, app_stylesheet_dark, is_dark_mode from tinymovr.constants import app_name from tinymovr.config import configure_logging, add_spec @@ -54,10 +56,15 @@ def spawn(): add_spec(spec_data, logger) app = QApplication(sys.argv) + + icon_path = files("tinymovr").joinpath("resources/icons/app_icon.png") + app.setWindowIcon(QIcon(str(icon_path))) + if is_dark_mode(): app.setStyleSheet(app_stylesheet_dark) else: app.setStyleSheet(app_stylesheet) w = MainWindow(app, arguments, logger) + w.show() sys.exit(app.exec_()) diff --git a/studio/Python/tinymovr/resources/icons/app_icon.png b/studio/Python/tinymovr/resources/icons/app_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..1065b49dda152072605746183b3a1f6b29702104 GIT binary patch literal 13896 zcmb7r1zQ_kv~_TIcP|zwZY}OF-qH{#?pjKrx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3#JAlA4y4y&PWDHcnd;G`fx_ZmKBEVb(wi7jrYnsBnEz(M{$0yDy{Wxha!^ zAuXGf>2uw&34(oW6Cwqdy9_Q8ba~?c^|Lq&iRD={e&oz(5Dfe^45Y5CtyHdH4*MT< CQ14&> literal 0 HcmV?d00001 From 4e7a77cac3545f953a62202914b23968948c3875 Mon Sep 17 00:00:00 2001 From: Yannis Chatzikonstantinou Date: Mon, 29 Apr 2024 22:39:29 +0300 Subject: [PATCH 2/2] add adjustable splitter --- studio/Python/tinymovr/gui/helpers.py | 2 ++ studio/Python/tinymovr/gui/window.py | 13 ++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/studio/Python/tinymovr/gui/helpers.py b/studio/Python/tinymovr/gui/helpers.py index d343e527..bc9e5944 100644 --- a/studio/Python/tinymovr/gui/helpers.py +++ b/studio/Python/tinymovr/gui/helpers.py @@ -201,6 +201,8 @@ app_stylesheet_dark = """ +QSplitter::handle { background-color: black; } + /* --------------------------------------- QPushButton -----------------------------------*/ QPushButton { diff --git a/studio/Python/tinymovr/gui/window.py b/studio/Python/tinymovr/gui/window.py index e6c18b0f..32e657bf 100644 --- a/studio/Python/tinymovr/gui/window.py +++ b/studio/Python/tinymovr/gui/window.py @@ -34,6 +34,7 @@ QLabel, QMessageBox, QTreeWidgetItem, + QSplitter ) from PySide6.QtGui import QAction import pyqtgraph as pg @@ -110,6 +111,10 @@ def __init__(self, app, arguments, logger): self.status_label = QLabel() self.status_label.setStyleSheet("margin: 5px;") + # Create splitter and add frames + self.splitter = QSplitter(QtCore.Qt.Horizontal) + self.splitter.setHandleWidth(0) + self.left_frame = QFrame(self) self.left_layout = QVBoxLayout() self.left_layout.addWidget(self.tree_widget) @@ -127,9 +132,11 @@ def __init__(self, app, arguments, logger): self.right_layout.setContentsMargins(0, 0, 0, 0) self.right_frame.setLayout(self.right_layout) - main_layout = QHBoxLayout() - main_layout.addWidget(self.left_frame) - main_layout.addWidget(self.right_frame) + self.splitter.addWidget(self.left_frame) + self.splitter.addWidget(self.right_frame) + + main_layout = QVBoxLayout() + main_layout.addWidget(self.splitter) main_layout.setSpacing(0) main_layout.setContentsMargins(0, 0, 0, 0)