Add transparency support for theme colors

Closes #19.
This commit is contained in:
Leroy Hopson 2020-11-29 15:45:57 +07:00 committed by Leroy Hopson
parent 3e177b781e
commit 472f0f573b
2 changed files with 4 additions and 1 deletions

View file

@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
### Added
- Theme colors now support transparency.
### Changed ### Changed
- Set a default theme if no theme property has been set. - Set a default theme if no theme property has been set.

View file

@ -385,7 +385,7 @@ void Terminal::update_theme()
color_palette[color][1] = c.get_g8(); color_palette[color][1] = c.get_g8();
color_palette[color][2] = c.get_b8(); color_palette[color][2] = c.get_b8();
palette.erase(color) = c; palette[color] = c;
}; };
set_pallete_color(TSM_COLOR_BLACK, "Black", 0, 0, 0); set_pallete_color(TSM_COLOR_BLACK, "Black", 0, 0, 0);