| 1 |
Config( |
| 2 |
ui: Ui ( |
| 3 |
layout: ( |
| 4 |
direction: Vertical, |
| 5 |
panels: [ |
| 6 |
(kind: KnownNetworks, constraint: Percentage(50)), |
| 7 |
(kind: AvailableNetworks, constraint: Percentage(50)), |
| 8 |
(kind: Devices, constraint: Min(5)), |
| 9 |
(kind: Help, constraint: Length(1)), |
| 10 |
], |
| 11 |
), |
| 12 |
|
| 13 |
|
| 14 |
known_networks: TableConfig ( |
| 15 |
title: " Known Networks ", |
| 16 |
header: Header ( |
| 17 |
columns: [ |
| 18 |
( title: "Name", value: Name, constraint: Percentage(40) ), |
| 19 |
( title: "Security", value: Security, constraint: Percentage(20) ), |
| 20 |
( title: "Signal", value: Signal, constraint: Percentage(20) ), |
| 21 |
], |
| 22 |
style_active: StyleConfig ( |
| 23 |
fg: Some("yellow"), |
| 24 |
bold: true |
| 25 |
), |
| 26 |
), |
| 27 |
border: Border ( |
| 28 |
style_active: StyleConfig( |
| 29 |
fg: Some("green"), |
| 30 |
bold: true |
| 31 |
), |
| 32 |
type_active: Thick, |
| 33 |
), |
| 34 |
margin: Margin (top: 1, left: 1, right: 1) |
| 35 |
), |
| 36 |
|
| 37 |
available_networks: TableConfig ( |
| 38 |
title: " Available Networks ", |
| 39 |
header: Header ( |
| 40 |
columns: [ |
| 41 |
( title: "Name", value: Name, constraint: Percentage(40) ), |
| 42 |
( title: "Security", value: Security, constraint: Percentage(20) ), |
| 43 |
( title: "Signal", value: Signal, constraint: Percentage(20) ), |
| 44 |
], |
| 45 |
style_active: StyleConfig ( |
| 46 |
fg: Some("yellow"), |
| 47 |
bold: true |
| 48 |
), |
| 49 |
), |
| 50 |
border: Border ( |
| 51 |
style_active: StyleConfig( |
| 52 |
fg: Some("green"), |
| 53 |
bold: true |
| 54 |
), |
| 55 |
type_active: Thick, |
| 56 |
), |
| 57 |
margin: Margin (left: 1, right: 1) |
| 58 |
), |
| 59 |
|
| 60 |
devices: TableConfig ( |
| 61 |
title: " Devices ", |
| 62 |
header: Header ( |
| 63 |
columns: [ |
| 64 |
( title: "Name", value: Name, constraint: Percentage(10) ), |
| 65 |
( title: "Powered", value: Powered, constraint: Percentage(10) ), |
| 66 |
( title: "State", value: State, constraint: Percentage(15) ), |
| 67 |
( title: "Frequency", value: Frequency, constraint: Percentage(15) ), |
| 68 |
( title: "Address", value: Address, constraint: Percentage(20) ), |
| 69 |
( title: "Security", value: Security, constraint: Percentage(20) ), |
| 70 |
], |
| 71 |
|
| 72 |
style_active: StyleConfig ( |
| 73 |
fg: Some("yellow"), |
| 74 |
bold: true |
| 75 |
), |
| 76 |
), |
| 77 |
border: Border ( |
| 78 |
style_active: StyleConfig( |
| 79 |
fg: Some("green"), |
| 80 |
bold: true |
| 81 |
), |
| 82 |
type_active: Thick, |
| 83 |
), |
| 84 |
margin: Margin (left: 1, right: 1) |
| 85 |
), |
| 86 |
|
| 87 |
|
| 88 |
password_popup: PopupConfig ( |
| 89 |
width: 60, |
| 90 |
height: 7, |
| 91 |
), |
| 92 |
toast: ToastConfig ( |
| 93 |
normal: UrgencyConfig ( |
| 94 |
default_title: "Normal", |
| 95 |
title_style: StyleConfig ( |
| 96 |
fg: Some("gray"), |
| 97 |
bold: true |
| 98 |
), |
| 99 |
border: Border ( |
| 100 |
style_normal: StyleConfig( |
| 101 |
fg: Some("gray"), |
| 102 |
bold: true |
| 103 |
), |
| 104 |
type_active: Thick, |
| 105 |
), |
| 106 |
default_duration: 3.0, |
| 107 |
), |
| 108 |
success: UrgencyConfig ( |
| 109 |
default_title: "Success", |
| 110 |
title_style: StyleConfig ( |
| 111 |
fg: Some("green"), |
| 112 |
bold: true |
| 113 |
), |
| 114 |
border: Border ( |
| 115 |
style_normal: StyleConfig( |
| 116 |
fg: Some("green"), |
| 117 |
bold: true |
| 118 |
), |
| 119 |
type_active: Thick, |
| 120 |
), |
| 121 |
default_duration: 3.0, |
| 122 |
), |
| 123 |
warning: UrgencyConfig ( |
| 124 |
default_title: "Warning", |
| 125 |
title_style: StyleConfig ( |
| 126 |
fg: Some("yellow"), |
| 127 |
bold: true |
| 128 |
), |
| 129 |
border: Border ( |
| 130 |
style_normal: StyleConfig( |
| 131 |
fg: Some("yellow"), |
| 132 |
bold: true |
| 133 |
), |
| 134 |
type_active: Thick, |
| 135 |
), |
| 136 |
default_duration: 6.0, |
| 137 |
), |
| 138 |
critical: UrgencyConfig ( |
| 139 |
default_title: "Critical", |
| 140 |
title_style: StyleConfig ( |
| 141 |
fg: Some("red"), |
| 142 |
bold: true |
| 143 |
), |
| 144 |
border: Border ( |
| 145 |
style_normal: StyleConfig( |
| 146 |
fg: Some("red"), |
| 147 |
bold: true |
| 148 |
), |
| 149 |
type_active: Thick, |
| 150 |
), |
| 151 |
default_duration: 10.0, |
| 152 |
), |
| 153 |
position: RightTop, |
| 154 |
margin: Margin (top: 1, right: 1) |
| 155 |
|
| 156 |
) |
| 157 |
), |
| 158 |
|
| 159 |
) |