Repository: PathOfBuildingCommunity/PathOfBuilding
File: src/Classes/DropDownControl.lua (Lua)

Code before:
		local selItem = self.list[self.selIndex]
		if type(selItem) == "table" then
			selLabel = selItem.label
			selDetail = selItem.detail
		else
			selLabel = selItem
		end
	end
	SetViewport(x + 2, y + 2, width - height, lineHeight)
	DrawString(0, 0, "LEFT", lineHeight, "VAR", selLabel or "")
	if selDetail ~= nil then
		local dx = DrawStringWidth(lineHeight, "VAR", selDetail)
		if not enabled or self.dropped then
			SetDrawColor(0, 0, 0)
		elseif mOver then
			SetDrawColor(0.33, 0.33, 0.33)
		else
			SetDrawColor(0, 0, 0)
		end
		DrawImage(nil, width - dx - 4 - 22, 0, width - 4, lineHeight)
		DrawString(width - dx - 22, 0, "LEFT", lineHeight, "VAR", selDetail)
	end
	SetViewport()

	-- draw dropped down part with items
	if self.dropped then
		SetDrawLayer(nil, 5)
		self:DrawControls(viewPort)
		width = self.droppedWidth

		-- draw tooltip for hovered item
		local cursorX, cursorY = GetCursorPos()
		self.hoverSelDrop = mOver and not scrollBar:IsMouseOver() and math.floor((cursorY - dropY + scrollBar.offset) / lineHeight) + 1
		self.hoverSel = self:DropIndexToListIndex(self.hoverSelDrop)
		if self.hoverSel and not self.list[self.hoverSel] then
			self.hoverSel = nil
		end
		if self.hoverSel and not noTooltip then
			SetDrawLayer(nil, 100)
			self:DrawTooltip(
				x, dropY + 2 + (self.hoverSelDrop - 1) * lineHeight - scrollBar.offset,
				width, lineHeight,
				viewPort,
				"HOVER", self.hoverSel, self.list[self.hoverSel])
			SetDrawLayer(nil, 5)
		end

		-- draw dropdown items
		SetViewport(x + 2, dropY + 2, scrollBar.enabled and width - 22 or width - 4, self.dropHeight)
		local dropIndex = 0
		for index, listVal in ipairs(self.list) do

Review comment (suggestion):
You need to restore some color before the `DrawString` call, otherwise it's the same color as the background:
![image](https://github.com/user-attachments/assets/fde71b32-262a-4e45-bfa7-93ab9846ab81)

It only works in this case because the ImportTab explicitly sets the color in the detail text.

Same with the other spot.

Code after:
		local selItem = self.list[self.selIndex]
		if type(selItem) == "table" then
			selLabel = selItem.label
			selDetail = selItem.detail
		else
			selLabel = selItem
		end
	end
	SetViewport(x + 2, y + 2, width - height, lineHeight)
	DrawString(0, 0, "LEFT", lineHeight, "VAR", selLabel or "")
	if selDetail ~= nil then
		local dx = DrawStringWidth(lineHeight, "VAR", selDetail)
		if not enabled or self.dropped then
			SetDrawColor(0, 0, 0)
		elseif mOver then
			SetDrawColor(0.33, 0.33, 0.33)
		else
			SetDrawColor(0, 0, 0)
		end
		DrawImage(nil, width - dx - 4 - 22, 0, width - 4, lineHeight)
		if enabled then
			SetDrawColor(1, 1, 1)
		else
			SetDrawColor(0.66, 0.66, 0.66)
		end
		DrawString(width - dx - 22, 0, "LEFT", lineHeight, "VAR", selDetail)
	end
	SetViewport()

	-- draw dropped down part with items
	if self.dropped then
		SetDrawLayer(nil, 5)
		self:DrawControls(viewPort)
		width = self.droppedWidth

		-- draw tooltip for hovered item
		local cursorX, cursorY = GetCursorPos()
		self.hoverSelDrop = mOver and not scrollBar:IsMouseOver() and math.floor((cursorY - dropY + scrollBar.offset) / lineHeight) + 1
		self.hoverSel = self:DropIndexToListIndex(self.hoverSelDrop)
		if self.hoverSel and not self.list[self.hoverSel] then
			self.hoverSel = nil
		end
		if self.hoverSel and not noTooltip then
			SetDrawLayer(nil, 100)
			self:DrawTooltip(
				x, dropY + 2 + (self.hoverSelDrop - 1) * lineHeight - scrollBar.offset,
				width, lineHeight,
				viewPort,
				"HOVER", self.hoverSel, self.list[self.hoverSel])
			SetDrawLayer(nil, 5)
		end