Added fancy mouseover effect to field borders.

This might be slow, if this becomes a problem I could add a setting to disable it.
This commit is contained in:
Twan van Laarhoven
2020-04-25 23:59:56 +02:00
parent 7d06e903a4
commit 5d4c3402df
3 changed files with 15 additions and 7 deletions
+2
View File
@@ -59,6 +59,8 @@ bool ValueViewer::setFieldBorderPen(RotatedDC& dc) {
if (!(what & DRAW_BORDERS)) return false;
if (what & DRAW_ACTIVE) {
dc.SetPen(wxPen(Color(0, 128, 255), 1, wxPENSTYLE_SOLID));
} else if (what & DRAW_HOVER) {
dc.SetPen(dotted_pen(Color(0, 128, 255)));
} else {
dc.SetPen(dotted_pen(Color(128, 128, 128)));
}