-
Notifications
You must be signed in to change notification settings - Fork 0
/
colours.py
102 lines (86 loc) · 2.72 KB
/
colours.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
from PyQt6.QtGui import QColor, QPen, QBrush
from PyQt6.QtCore import Qt
_black = QColor(0, 0, 0)
_blue = QColor(0, 0, 255)
_green = QColor(0, 255, 0)
_yellow = QColor(255, 255, 0)
_red = QColor(255, 0, 0)
_white = QColor(255, 255, 255)
_brown = QColor(181, 101, 29)
_neutral = QColor(40, 220, 40)
_grey = QColor(200, 200, 200)
_scanner_yellow = QColor(236, 175, 0) # QColor(255, 255, 0, 120)
_scanner_red = QColor(220, 104, 0) # QColor(255, 120, 0, 220)
_label_white = QColor(255, 255, 255, 120)
_fleet_blue = QColor(40, 40, 255)
_highlight_blue = QColor(93, 226, 231)
_light_blue = QColor(0, 100, 255)
_light_red = QColor(255, 100, 100)
_dark_green = QColor(0, 100, 0)
_dark_yellow = QColor(100, 100, 0)
_dark_brown = QColor(128, 48, 0)
_minefield_red = QColor(255, 0, 0)
_minefield_yellow = QColor(255, 255, 0, 128)
_minefield_blue = QColor(0, 0, 255)
_background_blue = QColor(200, 200, 255)
_background_red = QColor(255, 200, 200)
_background_green = QColor(200, 255, 200)
_background_yellow = QColor(255, 255, 200)
class Pen:
noshow = QPen(Qt.PenStyle.NoPen)
blue_p = QPen(_background_blue)
red_p = QPen(_background_red)
yellow_p = QPen(_background_yellow)
green_p = QPen(_background_green)
white_l = QPen(_label_white)
red_m = QPen(_minefield_red)
red_s = QPen(_scanner_red)
yellow_s = QPen(_scanner_yellow)
white = QPen(_white)
black = QPen(_black)
blue = QPen(_blue)
blue_m = QPen(_minefield_blue)
blue_l = QPen(_light_blue)
blue_h = QPen(_highlight_blue)
green = QPen(_green)
green_d = QPen(_dark_green)
yellow = QPen(_yellow)
yellow_m = QPen(_minefield_yellow)
yellow_d = QPen(_dark_yellow)
red = QPen(_red)
red_l = QPen(_light_red)
brown = QPen(_dark_brown)
neutral = QPen(_neutral)
white_2 = QPen(_white)
white_08 = QPen(_white)
brown.setWidthF(2.0)
white_2.setWidthF(2.0)
white_08.setWidthF(0.8)
red_m.setWidthF(0.4)
blue_m.setWidthF(0.4)
yellow_m.setWidthF(0.4)
black_2 = QPen(_black)
black_2.setWidthF(2.0)
class Brush:
white_l = QBrush(_label_white)
white = QBrush(_white)
black = QBrush(_black)
blue = QBrush(_blue)
grey = QBrush(_grey)
blue_m = QBrush(_minefield_blue, Qt.BrushStyle.BDiagPattern)
blue_l = QBrush(_light_blue)
red_l = QBrush(_light_red)
green = QBrush(_green)
yellow = QBrush(_yellow)
red = QBrush(_red)
red_m = QBrush(_minefield_red, Qt.BrushStyle.FDiagPattern)
brown = QBrush(_brown)
neutral = QBrush(_neutral)
red_s = QBrush(_scanner_red)
yellow_s = QBrush(_scanner_yellow)
yellow_m = QBrush(_minefield_yellow, Qt.BrushStyle.Dense6Pattern)
blue_p = QBrush(_background_blue)
red_p = QBrush(_background_red)
yellow_p = QBrush(_background_yellow)
green_p = QBrush(_background_green)
blue_f = QBrush(_fleet_blue)