- modified the FCMessageBox to have a border and a single color inside the box

This commit is contained in:
Marius Stanciu
2022-01-13 16:42:59 +02:00
committed by Marius
parent 1d1613d2d6
commit dc636369a6
4 changed files with 16 additions and 3 deletions

View File

@@ -7,13 +7,17 @@ CHANGELOG for FlatCAM beta
=================================================
13.01.2022
- modified the FCMessageBox to have a border and a single color inside the box
12.01.2022
- subclassed the QMessageBox and created a new type of MessageBox that is frameless; started to use it throughout the app
11.01.2022
- added an initial implementation of a dark theme using the qdarktheme (performance is not great and there are some artifacts); the theme is activated once the gray icons are checked in the Preferences
- added an initial implementation of a dark theme using the pyqtqdarktheme (performance is not great and there are some artifacts); the theme is activated once the gray icons are checked in the Preferences
- started to mod the qdarktheme to fit the application
10.01.2022

View File

@@ -5428,7 +5428,14 @@ class FCMessageBox(QtWidgets.QMessageBox):
super(FCMessageBox, self).__init__(*args, **kwargs)
self.offset = None
self.moving = None
self.setWindowFlags(Qt.WindowType.FramelessWindowHint)
self.setWindowFlags(self.windowFlags() | Qt.WindowType.FramelessWindowHint | Qt.WindowType.WindowSystemMenuHint)
self.setStyleSheet(
"QDialog { "
"border: 1px solid palette(shadow); "
"background-color: palette(base); "
"}"
)
def mousePressEvent(self, event):
if event.button() == Qt.MouseButton.LeftButton:

View File

@@ -40,6 +40,7 @@ pyopengl
pyqt6>=6.1.0
freetype-py
vispy>=0.9.0
pyqtdarktheme
gdal
rasterio

View File

@@ -48,6 +48,7 @@ sudo -H python3 -m pip install --upgrade \
pyserial \
pikepdf \
foronoi \
ortools
ortools \
pyqtdarktheme
# OR-TOOLS package is now optional
# ################################