# Copyright (c) 2021-2022, NVIDIA CORPORATION.  All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto.  Any use, reproduction, disclosure or
# distribution of this software and related documentation without an express
# license agreement from NVIDIA CORPORATION is strictly prohibited.
#
__all__ = ["ViewportMenuSeparator"]

from .viewport_menu_item import ViewportMenuItem
from typing import Dict
import omni.ui as ui


class ViewportMenuSeparator(ViewportMenuItem):
    """A simple separator"""

    def build_fn(self, factory: Dict):
        ui.Separator(
            delegate=ui.MenuDelegate(
                on_build_item=lambda _: ui.Line(
                    height=0, alignment=ui.Alignment.V_CENTER, style_type_name_override="Menu.Separator"
                )
            )
        )
