# ui: Make \`top_padding\` an associated function on the \`TitleBar\` \(\#9577\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6cec3891250a86e92dab64a9a531bc95f5db597f)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6cec3891250a86e92dab64a9a531bc95f5db597f

Requested commit: 6cec3891250a86e92dab64a9a531bc95f5db597f

Commit: 6cec3891250a86e92dab64a9a531bc95f5db597f

Tree: 3931e6e5809c4dc1a78601ccce52014b1743f431

Author: Marshall Bowers

Committer: GitHub

## Message

```
ui: Make `top_padding` an associated function on the `TitleBar` (#9577)

This PR makes the function for computing the top padding for the
`TitleBar` an associated function.

Release Notes:

- N/A
```

## Parents

- [9ab7a22fa8ba085ac95268f6d4bc105b0e0eac69](https://git.cafe/gitcafe/zed/commit/9ab7a22fa8ba085ac95268f6d4bc105b0e0eac69?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6cec3891250a86e92dab64a9a531bc95f5db597f?format=markdown)
