<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Theme Include Definitions for Jet Guide
    These includes are applied based on the selected theme.
    Colors are set dynamically via Window Properties from themes.py
-->

<includes>
    <!-- Dark Theme Colors (Default) -->
    <include name="ThemeColors_Dark">
        <param name="primary">FFFFD700</param>
        <param name="secondary">FFFFFFFF</param>
        <param name="background">CC000000</param>
        <param name="text">FFFFFFFF</param>
        <param name="focused">FFFFD700</param>
        <param name="header_bg">FF1A1A1A</param>
        <param name="button_bg">FF2D2D2D</param>
        <param name="button_focus">FF404040</param>
        <param name="panel_bg">CC000000</param>
        <param name="border">FF404040</param>
        <param name="highlight">FFFFD700</param>
        <param name="disabled">FF808080</param>
        <param name="success">FF00FF00</param>
        <param name="error">FFFF0000</param>
        <param name="info">FF00BFFF</param>
    </include>

    <!-- Light Theme Colors -->
    <include name="ThemeColors_Light">
        <param name="primary">FF0066CC</param>
        <param name="secondary">FF333333</param>
        <param name="background">FFF5F5F5</param>
        <param name="text">FF000000</param>
        <param name="focused">FF0066CC</param>
        <param name="header_bg">FFE0E0E0</param>
        <param name="button_bg">FFFFFFFF</param>
        <param name="button_focus">FFE8E8E8</param>
        <param name="panel_bg">FFFFFFFF</param>
        <param name="border">FFCCCCCC</param>
        <param name="highlight">FF0066CC</param>
        <param name="disabled">FF999999</param>
        <param name="success">FF008000</param>
        <param name="error">FFCC0000</param>
        <param name="info">FF0066CC</param>
    </include>

    <!-- Dynamic Theme Colors (from Window Properties) -->
    <include name="ThemeColors_Dynamic">
        <!-- These will be populated from window properties set by themes.py -->
        <param name="primary">$INFO[Window.Property(theme_primary)]</param>
        <param name="secondary">$INFO[Window.Property(theme_secondary)]</param>
        <param name="background">$INFO[Window.Property(theme_background)]</param>
        <param name="text">$INFO[Window.Property(theme_text)]</param>
        <param name="focused">$INFO[Window.Property(theme_focused)]</param>
        <param name="header_bg">$INFO[Window.Property(theme_header_bg)]</param>
        <param name="button_bg">$INFO[Window.Property(theme_button_bg)]</param>
        <param name="button_focus">$INFO[Window.Property(theme_button_focus)]</param>
        <param name="panel_bg">$INFO[Window.Property(theme_panel_bg)]</param>
        <param name="border">$INFO[Window.Property(theme_border)]</param>
        <param name="highlight">$INFO[Window.Property(theme_highlight)]</param>
        <param name="disabled">$INFO[Window.Property(theme_disabled)]</param>
        <param name="success">$INFO[Window.Property(theme_success)]</param>
        <param name="error">$INFO[Window.Property(theme_error)]</param>
        <param name="info">$INFO[Window.Property(theme_info)]</param>
    </include>

    <!-- Default fallback colors (Dark theme) -->
    <include name="ThemeColors_Default">
        <param name="primary">FFFFD700</param>
        <param name="secondary">FFFFFFFF</param>
        <param name="background">CC000000</param>
        <param name="text">FFFFFFFF</param>
        <param name="focused">FFFFD700</param>
        <param name="header_bg">FF1A1A1A</param>
        <param name="button_bg">FF404040</param>
        <param name="button_focus">FF404040</param>
        <param name="panel_bg">CC000000</param>
        <param name="border">FF404040</param>
        <param name="highlight">FFFFD700</param>
        <param name="disabled">FF808080</param>
        <param name="success">FF00FF00</param>
        <param name="error">FFFF0000</param>
        <param name="info">FF00BFFF</param>
    </include>

    <!-- Common button styles using dynamic properties -->
    <include name="ButtonFocusTexture">
        <texturefocus colordiffuse="$INFO[Window.Property(theme_focused)]">special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/testb2.PNG</texturefocus>
        <texturenofocus colordiffuse="$INFO[Window.Property(theme_button_bg)]">special://home/addons/plugin.video.jet_guide/resources/skins/default/720p/media/testb2.PNG</texturenofocus>
    </include>

    <include name="HeaderBackground">
        <colordiffuse>$INFO[Window.Property(theme_header_bg)]</colordiffuse>
    </include>

    <include name="PanelBackground">
        <colordiffuse>$INFO[Window.Property(theme_panel_bg)]</colordiffuse>
    </include>

    <include name="TextColor">
        <textcolor>$INFO[Window.Property(theme_text)]</textcolor>
    </include>

    <include name="FocusedTextColor">
        <focusedcolor>$INFO[Window.Property(theme_focused)]</focusedcolor>
    </include>

    <include name="HighlightColor">
        <highlightcolor>$INFO[Window.Property(theme_highlight)]</highlightcolor>
    </include>

</includes>
