From 104be6e15fa9dd0f1db1573bbddc61d8460469af Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Fri, 21 Feb 2025 08:01:09 +0100 Subject: [PATCH] [style] add styles factory scripts --- fixtracks/utils/styles.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 fixtracks/utils/styles.py diff --git a/fixtracks/utils/styles.py b/fixtracks/utils/styles.py new file mode 100644 index 0000000..8f10439 --- /dev/null +++ b/fixtracks/utils/styles.py @@ -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 \ No newline at end of file