molde 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. molde/__init__.py +6 -5
  2. molde/__main__.py +74 -63
  3. molde/actors/__init__.py +5 -4
  4. molde/actors/common_symbols_actor.py +148 -0
  5. molde/actors/ghost_actor.py +12 -12
  6. molde/actors/lines_actor.py +31 -31
  7. molde/actors/round_points_actor.py +7 -7
  8. molde/actors/square_points_actor.py +32 -32
  9. molde/colors/__init__.py +1 -1
  10. molde/colors/color.py +120 -120
  11. molde/colors/color_names.py +124 -124
  12. molde/interactor_styles/__init__.py +2 -2
  13. molde/interactor_styles/arcball_camera_style.py +288 -272
  14. molde/interactor_styles/box_selection_style.py +70 -70
  15. molde/main_window.ui +864 -0
  16. molde/pickers/__init__.py +2 -2
  17. molde/pickers/cell_area_picker.py +61 -61
  18. molde/pickers/cell_property_area_picker.py +84 -84
  19. molde/poly_data/__init__.py +19 -2
  20. molde/poly_data/arrows.py +54 -0
  21. molde/poly_data/complex_shapes.py +26 -0
  22. molde/poly_data/lines_data.py +23 -23
  23. molde/poly_data/simple_shapes.py +22 -0
  24. molde/poly_data/vertices_data.py +24 -24
  25. molde/render_widgets/__init__.py +2 -2
  26. molde/render_widgets/animated_render_widget.py +164 -164
  27. molde/render_widgets/common_render_widget.py +433 -433
  28. molde/stylesheets/__init__.py +119 -119
  29. molde/stylesheets/common.qss +16 -16
  30. molde/stylesheets/create_color_page.py +61 -61
  31. molde/stylesheets/mainwindow.ui +611 -611
  32. molde/stylesheets/qcheckbox.qss +18 -18
  33. molde/stylesheets/qinputs.qss +78 -78
  34. molde/stylesheets/qlayouts.qss +22 -22
  35. molde/stylesheets/qmenubar.qss +12 -12
  36. molde/stylesheets/qprogressbar.qss +11 -11
  37. molde/stylesheets/qpushbutton.qss +90 -90
  38. molde/stylesheets/qradiobutton.qss +30 -30
  39. molde/stylesheets/qscrollbar.qss +29 -29
  40. molde/stylesheets/qslider.qss +61 -61
  41. molde/stylesheets/qtablewidget.qss +27 -27
  42. molde/stylesheets/qtabwidget.qss +29 -29
  43. molde/stylesheets/qtoolbar.qss +62 -62
  44. molde/stylesheets/qtoolbuttons.qss +14 -14
  45. molde/stylesheets/qtreewidget.qss +25 -25
  46. molde/ui_files/messages/new_loading_window.ui +73 -0
  47. molde/utils/__init__.py +8 -8
  48. molde/utils/format_sequences.py +44 -44
  49. molde/utils/poly_data_utils.py +24 -24
  50. molde/utils/tree_info.py +52 -52
  51. molde/windows/loading_window.py +189 -0
  52. {molde-0.1.0.dist-info → molde-0.1.2.dist-info}/METADATA +5 -3
  53. molde-0.1.2.dist-info/RECORD +69 -0
  54. {molde-0.1.0.dist-info → molde-0.1.2.dist-info}/WHEEL +1 -1
  55. molde-0.1.0.dist-info/RECORD +0 -62
