Make grid sizes dynamic
The grid used static sizes which meant that changing settings didn't have an effect on elements of the ui, notably the sidebar width. This patch makes the `Size` parameter of a cell a function which returns the `int`, allowing for dynamic sizes. A `Const` function is also included for ease of use for static sizes.
This commit is contained in:
parent
3877b1aa71
commit
543510f5c1
7 changed files with 115 additions and 109 deletions
commands
|
@ -61,6 +61,9 @@ func SetCore(aerc *widgets.Aerc, args []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
// ensure any ui changes take effect
|
||||
aerc.Invalidate()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue