initial commit
This commit is contained in:
15
styles.py
Normal file
15
styles.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import os
|
||||
|
||||
def load_login_qss():
|
||||
"""
|
||||
Load and return the contents of 'login.qss',
|
||||
located in the same directory as this script.
|
||||
"""
|
||||
base = os.path.dirname(os.path.abspath(__file__))
|
||||
path = os.path.join(base, "login.qss")
|
||||
try:
|
||||
with open(path, encoding="utf-8") as f:
|
||||
return f.read()
|
||||
except OSError as e:
|
||||
print(f"Error loading login.qss: {e}")
|
||||
return ""
|
||||
Reference in New Issue
Block a user