import carb.tokens
from pathlib import Path

ICON_PATH = Path(carb.tokens.get_tokens_interface().resolve("${omni.kit.viewport.menubar.render}")).joinpath("data").joinpath("icons").absolute()
ICON_CORE_PATH = Path(carb.tokens.get_tokens_interface().resolve("${omni.kit.viewport.menubar.core}")).joinpath("data").joinpath("icons").absolute()

UI_STYLE = {
    "Menu.Item.Icon::Renderer": {
        "image_url": f"{ICON_PATH}/viewport_renderer.svg"
    },
    "Menu.Item.Button": {
        "background_color": 0,
        "margin": 0,
        "padding": 0,
    },
    "Menu.Item.Button.Image::OptionBox": {
        "image_url": f"{ICON_CORE_PATH}/settings_submenu.svg"
    },
}
