From 90cb89e86acc26b6b28d375ab380cc8c82174397 Mon Sep 17 00:00:00 2001 From: 3djc Date: Fri, 3 Jun 2016 08:46:14 +0200 Subject: [PATCH] 3djc/improve widget setup (#3557) * Draw widget name on title bar, posistioning rules will need to be improved ! * Move the name inside the widget and invert it to create like a label * - Move implemeentation to a 'label' form upper right. Works with all current widgets but Battcheck (that I'll modify acccordingly), moving on, widgets dev know what to expect. - Possible improvement : fade out label display after 2 secs * Cosmetics --- radio/src/gui/horus/screens_setup.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/radio/src/gui/horus/screens_setup.cpp b/radio/src/gui/horus/screens_setup.cpp index 72d7f8587..5a4664cc9 100644 --- a/radio/src/gui/horus/screens_setup.cpp +++ b/radio/src/gui/horus/screens_setup.cpp @@ -273,6 +273,7 @@ bool menuWidgetChoice(evt_t event) lcdDrawBitmapPattern(zone.x-10, zone.y+zone.h/2-10, LBM_SWIPE_LEFT, TEXT_INVERTED_COLOR); lcdDrawBitmapPattern(zone.x+zone.w-9, zone.y+zone.h/2-10, LBM_SWIPE_CIRCLE, TEXT_INVERTED_BGCOLOR); lcdDrawBitmapPattern(zone.x+zone.w-9, zone.y+zone.h/2-10, LBM_SWIPE_RIGHT, TEXT_INVERTED_COLOR); + lcdDrawText(zone.x + zone.w, zone.y, currentWidget->getFactory()->getName(), RIGHT | TEXT_COLOR | INVERS); return true; }