andreyorst / powerline.kak

Kakoune modeline, but with passion
MIT License
50 stars 8 forks source link

Support face attributes #9

Closed andreyorst closed 2 years ago

andreyorst commented 5 years ago

Related issues: #7 https://github.com/mawww/kakoune/issues/2842

Themes define colors, not faces, and modules compose faces from colors available. This makes it hard to support attributes, like +b for bold. However attributes should be provided by themes, and should go along with attributes that are used for StatusLine face in Kakoune color scheme.

Perhaps, attribute should be stored in the separate variable and applied to all modules.

andreyorst commented 5 years ago

Another way to make attributes available is via parameters to modules itself. This way no theme modification is needed, and user can build the powerline accordingly to the theme. However this means that theme can't set attributes at all, and attributes is a kinda theme thing.

andreyorst commented 5 years ago

Now that faces can be used as base maybe I can restructure the plugin again.