| 43 | } |
| 44 | |
| 45 | void drawArrows(float scale = 1) { |
| 46 | tft.fillRect(arrowAreaX, iconAreaY, arrowAreaW, iconAreaH, bruceConfig.bgColor); |
| 47 | tft.fillRect( |
| 48 | tftWidth - arrowAreaX - arrowAreaW, iconAreaY, arrowAreaW, iconAreaH, bruceConfig.bgColor |
| 49 | ); |
| 50 | |
| 51 | int arrowSize = scale * 10; |
| 52 | int lineWidth = scale * 3; |
| 53 | |
| 54 | int arrowX = BORDER_PAD_X + 1.5 * arrowSize; |
| 55 | int arrowY = iconCenterY + 1.5 * arrowSize; |
| 56 | |
| 57 | // Left Arrow |
| 58 | tft.drawWideLine( |
| 59 | arrowX, |
| 60 | arrowY, |
| 61 | arrowX + arrowSize, |
| 62 | arrowY + arrowSize, |
| 63 | lineWidth, |
| 64 | bruceConfig.priColor, |
| 65 | bruceConfig.bgColor |
| 66 | ); |
| 67 | tft.drawWideLine( |
| 68 | arrowX, |
| 69 | arrowY, |
| 70 | arrowX + arrowSize, |
| 71 | arrowY - arrowSize, |
| 72 | lineWidth, |
| 73 | bruceConfig.priColor, |
| 74 | bruceConfig.bgColor |
| 75 | ); |
| 76 | |
| 77 | // Right Arrow |
| 78 | tft.drawWideLine( |
| 79 | tftWidth - arrowX, |
| 80 | arrowY, |
| 81 | tftWidth - arrowX - arrowSize, |
| 82 | arrowY + arrowSize, |
| 83 | lineWidth, |
| 84 | bruceConfig.priColor, |
| 85 | bruceConfig.bgColor |
| 86 | ); |
| 87 | tft.drawWideLine( |
| 88 | tftWidth - arrowX, |
| 89 | arrowY, |
| 90 | tftWidth - arrowX - arrowSize, |
| 91 | arrowY - arrowSize, |
| 92 | lineWidth, |
| 93 | bruceConfig.priColor, |
| 94 | bruceConfig.bgColor |
| 95 | ); |
| 96 | } |
| 97 | |
| 98 | void drawTitle(float scale = 1) { |
| 99 | int titleY = iconCenterY + iconAreaH / 2 + FG; |
nothing calls this directly
no test coverage detected