jmacdonald / amp

A complete text editor for your terminal.

Home Page:https://amp.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support parsing RGBA values from theme files

zezic opened this issue · comments

Some of the Text Mate themes contain color definitions like this:

<key>lineHighlight</key>
<string>#FFFFFF0F</string>

where 0F is an alpha value for the color.
But Amp does not respect alpha value which results a broken theme appearance when, for example, current line becomes highlighted with solid white color:

Screenshot at 2020-02-13 18-01-38

I understand that transparency is not supported in terminals so I propose to read background color first and then blend all other RGBA colors over it which will result desired colors in most cases.