|
@@ -660,6 +660,7 @@ typedef enum {
|
|
|
LIST_ITEMS_SPACING, // ListView items separation
|
|
|
SCROLLBAR_WIDTH, // ListView scrollbar size (usually width)
|
|
|
SCROLLBAR_SIDE, // ListView scrollbar side (0-SCROLLBAR_LEFT_SIDE, 1-SCROLLBAR_RIGHT_SIDE)
|
|
|
+ LIST_ITEMS_BORDER_NORMAL, // ListView items border enabled in normal state
|
|
|
LIST_ITEMS_BORDER_WIDTH // ListView items border width
|
|
|
} GuiListViewProperty;
|
|
|
|
|
@@ -3488,7 +3489,7 @@ int GuiListViewEx(Rectangle bounds, const char **text, int count, int *scrollInd
|
|
|
// Draw visible items
|
|
|
for (int i = 0; ((i < visibleItems) && (text != NULL)); i++)
|
|
|
{
|
|
|
- GuiDrawRectangle(itemBounds, GuiGetStyle(LISTVIEW, LIST_ITEMS_BORDER_WIDTH), GetColor(GuiGetStyle(LISTVIEW, BORDER_COLOR_NORMAL)), BLANK);
|
|
|
+ if (GuiGetStyle(LISTVIEW, LIST_ITEMS_BORDER_NORMAL)) GuiDrawRectangle(itemBounds, GuiGetStyle(LISTVIEW, LIST_ITEMS_BORDER_WIDTH), GetColor(GuiGetStyle(LISTVIEW, BORDER_COLOR_NORMAL)), BLANK);
|
|
|
|
|
|
if (state == STATE_DISABLED)
|
|
|
{
|
|
@@ -3512,7 +3513,7 @@ int GuiListViewEx(Rectangle bounds, const char **text, int count, int *scrollInd
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- // Draw item normal
|
|
|
+ // Draw item normal (no rectangle)
|
|
|
GuiDrawText(text[startIndex + i], GetTextBounds(DEFAULT, itemBounds), GuiGetStyle(LISTVIEW, TEXT_ALIGNMENT), GetColor(GuiGetStyle(LISTVIEW, TEXT_COLOR_NORMAL)));
|
|
|
}
|
|
|
}
|
|
@@ -4331,6 +4332,7 @@ void GuiLoadStyleDefault(void)
|
|
|
GuiSetStyle(SCROLLBAR, SCROLL_SPEED, 12);
|
|
|
GuiSetStyle(LISTVIEW, LIST_ITEMS_HEIGHT, 28);
|
|
|
GuiSetStyle(LISTVIEW, LIST_ITEMS_SPACING, 2);
|
|
|
+ GuiSetStyle(LISTVIEW, LIST_ITEMS_BORDER_WIDTH, 1);
|
|
|
GuiSetStyle(LISTVIEW, SCROLLBAR_WIDTH, 12);
|
|
|
GuiSetStyle(LISTVIEW, SCROLLBAR_SIDE, SCROLLBAR_RIGHT_SIDE);
|
|
|
GuiSetStyle(COLORPICKER, COLOR_SELECTOR_SIZE, 8);
|