# Path: alignak_app/utils/config.py
# class Settings(object):
#     def __init__(self):
#     def init_config(self):
#     def get_config(self, section, option, boolean=False):
#     def set_config(self, section, option, new_value):
#     def get_image(self, name):
#     def init_css(self):
# def open_url(endpoint='login'):  # pragma: no cover
# def get_url_endpoint_from_icon_name(icon_name):


from PyQt5.Qt import QPixmap
from alignak_app.utils.config import settings
        elif item_type == 'service':
            icon_type = 'services_ok'
        else:
            icon_type = 'problem_ok'

    icon = QPixmap(settings.get_image(icon_type))

    return icon


def get_icon_pixmap(value, icons):
    """
    Return corresponding icon name in icons

    :param value: value of attribute
    :type value: bool
    :param icons: pair of icons
    :type icons: list
    :return: pixmap icon corresponding to value
    :rtype: QPixmap
    """

    if not isinstance(value, bool) or not value:
        value = False

    available_icons = {
        True: icons[0],
        False: icons[1]
    }


# Path: alignak_app/utils/config.py
# class Settings(object):
#     def __init__(self):
#     def init_config(self):
#     def get_config(self, section, option, boolean=False):
#     def set_config(self, section, option, new_value):
#     def get_image(self, name):
#     def init_css(self):
# def open_url(endpoint='login'):  # pragma: no cover
# def get_url_endpoint_from_icon_name(icon_name):


# Path: alignak_app/qobjects/common/labels.py
from PyQt5.Qt import QPixmap
from alignak_app.utils.config import settings

        elif item_type == 'service':
            icon_type = 'services_ok'
        else:
            icon_type = 'problem_ok'

    icon = QPixmap(settings.get_image(icon_type))

    return icon


def get_icon_pixmap(value, icons):
    """
    Return corresponding icon name in icons

    :param value: value of attribute
    :type value: bool
    :param icons: pair of icons
    :type icons: list
    :return: pixmap icon corresponding to value
    :rtype: QPixmap
    """

    if not isinstance(value, bool) or not value:
        value = False

    available_icons = {
        True: icons[0],
        False: icons[1]
    }


    return QPixmap(settings.get_image(available_icons[value]))