| 1 | _item_splitter: &menu_item |
| 2 | type: Splitter |
| 3 | styles: |
| 4 | fill: "[@237]{item}" |
| 5 | |
| 6 | _detail: &detail_criteria |
| 7 | - Label: |
| 8 | value: "[test-background bold 210][][/fg grey] Criteria" |
| 9 | parent_align: 0 |
| 10 | |
| 11 | - Label: {} |
| 12 | |
| 13 | - Label: |
| 14 | value: "[test-background 249 italic]: Details" |
| 15 | parent_align: 0 |
| 16 | |
| 17 | - Splitter: |
| 18 | <<: *menu_item |
| 19 | chars: |
| 20 | separator: " - " |
| 21 | widgets: |
| 22 | - Label: |
| 23 | value: " [208]~[/fg] in progress" |
| 24 | parent_align: 0 |
| 25 | - Label: |
| 26 | value: 69% |
| 27 | |
| 28 | - Splitter: |
| 29 | <<: *menu_item |
| 30 | chars: |
| 31 | separator: " - " |
| 32 | widgets: |
| 33 | - Label: |
| 34 | value: " [157]/[/fg] success!" |
| 35 | parent_align: 0 |
| 36 | - Label: |
| 37 | value: 100% |
| 38 | |
| 39 | - Splitter: |
| 40 | <<: *menu_item |
| 41 | chars: |
| 42 | separator: " - " |
| 43 | widgets: |
| 44 | - Label: |
| 45 | value: " [210]X[/fg] failure" |
| 46 | parent_align: 0 |
| 47 | - Label: |
| 48 | value: 11% |
| 49 | |
| 50 | _condition: &condition_criteria |
| 51 | - Label: |
| 52 | <<: *menu_item |
| 53 | value: "[test-background 249 italic]: Conditions" |
| 54 | parent_align: 0 |
| 55 | |
| 56 | - Splitter: |
| 57 | <<: *menu_item |
| 58 | chars: |
| 59 | separator: " > " |
| 60 | widgets: |
| 61 | - Label: |
| 62 | value: " [157]/[/fg] foo" |
| 63 | parent_align: 0 |
| 64 | - Label: |
| 65 | value: bar |
| 66 | |
| 67 | - Splitter: |
| 68 | <<: *menu_item |
| 69 | id: "splitter" |
| 70 | chars: |
| 71 | separator: " = " |
| 72 | widgets: |
| 73 | - Label: |
| 74 | value: " [210]X[/fg] foobar" |
| 75 | parent_align: 0 |
| 76 | - Label: |
| 77 | value: "100" |
| 78 | |
| 79 | markup: |
| 80 | test-background: "@234 grey" |
| 81 | |
| 82 | config: |
| 83 | Splitter: |
| 84 | styles: |
| 85 | separator: &fill_style "[test-background]{item}" |
| 86 | |
| 87 | Container: &container_style |
| 88 | chars: |
| 89 | border: [" ", " ", " ", " "] |
| 90 | styles: |
| 91 | fill: *fill_style |
| 92 | border: *fill_style |
| 93 | corner: *fill_style |
| 94 | |
| 95 | Window: *container_style |
| 96 | |
| 97 | widgets: |
| 98 | CriteriaWindow: |
| 99 | type: Window |
| 100 | pos: [30, 10] |
| 101 | widgets__detail: *detail_criteria |
| 102 | widgets__padding: [Label: {}] |
| 103 | widgets__condition: *condition_criteria |