from pathlib import Path

from omni import ui
from omni.ui import color as cl

CURRENT_PATH = Path(__file__).parent
ICON_PATH = CURRENT_PATH.parent.parent.parent.parent.joinpath("data")

ABOUT_STYLE = {
    "Window": {"background_color": cl("#1F2123")},
    "Line": {"color": 0xFF353332, "border_width": 1.5},
    "ScrollingFrame": {"background_color": cl.transparent, "margin_width": 1, "margin_height": 2},

    "About.Background": {"image_url": f"{ICON_PATH}/about_backgroud.png"},
    "About.Background.Fill": {"background_color": cl("#131415")},
    "About.Logo": {"image_url": f"{ICON_PATH}/about_logo.png", "padding": 0, "margin": 0},
    "Logo.Frame": {"background_color": cl("#202424"), "padding": 0, "margin": 0},
    "Logo.Separator": {"color": cl("#7BB01E"), "border_width": 1.5},
    "Text.App": {"font_size": 18, "margin_width": 10, "margin_height": 2},
    "Text.Plugin": {"font_size": 14, "margin_width": 10, "margin_height": 2},
    "Text.Version": {"font_size": 18, "margin_width": 10, "margin_height": 2},
    "Text.Title": {"font_size": 16, "margin_width": 10},
}