# shellcheck shell=dash disable=1090
___x_cmd_theme_transient_loadtheme(){
    . "$___X_CMD_ROOT_MOD/theme/lib/theme_for_transient/$1"
}

alias theme:transient:load='___x_cmd_theme_transient_loadtheme'

# Notice, it could be used only in
___x_cmd_theme_transient_ui_draw_seperator(){
    ___x_cmd __ttyupdate
    local _i=1; local sep="${sep:--}"; local str=
    local maxw="${COLUMNS:-20}"
    while [ "$_i" -le "$maxw" ];do
        str="${str}${sep}"
        _i="$((_i+1))"
    done
    printf "%s\n" "$str"
}

___x_cmd_theme_transient_is_detailed_mode(){
    [ -n "$___X_CMD_THEME_TRANSIENT_DETAILMODE" ]
}

alias theme:transient:detailmode='___x_cmd_theme_transient_is_detailed_mode'
