[style] add styles factory scripts
This commit is contained in:
parent
4cf278f1a1
commit
104be6e15f
18
fixtracks/utils/styles.py
Normal file
18
fixtracks/utils/styles.py
Normal file
@ -0,0 +1,18 @@
|
||||
def pushBtnStyle(color):
|
||||
style = f"""
|
||||
QPushButton {{
|
||||
background-color: {color};
|
||||
border-style: outset;
|
||||
border-width: 1px;
|
||||
border-radius: 5px;
|
||||
border-color: white;
|
||||
font: bold 10px;
|
||||
min-width: 10em;
|
||||
padding: 3px;
|
||||
}}
|
||||
QPushButton:pressed {{
|
||||
background-color: rgb(220, 220, 220);
|
||||
border-style: inset;
|
||||
}}
|
||||
"""
|
||||
return style
|
Loading…
Reference in New Issue
Block a user