Files
poa-pds/styles.py
2025-08-06 12:24:45 +05:30

16 lines
420 B
Python

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 ""