mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-04 21:08:04 +03:00
52 lines
1.5 KiB
Python
52 lines
1.5 KiB
Python
# Copyright (C) 2024–present Loren Eteval & contributors <loren.eteval@proton.me>
|
||
#
|
||
# This file is part of Furious.
|
||
#
|
||
# This program is free software: you can redistribute it and/or modify
|
||
# it under the terms of the GNU General Public License as published by
|
||
# the Free Software Foundation, either version 3 of the License, or
|
||
# (at your option) any later version.
|
||
#
|
||
# This program is distributed in the hope that it will be useful,
|
||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
# GNU General Public License for more details.
|
||
#
|
||
# You should have received a copy of the GNU General Public License
|
||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||
|
||
"""Compose private component QSS behind :class:`AppStyleSheet`."""
|
||
|
||
from .Base import baseStyleSheet
|
||
from .Controls import controlStyleSheet
|
||
from .DataViews import dataViewStyleSheet
|
||
|
||
|
||
def composeStyleSheet(
|
||
palette,
|
||
progressBarStyleSheet,
|
||
caretDownIcon,
|
||
caretUpIcon,
|
||
caretRightIcon,
|
||
checkIcon,
|
||
clearIcon,
|
||
):
|
||
"""Return the complete stylesheet without exposing component fragments."""
|
||
return '\n\n'.join(
|
||
(
|
||
baseStyleSheet(palette),
|
||
controlStyleSheet(
|
||
palette,
|
||
caretDownIcon,
|
||
caretUpIcon,
|
||
caretRightIcon,
|
||
checkIcon,
|
||
clearIcon,
|
||
),
|
||
dataViewStyleSheet(palette, progressBarStyleSheet, checkIcon),
|
||
)
|
||
)
|
||
|
||
|
||
__all__ = []
|