Dynamically create context menu sub-folders based on folder structure of nodes.

This commit is contained in:
2025-02-24 18:33:04 -07:00
parent 76cb82acd9
commit dc33aca6a0
11 changed files with 82 additions and 79 deletions

View File

@ -113,15 +113,15 @@ class OCRRegionWidget(QWidget):
def paintEvent(self, event):
painter = QPainter(self)
pen = QPen(QColor(0, 0, 255))
pen.setWidth(3)
pen = QPen(QColor(255, 255, 0)) # COLOR OF THE BOX ITSELF
pen.setWidth(5) # WIDTH OF THE BOX BORDER
painter.setPen(pen)
# Draw main rectangle
painter.drawRect(0, 0, self.width(), self.height())
# Draw resize handles
painter.setBrush(QColor(0, 0, 255))
painter.setBrush(QColor(255, 255, 0)) # COLOR OF THE RESIZE HANDLES
for handle in self._resize_handles():
painter.drawRect(handle)