From 2352fcc7a1af388def5d7b0c9172f805d707d2c7 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 5 Aug 2017 15:50:39 -0400 Subject: tint support in GraphicsContext.DrawLine and DrawRectangle --- ShiftOS.Frontend/GUI/ListView.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ShiftOS.Frontend/GUI') 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; -- cgit v1.2.3