@@ -1,19 +1,19 @@
1
- QCheckBox {
2
- padding: 5px 10px;
3
- }
4
-
5
- QCheckBox::indicator:checked {
6
- background-image: url("@check-box-image-icon");
7
- background-repeat: no-repeat;
8
- background-position: center;
9
- background-color: @primary;
10
- }
11
-
12
- QCheckBox::disabled {
13
- background-color: @background;
14
- color: @disabled-color;
15
- }
16
-
17
- QCheckBox::indicator:disabled {
18
- background: @disabled-background;
1
+ QCheckBox {
2
+ padding: 5px 10px;
3
+ }
4
+
5
+ QCheckBox::indicator:checked {
6
+ background-image: url("@check-box-image-icon");
7
+ background-repeat: no-repeat;
8
+ background-position: center;
9
+ background-color: @primary;
10
+ }
11
+
12
+ QCheckBox::disabled {
13
+ background-color: @background;
14
+ color: @disabled-color;
15
+ }
16
+
17
+ QCheckBox::indicator:disabled {
18
+ background: @disabled-background;
19
19
  }
@@ -1,79 +1,79 @@
1
- QLineEdit, QLineEdit::clear-button, QDoubleSpinBox, QSpinBox, QComboBox {
2
- background-color: @input-color;
3
- border: 1px solid @border-color;
4
- border-radius: 5px;
5
- padding: 4px 4px;
6
- min-width: 40px;
7
- min-height: 15px;
8
- }
9
-
10
- QLineEdit::disabled,
11
- QSpinBox::disabled {
12
- background-color: @disabled-background;
13
- border: 0px;
14
- color: @disabled-color;
15
- }
16
-
17
- QSpinBox::up-button,
18
- QDoubleSpinBox::up-button {
19
- background-image: url("@arrow-up-image-icon");
20
- background-repeat: no-repeat;
21
- background-position: center;
22
- width: 15px;
23
- height: 15px;
24
- }
25
-
26
- QSpinBox::up-button:hover,
27
- QDoubleSpinBox::up-button:hover,
28
- QSpinBox::down-button:hover,
29
- QDoubleSpinBox::down-button:hover {
30
- background-color: @hover-arrow-color;
31
- border-radius: 2px;
32
- }
33
-
34
- QSpinBox::up-button:disabled,
35
- QDoubleSpinBox::up-button:disabled {
36
- background-image: url("@arrow-up-disabled-image-icon");
37
- background-repeat: no-repeat;
38
- background-position: center;
39
- background-color: @disabled-background;
40
- }
41
-
42
- QSpinBox::down-button,
43
- QDoubleSpinBox::down-button {
44
- background-image: url("@arrow-down-image-icon");
45
- background-repeat: no-repeat;
46
- background-position: center;
47
- width: 15px;
48
- height: 15px;
49
- }
50
-
51
- QSpinBox::down-button:disabled,
52
- QDoubleSpinBox::down-button:disabled {
53
- background-image: url("@arrow-down-disabled-image-icon");
54
- background-repeat: no-repeat;
55
- background-position: center;
56
- background-color: @disabled-background;
57
- }
58
-
59
-
60
- QComboBox::drop-down:button {
61
- background-image: url("@arrow-down-image-icon");
62
- background-repeat: no-repeat;
63
- background-position: center;
64
- background-color: @input-color;
65
- border-radius: @border-radius;
66
- }
67
-
68
- QComboBox::drop-down:hover {
69
- background-color: @hover-arrow-color;
70
- }
71
-
72
- QComboBox::drop-down:disabled {
73
- background-color: @disabled-background;
74
- }
75
-
76
- QSpinBox,
77
- QDoubleSpinBox {
78
- border: 2px solid @background;
1
+ QLineEdit, QLineEdit::clear-button, QDoubleSpinBox, QSpinBox, QComboBox {
2
+ background-color: @input-color;
3
+ border: 1px solid @border-color;
4
+ border-radius: 5px;
5
+ padding: 4px 4px;
6
+ min-width: 40px;
7
+ min-height: 15px;
8
+ }
9
+
10
+ QLineEdit::disabled,
11
+ QSpinBox::disabled {
12
+ background-color: @disabled-background;
13
+ border: 0px;
14
+ color: @disabled-color;
15
+ }
16
+
17
+ QSpinBox::up-button,
18
+ QDoubleSpinBox::up-button {
19
+ background-image: url("@arrow-up-image-icon");
20
+ background-repeat: no-repeat;
21
+ background-position: center;
22
+ width: 15px;
23
+ height: 15px;
24
+ }
25
+
26
+ QSpinBox::up-button:hover,
27
+ QDoubleSpinBox::up-button:hover,
28
+ QSpinBox::down-button:hover,
29
+ QDoubleSpinBox::down-button:hover {
30
+ background-color: @hover-arrow-color;
31
+ border-radius: 2px;
32
+ }
33
+
34
+ QSpinBox::up-button:disabled,
35
+ QDoubleSpinBox::up-button:disabled {
36
+ background-image: url("@arrow-up-disabled-image-icon");
37
+ background-repeat: no-repeat;
38
+ background-position: center;
39
+ background-color: @disabled-background;
40
+ }
41
+
42
+ QSpinBox::down-button,
43
+ QDoubleSpinBox::down-button {
44
+ background-image: url("@arrow-down-image-icon");
45
+ background-repeat: no-repeat;
46
+ background-position: center;
47
+ width: 15px;
48
+ height: 15px;
49
+ }
50
+
51
+ QSpinBox::down-button:disabled,
52
+ QDoubleSpinBox::down-button:disabled {
53
+ background-image: url("@arrow-down-disabled-image-icon");
54
+ background-repeat: no-repeat;
55
+ background-position: center;
56
+ background-color: @disabled-background;
57
+ }
58
+
59
+
60
+ QComboBox::drop-down:button {
61
+ background-image: url("@arrow-down-image-icon");
62
+ background-repeat: no-repeat;
63
+ background-position: center;
64
+ background-color: @input-color;
65
+ border-radius: @border-radius;
66
+ }
67
+
68
+ QComboBox::drop-down:hover {
69
+ background-color: @hover-arrow-color;
70
+ }
71
+
72
+ QComboBox::drop-down:disabled {
73
+ background-color: @disabled-background;
74
+ }
75
+
76
+ QSpinBox,
77
+ QDoubleSpinBox {
78
+ border: 2px solid @background;
79
79
  }
@@ -1,22 +1,22 @@
1
- QFrame[frameShape="0"] {
2
- border: none;
3
- }
4
-
5
- QFrame[frameShape="1"],
6
- QFrame[frameShape="2"] {
7
- border: 1px solid @border-color;
8
- padding: 0;
9
- }
10
-
11
- QWidget QFrame[frameShape="1"],
12
- QWidget QFrame[frameShape="2"] {
13
- border: 1px solid @border-color;
14
- border-radius: @border-radius;
15
- padding: 0;
16
- }
17
-
18
- QFrame::disabled {
19
- background: @background;
20
- }
21
-
22
-
1
+ QFrame[frameShape="0"] {
2
+ border: none;
3
+ }
4
+
5
+ QFrame[frameShape="1"],
6
+ QFrame[frameShape="2"] {
7
+ border: 1px solid @border-color;
8
+ padding: 0;
9
+ }
10
+
11
+ QWidget QFrame[frameShape="1"],
12
+ QWidget QFrame[frameShape="2"] {
13
+ border: 1px solid @border-color;
14
+ border-radius: @border-radius;
15
+ padding: 0;
16
+ }
17
+
18
+ QFrame::disabled {
19
+ background: @background;
20
+ }
21
+
22
+
@@ -1,12 +1,12 @@
1
- QMenuBar {
2
- border: none;
3
- border-bottom: 1px solid @border-color;
4
- }
5
-
6
- QMenuBar::item {
7
- padding: 4px;
8
- }
9
-
10
- QMenuBar::item:selected {
11
- background-color: @background-variant;
12
- }
1
+ QMenuBar {
2
+ border: none;
3
+ border-bottom: 1px solid @border-color;
4
+ }
5
+
6
+ QMenuBar::item {
7
+ padding: 4px;
8
+ }
9
+
10
+ QMenuBar::item:selected {
11
+ background-color: @background-variant;
12
+ }
@@ -1,12 +1,12 @@
1
- QProgressBar {
2
- border-radius: 5px;
3
- text-align: center;
4
- background-color: @background-variant;
5
- }
6
- QProgressBar::chunk {
7
- background-color: @primary;
8
- border-top-right-radius: 3px;
9
- border-top-left-radius: 3px;
10
- border-bottom-right-radius: 3px;
11
- border-bottom-left-radius: 3px;
1
+ QProgressBar {
2
+ border-radius: 5px;
3
+ text-align: center;
4
+ background-color: @background-variant;
5
+ }
6
+ QProgressBar::chunk {
7
+ background-color: @primary;
8
+ border-top-right-radius: 3px;
9
+ border-top-left-radius: 3px;
10
+ border-bottom-right-radius: 3px;
11
+ border-bottom-left-radius: 3px;
12
12
  }
@@ -1,91 +1,91 @@
1
- QPushButton {
2
- color: @primary;
3
- background-color: @background;
4
- border: 1px solid @border-color;
5
- border-radius: 5px;
6
- text-align: center;
7
- padding: 4px 8px;
8
- min-width: 50px;
9
- }
10
-
11
- QPushButton::hover {
12
- background-color: @background-variant;
13
- }
14
-
15
- QPushButton::checked,
16
- QPushButton::pressed {
17
- background-color: @primary-lighter;
18
- color: @primary-darker;
19
- }
20
-
21
- QPushButton::disabled {
22
- background: @disabled-background;
23
- color: @disabled-color;
24
- }
25
-
26
- QPushButton[status=main],
27
- QPushButton::default {
28
- border: 2px solid @primary;
29
- border-radius: @border-radius;
30
- color: @primary;
31
- font-weight: bold;
32
- }
33
-
34
- QPushButton[status=main]::hover,
35
- QPushButton::default:hover {
36
- background-color: @background-variant;
37
- }
38
-
39
- QPushButton[status=main]::checked,
40
- QPushButton[status=main]::pressed,
41
- QPushButton::default:checked,
42
- QPushButton::default:pressed {
43
- background-color: @primary-lighter;
44
- color: @primary-darker;
45
- }
46
-
47
- QPushButton[status=danger] {
48
- border: 2px solid @danger-color;
49
- border-radius: @border-radius;
50
- color: @danger-color;
51
- font-weight: bold;
52
- }
53
-
54
- QPushButton[status=danger]::hover {
55
- background-color: @background-variant;
56
- }
57
-
58
- QPushButton[status=danger]::checked,
59
- QPushButton[status=danger]::pressed {
60
- background-color: @danger-color-lighter;
61
- color: @danger-color-darker;
62
- }
63
-
64
- QPushButton[status=warning] {
65
- border: 2px solid @warning-color;
66
- border-radius: @border-radius;
67
- color: @warning-color;
68
- font-weight: bold;
69
- }
70
-
71
- QPushButton[status=warning]::hover {
72
- background-color: @background-variant;
73
- }
74
-
75
- QPushButton[status=warning]::checked,
76
- QPushButton[status=warning]::pressed {
77
- background-color: @warning-color-lighter;
78
- color: @warning-color-darker;
79
- }
80
-
81
- QPushButton[status=main]::disabled,
82
- QPushButton[status=warning]::disabled,
83
- QPushButton[status=danger]::disabled {
84
- background-color: @disabled-background;
85
- color: @disabled-color;
86
- border: none;
87
- }
88
-
89
- QDialogButtonBox QPushButton {
90
- min-width: 65px;
1
+ QPushButton {
2
+ color: @primary;
3
+ background-color: @background;
4
+ border: 1px solid @border-color;
5
+ border-radius: 5px;
6
+ text-align: center;
7
+ padding: 4px 8px;
8
+ min-width: 50px;
9
+ }
10
+
11
+ QPushButton::hover {
12
+ background-color: @background-variant;
13
+ }
14
+
15
+ QPushButton::checked,
16
+ QPushButton::pressed {
17
+ background-color: @primary-lighter;
18
+ color: @primary-darker;
19
+ }
20
+
21
+ QPushButton::disabled {
22
+ background: @disabled-background;
23
+ color: @disabled-color;
24
+ }
25
+
26
+ QPushButton[status=main],
27
+ QPushButton::default {
28
+ border: 2px solid @primary;
29
+ border-radius: @border-radius;
30
+ color: @primary;
31
+ font-weight: bold;
32
+ }
33
+
34
+ QPushButton[status=main]::hover,
35
+ QPushButton::default:hover {
36
+ background-color: @background-variant;
37
+ }
38
+
39
+ QPushButton[status=main]::checked,
40
+ QPushButton[status=main]::pressed,
41
+ QPushButton::default:checked,
42
+ QPushButton::default:pressed {
43
+ background-color: @primary-lighter;
44
+ color: @primary-darker;
45
+ }
46
+
47
+ QPushButton[status=danger] {
48
+ border: 2px solid @danger-color;
49
+ border-radius: @border-radius;
50
+ color: @danger-color;
51
+ font-weight: bold;
52
+ }
53
+
54
+ QPushButton[status=danger]::hover {
55
+ background-color: @background-variant;
56
+ }
57
+
58
+ QPushButton[status=danger]::checked,
59
+ QPushButton[status=danger]::pressed {
60
+ background-color: @danger-color-lighter;
61
+ color: @danger-color-darker;
62
+ }
63
+
64
+ QPushButton[status=warning] {
65
+ border: 2px solid @warning-color;
66
+ border-radius: @border-radius;
67
+ color: @warning-color;
68
+ font-weight: bold;
69
+ }
70
+
71
+ QPushButton[status=warning]::hover {
72
+ background-color: @background-variant;
73
+ }
74
+
75
+ QPushButton[status=warning]::checked,
76
+ QPushButton[status=warning]::pressed {
77
+ background-color: @warning-color-lighter;
78
+ color: @warning-color-darker;
79
+ }
80
+
81
+ QPushButton[status=main]::disabled,
82
+ QPushButton[status=warning]::disabled,
83
+ QPushButton[status=danger]::disabled {
84
+ background-color: @disabled-background;
85
+ color: @disabled-color;
86
+ border: none;
87
+ }
88
+
89
+ QDialogButtonBox QPushButton {
90
+ min-width: 65px;
91
91
  }
@@ -1,31 +1,31 @@
1
- QRadioButton {
2
- padding: 5px 10px;
3
- }
4
-
5
- QRadioButton::indicator {
6
- width: 10px;
7
- height: 10px;
8
- border-radius: 6px;
9
- border: 2px solid @primary;
10
- background-color: @background;
11
- }
12
-
13
- QRadioButton::indicator:checked {
14
- background-color: @primary;
15
- border: 2px solid @primary;
16
- }
17
-
18
- QRadioButton::indicator:hover {
19
- background-color: @primary;
20
- }
21
-
22
- QRadioButton::indicator:disabled {
23
- background: @disabled-background;
24
- border-color: @disabled-background;
25
- }
26
-
27
- QRadioButton::disabled {
28
- background-color: @background;
29
- color: @disabled-color;
30
-
1
+ QRadioButton {
2
+ padding: 5px 10px;
3
+ }
4
+
5
+ QRadioButton::indicator {
6
+ width: 10px;
7
+ height: 10px;
8
+ border-radius: 6px;
9
+ border: 2px solid @primary;
10
+ background-color: @background;
11
+ }
12
+
13
+ QRadioButton::indicator:checked {
14
+ background-color: @primary;
15
+ border: 2px solid @primary;
16
+ }
17
+
18
+ QRadioButton::indicator:hover {
19
+ background-color: @primary;
20
+ }
21
+
22
+ QRadioButton::indicator:disabled {
23
+ background: @disabled-background;
24
+ border-color: @disabled-background;
25
+ }
26
+
27
+ QRadioButton::disabled {
28
+ background-color: @background;
29
+ color: @disabled-color;
30
+
31
31
  }
@@ -1,30 +1,30 @@
1
- QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical,
2
- QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
3
- background: none;
4
- background-color: @background-variant;
5
- border: 2px solid @border-color;
6
- }
7
-
8
- QScrollBar::up-arrow {
9
- background-image: url("@arrow-up-image-icon");
10
- background-repeat: no-repeat;
11
- background-position: center;
12
- }
13
-
14
- QScrollBar::down-arrow {
15
- background-image: url("@arrow-down-image-icon");
16
- background-repeat: no-repeat;
17
- background-position: center;
18
- }
19
-
20
- QScrollBar::left-arrow {
21
- background-image: url("@arrow-left-image-icon");
22
- background-repeat: no-repeat;
23
- background-position: center;
24
- }
25
-
26
- QScrollBar::right-arrow {
27
- background-image: url("@arrow-right-image-icon");
28
- background-repeat: no-repeat;
29
- background-position: center;
1
+ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical,
2
+ QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
3
+ background: none;
4
+ background-color: @background-variant;
5
+ border: 2px solid @border-color;
6
+ }
7
+
8
+ QScrollBar::up-arrow {
9
+ background-image: url("@arrow-up-image-icon");
10
+ background-repeat: no-repeat;
11
+ background-position: center;
12
+ }
13
+
14
+ QScrollBar::down-arrow {
15
+ background-image: url("@arrow-down-image-icon");
16
+ background-repeat: no-repeat;
17
+ background-position: center;
18
+ }
19
+
20
+ QScrollBar::left-arrow {
21
+ background-image: url("@arrow-left-image-icon");
22
+ background-repeat: no-repeat;
23
+ background-position: center;
24
+ }
25
+
26
+ QScrollBar::right-arrow {
27
+ background-image: url("@arrow-right-image-icon");
28
+ background-repeat: no-repeat;
29
+ background-position: center;
30
30
  }