GetTopAppBar returns the TopAppBar Toolbar if it exists, nil otherwise.
()
| 119 | |
| 120 | // GetTopAppBar returns the TopAppBar Toolbar if it exists, nil otherwise. |
| 121 | func (sc *Scene) GetTopAppBar() *Toolbar { |
| 122 | tb := sc.GetBar(styles.Top) |
| 123 | if tb == nil { |
| 124 | return nil |
| 125 | } |
| 126 | return tree.ChildByType[*Toolbar](tb) |
| 127 | } |
| 128 | |
| 129 | // inheritBarsWidget inherits Bar functions based on a source widget |
| 130 | // (e.g., Context of dialog) |