Revert "Centered strings in file lists and in dropdowns"
This reverts commit 383826139c.
This commit is contained in:
@@ -355,7 +355,7 @@ public:
|
|||||||
case WID_SL_DRIVES_DIRECTORIES_LIST: {
|
case WID_SL_DRIVES_DIRECTORIES_LIST: {
|
||||||
GfxFillRect(r.left + 1, r.top + 1, r.right, r.bottom, PC_BLACK);
|
GfxFillRect(r.left + 1, r.top + 1, r.right, r.bottom, PC_BLACK);
|
||||||
|
|
||||||
uint y = r.top + WD_FRAMERECT_TOP + this->resize.step_height / 2;
|
uint y = r.top + WD_FRAMERECT_TOP;
|
||||||
for (uint pos = this->vscroll->GetPosition(); pos < _fios_items.Length(); pos++) {
|
for (uint pos = this->vscroll->GetPosition(); pos < _fios_items.Length(); pos++) {
|
||||||
const FiosItem *item = _fios_items.Get(pos);
|
const FiosItem *item = _fios_items.Get(pos);
|
||||||
|
|
||||||
|
|||||||
@@ -228,12 +228,12 @@ struct DropdownWindow : Window {
|
|||||||
|
|
||||||
if (y + item_height < r.bottom) {
|
if (y + item_height < r.bottom) {
|
||||||
bool selected = (this->selected_index == item->result);
|
bool selected = (this->selected_index == item->result);
|
||||||
if (selected) GfxFillRect(r.left + 2, y + item_height / 2, r.right - 1, y + item_height * 3 / 2 - 1, PC_BLACK);
|
if (selected) GfxFillRect(r.left + 2, y, r.right - 1, y + item_height - 1, PC_BLACK);
|
||||||
|
|
||||||
item->Draw(r.left, r.right, y + item_height / 2, y + item_height * 3 / 2, selected, colour);
|
item->Draw(r.left, r.right, y, y + item_height, selected, colour);
|
||||||
|
|
||||||
if (item->masked) {
|
if (item->masked) {
|
||||||
GfxFillRect(r.left + 1, y + item_height / 2, r.right - 1, y + item_height * 3 / 2 - 1, _colour_gradient[colour][5], FILLRECT_CHECKER);
|
GfxFillRect(r.left + 1, y, r.right - 1, y + item_height - 1, _colour_gradient[colour][5], FILLRECT_CHECKER);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
y += item_height;
|
y += item_height;
|
||||||
|
|||||||
Reference in New Issue
Block a user