@@ -14,9 +14,7 @@ std::unique_ptr<RenderQueue> BREW::CreateListBoxDrawable( std::shared_ptr<const
1414 auto highlighted_color = GetProperty<sf::Color>( " HighlightedColor" , listbox );
1515 auto selected_color = GetProperty<sf::Color>( " SelectedColor" , listbox );
1616 auto text_color = GetProperty<sf::Color>( " Color" , listbox );
17- auto cursor_color = GetProperty<sf::Color>( " Color" , listbox );
1817 auto text_padding = GetProperty<float >( " Padding" , listbox );
19- auto cursor_thickness = GetProperty<float >( " Thickness" , listbox );
2018 auto border_width = GetProperty<float >( " BorderWidth" , listbox );
2119 auto border_color_shift = GetProperty<int >( " BorderColorShift" , listbox );
2220 const auto & font_name = GetProperty<std::string>( " FontName" , listbox );
@@ -39,7 +37,7 @@ std::unique_ptr<RenderQueue> BREW::CreateListBoxDrawable( std::shared_ptr<const
3937
4038 // Items.
4139 sf::Vector2f itemPosition = sf::Vector2f ( border_width + text_padding, border_width + text_padding );
42- for ( std:: size_t i = listbox->GetFirstDisplayedItemIndex ();
40+ for ( ListBox::IndexType i = listbox->GetFirstDisplayedItemIndex ();
4341 i < std::min (listbox->GetFirstDisplayedItemIndex () + listbox->GetMaxDisplayedItemsCount (), listbox->GetItemsCount ());
4442 ++i ) {
4543 auto & itemText = listbox->GetDisplayedItemText ( i );
@@ -49,6 +47,7 @@ std::unique_ptr<RenderQueue> BREW::CreateListBoxDrawable( std::shared_ptr<const
4947
5048 sf::Text text ( itemText, *font, font_size );
5149 text.setPosition (itemPosition);
50+ text.setColor (text_color);
5251
5352 if ( listbox->IsItemSelected ( i ) ) {
5453 queue->Add (
0 commit comments