
# Clear
XTW_LIST=""

alias xrc:theme:widget=___x_cmd_theme_widget_source

___x_cmd_theme_widget_source(){
    while [ $# -gt 0 ]; do
        . "$___X_CMD_ROOT_MOD/theme/lib/widget/$1" || return;
        shift;
    done
}

alias theme:widget:add=___x_cmd_theme_widget_add

___x_cmd_theme_widget_add(){
    local w="$1"
    local data="${XTW_LIST} "
    if [ "${data#* "$w" }" = "$data" ]; then
        XTW_LIST="$XTW_LIST $w"
    fi
}
