mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Properly show disabled stringview
This commit is contained in:
parent
134893c11f
commit
db0c27a376
1 changed files with 15 additions and 1 deletions
|
@ -793,7 +793,7 @@ namespace IDE.ui
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void DrawAll(Graphics g)
|
void DoDrawAll(Graphics g)
|
||||||
{
|
{
|
||||||
g.SetFont(DarkTheme.sDarkTheme.mSmallFont);
|
g.SetFont(DarkTheme.sDarkTheme.mSmallFont);
|
||||||
var editWidgetContent = mEditWidget.Content;
|
var editWidgetContent = mEditWidget.Content;
|
||||||
|
@ -884,6 +884,20 @@ namespace IDE.ui
|
||||||
base.DrawAll(g);
|
base.DrawAll(g);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void DrawAll(Graphics g)
|
||||||
|
{
|
||||||
|
uint32 color = Color.White;
|
||||||
|
if (var lvItem = mParent as WatchListViewItem)
|
||||||
|
{
|
||||||
|
var headItem = lvItem.GetSubItem(0) as WatchListViewItem;
|
||||||
|
if ((headItem.mDisabled) || (lvItem.mFailed))
|
||||||
|
color = 0xFFFF4040;
|
||||||
|
}
|
||||||
|
|
||||||
|
using (g.PushColor(color))
|
||||||
|
DoDrawAll(g);
|
||||||
|
}
|
||||||
|
|
||||||
public override void Resize(float x, float y, float width, float height)
|
public override void Resize(float x, float y, float width, float height)
|
||||||
{
|
{
|
||||||
base.Resize(x, y, width, height);
|
base.Resize(x, y, width, height);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue