feat(modules): extract all ui components into independend modules
This commit is contained in:
parent
a436f766cb
commit
56a447094a
14 changed files with 274 additions and 200 deletions
40
window/application_in_window_current.sh
Normal file
40
window/application_in_window_current.sh
Normal file
|
@ -0,0 +1,40 @@
|
|||
show_application_in_window_current() {
|
||||
if [[ $window_color_fill == "number" ]]
|
||||
then
|
||||
local show_icon="#[fg=$thm_bg,bg=$thm_orange]#I"
|
||||
local show_middle_separator="#[fg=$thm_orange,bg=$thm_bg,nobold,nounderscore,noitalics]$window_middle_separator"
|
||||
local show_text="#[fg=$thm_fg,bg=$thm_bg]#W"
|
||||
|
||||
if [[ $window_icon_position == "right" ]]
|
||||
then
|
||||
local show_left_separator="#[fg=$thm_bg,bg=$thm_bg,nobold,nounderscore,noitalics]$window_left_separator"
|
||||
local show_right_separator="#[fg=$thm_orange,bg=$thm_bg]$window_right_separator"
|
||||
|
||||
echo "$show_left_separator$show_text$show_middle_separator$show_icon$show_right_separator"
|
||||
|
||||
else
|
||||
local show_left_separator="#[fg=$thm_orange,bg=$thm_bg,nobold,nounderscore,noitalics]$window_left_separator"
|
||||
local show_right_separator="#[fg=$thm_bg,bg=$thm_bg]$window_right_separator"
|
||||
|
||||
echo "$show_left_separator$show_icon$show_middle_separator$show_text$show_right_separator"
|
||||
|
||||
fi
|
||||
|
||||
else
|
||||
local show_left_separator="#[fg=$thm_orange,bg=$thm_bg,nobold,nounderscore,noitalics]$window_left_separator"
|
||||
local show_icon="#[fg=$thm_bg,bg=$thm_orange]#I"
|
||||
local show_middle_separator="#[fg=$thm_bg,bg=$thm_orange,nobold,nounderscore,noitalics]$window_middle_separator"
|
||||
local show_text="#[fg=$thm_bg,bg=$thm_orange]#{b:pane_current_path}"
|
||||
local show_right_separator="#[fg=$thm_orange,bg=$thm_bg]$window_right_separator"
|
||||
|
||||
if [[ $window_icon_position == "right" ]]
|
||||
then
|
||||
echo "$show_left_separator$show_text$show_middle_separator$show_icon$show_right_separator"
|
||||
|
||||
else
|
||||
echo "$show_left_separator$show_icon$show_middle_separator$show_text$show_right_separator"
|
||||
|
||||
fi
|
||||
|
||||
fi
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue