[style] add styles factory scripts

This commit is contained in:
Jan Grewe 2025-02-21 08:01:09 +01:00
parent 4cf278f1a1
commit 104be6e15f

18
fixtracks/utils/styles.py Normal file
View 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