-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutil.py
More file actions
80 lines (70 loc) · 2.12 KB
/
util.py
File metadata and controls
80 lines (70 loc) · 2.12 KB
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
from dataclasses import dataclass
@dataclass
class ButtonStyles:
MenuBtn = """QPushButton {
color:#FFF;
border: 1px solid orange;
padding: 3px 8px;
border-radius: 10px;
font-weight: 700;
font: 14pt "PhrasticMedium";
}
QPushButton::Hover{
color: orange;
font-weight: 700;
}
QPushButton::pressed{
border: 1.4px solid orange;
border-radius: 15px;
background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(255, 170, 0, 180), stop:0.994318 rgba(148, 49, 0, 180));
}"""
GameBtnNormal = """QPushButton{
border: 1px solid gray;
border-radius: 37px;
font-weight: bold;
color:rgb(255, 85, 0);
font: 32pt "Street Writer (noah)";
background-color: qlineargradient(spread:pad, x1:0.5175, y1:0.517, x2:0.983, y2:0.965909, stop:0.0738636 rgba(0, 0, 0, 226), stop:0.664773 rgba(33, 33, 33, 222), stop:1 rgba(57, 57, 57, 222));
}
QPushButton::Hover{
color:#FFF;
font-size: 56px;
border: 2px solid orange;
background-color: qlineargradient(spread:reflect, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(255, 170, 0, 160), stop:0.994318 rgba(148, 49, 0, 160));
}
QPushButton::Disabled{
background-color: rgba(67, 67, 67, 75);
color:black;
}
QPushButton:Pressed{
border-radius:37px;
}
"""
TetrisLabel = """QLabel{
font: 18px "PhrasticMedium";
color: rgba(225, 150, 0, 255);
}"""
LineEdit ="""QLineEdit{
font: 16pt "PhrasticMedium";
border-radius: 8px;
border:1px solid orange;
color: rgba(225, 150, 0, 230);
padding:2px;
text-align:center;
background-color: qlineargradient(spread:pad, x1:0.5175, y1:0.517, x2:0.983, y2:0.965909, stop:0.0738636 rgba(0, 0, 0, 226), stop:0.664773 rgba(33, 33, 33, 222), stop:1 rgba(57, 57, 57, 222));
}"""
ComboBox = """QComboBox{
font: 16pt "PhrasticMedium";
color: rgba(225, 150, 0, 230);
border:1px solid orange;
background-color: qlineargradient(spread:pad, x1:0.5175, y1:0.517, x2:0.983, y2:0.965909, stop:0.0738636 rgba(0, 0, 0, 226), stop:0.664773 rgba(33, 33, 33, 222), stop:1 rgba(57, 57, 57, 222));
border-radius: 8px;
padding: 2px;
padding-right:2px;
}
"""
LCDTetris = """QLCDNumber{
color: rgb(225, 150, 0);
border: 1px solid orange;
border-radius: 15px;
}"""