修复编译错误

This commit is contained in:
Nanako 2024-05-06 20:53:30 +08:00
parent 6830f173df
commit dd3325bf08
2 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@ void slider<T>::draw(hi::draw_context const& context) noexcept {
auto const current_value = *value;
if (current_value > 0.0f) {
auto const bar_color = theme().color(hi::semantic_color::blue, _layout.layer - 1);
auto const bar_color = hi::color_from_sRGB(0.0f, 0.0f, 1.0f, 0.5f);
if (_horizontal) {
auto bar_rectangle = _layout.rectangle();

View File

@ -34,7 +34,7 @@ void volume_bar::draw(hi::draw_context const& context) noexcept {
// Draw the volume bar itself.
auto const current_value = *value;
if (current_value > 0.0f) {
auto const bar_color = theme().color(semantic_color::blue, _layout.layer - 1);
auto const bar_color = hi::color_from_sRGB(0.0f, 0.0f, 1.0f, 0.5f);
if (_horizontal) {
auto bar_rectangle = _layout.rectangle();