aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/GUI
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-08-05 15:50:39 -0400
committerMichael <[email protected]>2017-08-05 15:50:39 -0400
commit2352fcc7a1af388def5d7b0c9172f805d707d2c7 (patch)
treefb11aa6da63b99d5a2272277bf94a5c6039681bd /ShiftOS.Frontend/GUI
parentec363f09caa99f8b0ffa9351950fed5629f396f7 (diff)
downloadshiftos_thereturn-2352fcc7a1af388def5d7b0c9172f805d707d2c7.tar.gz
shiftos_thereturn-2352fcc7a1af388def5d7b0c9172f805d707d2c7.tar.bz2
shiftos_thereturn-2352fcc7a1af388def5d7b0c9172f805d707d2c7.zip
tint support in GraphicsContext.DrawLine and DrawRectangle
Diffstat (limited to 'ShiftOS.Frontend/GUI')
-rw-r--r--ShiftOS.Frontend/GUI/ListView.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/ShiftOS.Frontend/GUI/ListView.cs b/ShiftOS.Frontend/GUI/ListView.cs
index b74203d..d4f22a7 100644
--- a/ShiftOS.Frontend/GUI/ListView.cs
+++ b/ShiftOS.Frontend/GUI/ListView.cs
@@ -169,7 +169,10 @@ namespace ShiftOS.Frontend.GUI
if(image != null)
{
int imageDrawX = _itemx + ((textwidth - texwidth) / 2);
- gfx.DrawRectangle(imageDrawX, _itemy, texwidth, texheight, image);
+ Color tint = Color.White;
+ if (_items.IndexOf(item) == _selected)
+ tint = LoadedSkin.ButtonPressedColor.ToMonoColor();
+ gfx.DrawRectangle(imageDrawX, _itemy, texwidth, texheight, image, tint);
}
int texty = _itemy + texheight;