summaryrefslogtreecommitdiff
path: root/stfl/filebrowser.stfl
blob: 7179c7cb560ac0a32a2d3492c57e38be3e363d6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
vbox
  @style_normal[background]:
  @info#style_normal[info]:bg=blue,fg=yellow,attr=bold
  @info#style_key_normal[hint-key]:bg=blue,fg=yellow,attr=bold
  @info#style_comma_normal[hint-keys-delimiter]:bg=blue,fg=white
  @info#style_colon_normal[hint-separator]:bg=blue,fg=white,attr=bold
  @info#style_desc_normal[hint-description]:bg=blue,fg=white
  @title#style_normal[title]:bg=blue,fg=yellow,attr=bold
  @bind_up[bind_up]:
  @bind_down[bind_down]:
  @bind_page_up[bind_page_up]:
  @bind_page_down[bind_page_down]:
  @bind_home[bind_home]:
  @bind_end[bind_end]:
  @on_TAB:"TAB"
  label#title[title]
    text[head]:"File Browser"
    .expand:h
    .display[showtitle]:1
  list[files]
    * this height is only a hack to expand the list correctly (bug?)
    .expand:vh .height:65535
    richtext:1
    style_normal[listnormal]:
    style_focus[listfocus]:fg=yellow,bg=blue,attr=bold
    pos[files_pos]:0
    offset[files_offset]:0
  hbox[hints]
    .expand:0 .height:1
    label
      .expand:0
      text[fileprompt]:"File: "
    !input[filename]
      .expand:h
      text[filenametext]:""
      pos[filenametext_pos]:0
  vbox
    .expand:0
    .display[showhint]:1
    label#info
      text[help]:""
      richtext:1
      .expand:h
      .height:1
  hbox[lastline]
    .expand:0
    label[msglabel]
      text[msg]:""
      .expand:h
      .display[show_msg]:1
    label[qna-label]
      .expand:0
      text[qna_prompt]:""
      .display[show_qna_label]:0
    input[qnainput]
      modal:1
      .expand:h
      @bind_home:**
      @bind_end:**
      text[qna_value]:""
      pos[qna_value_pos]:0
      .display[show_qna_input]:0