diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2019-05-03 16:31:32 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2019-05-03 16:31:32 +0200 |
commit | 43da01a538a5c6724505026b4a84b559d5e56219 (patch) | |
tree | b778fab589c30882a769011b23da22e2a434df3f /src/ui_widgets.py | |
parent | ea83137c32be2f7c47e6c4e4bbfaafeb0591db21 (diff) |
More ui refactoring
Diffstat (limited to 'src/ui_widgets.py')
-rw-r--r-- | src/ui_widgets.py | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/src/ui_widgets.py b/src/ui_widgets.py index 384b948..42fda7c 100644 --- a/src/ui_widgets.py +++ b/src/ui_widgets.py @@ -3,7 +3,35 @@ from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * -from ui import GUI, Pens # the fuck +from ui import GUI + + + +class Pens: + axes = QPen(Qt.gray) + + ellipse = QPen(Qt.black) + ellipse.setWidth(2) + + axis_linear = QPen(QColor(201, 141, 0)) + axis_linear.setWidth(2) + axis_linear.setStyle(Qt.DashDotLine) + + axis_fast = QPen(QColor(51, 87, 123)) + axis_fast.setWidth(2) + axis_fast.setStyle(Qt.DashDotLine) + + axis_slow = QPen(QColor(55, 123, 51)) + axis_slow.setWidth(2) + axis_slow.setStyle(Qt.DashDotLine) + + alpha = QPen(Qt.red) + theta = QPen(Qt.blue) + + radii = QPen(Qt.black) + radii.setStyle(Qt.DashDotLine) + + class ExpandingSpacer(QSpacerItem): def __init__(self): |