# Provide editor styling information separately from editor settings · gitcafe/zed

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

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

Visibility: public

Requested revision: 47b654063e69bac8b20be1e50ffefd9d58ea85fb

Requested commit: 47b654063e69bac8b20be1e50ffefd9d58ea85fb

Commit: 47b654063e69bac8b20be1e50ffefd9d58ea85fb

Tree: 40fc54b096cc4f08c8c49a2992d4da650163d265

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Provide editor styling information separately from editor settings

* Since regular editors' font sizes and families are controlled by
  the settings and not the theme, don't store a dummy text style in
  the theme. Instead, only store a font color, and synthesize
  the text style for regular editors using both the theme and the
  settings.
* Style single-line and auto-height editors (now called "field
  editors") using a single function that takes the entire theme and
  selects a relevant sub-object.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>

```

## Parents

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

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