After Graduate Update
This commit is contained in:
parent
b92a91ab37
commit
c6917dd85e
69 changed files with 7540 additions and 0 deletions
35
robbery/master_pol-module_1_2/app/res/styles.py
Normal file
35
robbery/master_pol-module_1_2/app/res/styles.py
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
from string import Template
|
||||
from res.colors import MAIN_COLOR, SECONDARY_COLOR, ACCENT_COLOR
|
||||
from res.fonts import MAIN_FONT
|
||||
|
||||
styles_template = Template(
|
||||
"""
|
||||
QWidget {
|
||||
font-family: {MAIN_FONT};
|
||||
background-color: {MAIN_COLOR}
|
||||
color: {SECONDARY_COLOR};
|
||||
}
|
||||
QPushButton {
|
||||
background-color: {ACCENT_COLOR};
|
||||
border: none;
|
||||
padding: 8px 16px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
QPushButton:hover {
|
||||
background-color: {SECONDARY_COLOR};
|
||||
}
|
||||
QLineEdit {
|
||||
padding: 6px;
|
||||
border: 1px solid {ACCENT_COLOR};
|
||||
border-radius: 4px;
|
||||
background-color: white;
|
||||
}
|
||||
"""
|
||||
)
|
||||
|
||||
styles = styles_template.substitute(
|
||||
MAIN_FONT=MAIN_FONT,
|
||||
MAIN_COLOR=MAIN_COLOR,
|
||||
SECONDARY_COLOR=SECONDARY_COLOR,
|
||||
ACCENT_COLOR=ACCENT_COLOR,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue