修复编译错误
This commit is contained in:
parent
6830f173df
commit
dd3325bf08
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user