LCOV - code coverage report
Current view: top level - src/pairinteraction_gui/theme - __init__.py (source / functions) Hit Total Coverage
Test: coverage.info Lines: 7 7 100.0 %
Date: 2025-06-06 09:09:03 Functions: 1 2 50.0 %

          Line data    Source code
       1             : # SPDX-FileCopyrightText: 2025 Pairinteraction Developers
       2             : # SPDX-License-Identifier: LGPL-3.0-or-later
       3             : 
       4             : 
       5           1 : def _load_theme_file(file_name: str) -> str:
       6             :     """Load a theme file from the current directory."""
       7           1 :     from pathlib import Path
       8             : 
       9           1 :     return (Path(__file__).parent / file_name).read_text()
      10             : 
      11             : 
      12           1 : main_theme = _load_theme_file("main.qss")
      13           1 : label_theme = _load_theme_file("label.qss")
      14           1 : label_error_theme = _load_theme_file("label_error.qss")
      15           1 : plot_widget_theme = _load_theme_file("plot_widget.qss")

Generated by: LCOV version 1.16