88 *
99 * NetName,Frequency,Band,Mode,NetControl,Checkins,Logger,Started
1010 *
11- * Each net is drawn as two lines: the net name in a large font with a smaller
12- * supporting line beneath it (frequency, band, mode, net control , check-ins).
11+ * Each net is drawn as two lines in a small font: the net name (bright white)
12+ * with a dimmer supporting line beneath it (frequency, band, mode, check-ins).
1313 * The Logger column is intentionally not displayed.
1414 */
1515
@@ -48,7 +48,7 @@ typedef struct {
4848} ActiveNetEntry;
4949
5050static ActiveNetEntry *anets; // malloced list, count in an_ss.n_data
51- static char subtitle[40 ]; // count / freshness line under the title
51+ static char subtitle[40 ]; // credit line under the title
5252static ScrollState an_ss; // scrolling context
5353
5454/* free the anets[] list and reset count.
@@ -114,7 +114,7 @@ static void anGeometry (const SBox &box, int &block_dy, int &name_base_off,
114114{
115115 int n_asc, n_h, i_asc, i_h;
116116
117- selectFontStyle (LIGHT_FONT , SMALL_FONT );
117+ selectFontStyle (LIGHT_FONT , FAST_FONT );
118118 fontVMetrics (n_asc, n_h);
119119 selectFontStyle (LIGHT_FONT , FAST_FONT );
120120 fontVMetrics (i_asc, i_h);
@@ -143,7 +143,7 @@ static void drawActiveNetsPane (const SBox &box)
143143 tft.setCursor (box.x + (box.w -tw)/2 , box.y + PANETITLE_H );
144144 tft.print (title);
145145
146- // subtitle (count / freshness )
146+ // subtitle (credit line, like the Launches pane )
147147 selectFontStyle (LIGHT_FONT , FAST_FONT );
148148 tft.setTextColor (AN_COLOR );
149149 uint16_t sw = getTextWidth (subtitle);
@@ -174,8 +174,8 @@ static void drawActiveNetsPane (const SBox &box)
174174 int r = an_ss.getDisplayRow (i);
175175 uint16_t bt = y0 + r*block_dy; // top of this net's block
176176
177- // net name -- the largest text
178- selectFontStyle (LIGHT_FONT , SMALL_FONT );
177+ // net name -- still the brighter (white) of the two lines, but same small font as info
178+ selectFontStyle (LIGHT_FONT , FAST_FONT );
179179 tft.setTextColor (AN_NAME_COLOR );
180180 uint16_t w = getTextWidth (an.name );
181181 tft.setCursor (box.x + (box.w -w)/2 , bt + name_base_off);
@@ -273,12 +273,17 @@ static void scrubToFit (char *line, const SBox &box)
273273}
274274
275275/* build the supporting info line for one net from its CSV fields.
276- * format: "<freq> <band> <mode> - <n> ckins ", omitting empty pieces.
276+ * format: "<freq> <band> <mode>", omitting empty pieces.
277277 * uses only ASCII so it renders correctly in the small CP437-based font.
278+ * N.B. check-in count is intentionally NOT included here -- it's still recorded
279+ * in ActiveNetEntry.chk and shown in the hover popup (see anFillInfo()).
278280 */
279281static void buildInfoLine (char *out, size_t out_l, const char *freq, const char *band,
280282 const char *mode, const char *ncs, const char *chk)
281283{
284+ (void ) ncs; // not shown on the pane (kept for popup via caller)
285+ (void ) chk; // not shown on the pane (kept for popup via caller)
286+
282287 out[0 ] = ' \0 ' ;
283288 size_t used = 0 ;
284289
@@ -294,14 +299,6 @@ static void buildInfoLine (char *out, size_t out_l, const char *freq, const char
294299 AN_APP_SP (band);
295300 AN_APP_SP (mode);
296301
297- // net control, set off with a dash
298- // if (ncs && ncs[0] && used < out_l)
299- // used += snprintf (out+used, out_l-used, "%sNCS %s", used ? " - " : "", ncs);
300-
301- // check-in count
302- if (chk && chk[0 ] && used < out_l)
303- used += snprintf (out+used, out_l-used, " %s%s ckins" , used ? " - " : " " , chk);
304-
305302 #undef AN_APP_SP
306303}
307304
@@ -374,12 +371,11 @@ static bool retrieveActiveNets (const SBox &box)
374371 char info[200 ];
375372 buildInfoLine (info, sizeof (info), freq, band, mode, ncs, chk);
376373
377- // scrub each to fit
374+ // scrub each to fit (both now render in FAST_FONT)
378375 char nbuf[200 ];
379376 quietStrncpy (nbuf, name, sizeof (nbuf));
380- selectFontStyle (LIGHT_FONT , SMALL_FONT );
381- scrubToFit (nbuf, box);
382377 selectFontStyle (LIGHT_FONT , FAST_FONT );
378+ scrubToFit (nbuf, box);
383379 scrubToFit (info, box);
384380
385381 // append to anets[]
@@ -409,9 +405,8 @@ static bool retrieveActiveNets (const SBox &box)
409405
410406 fclose (fp);
411407
412- // build subtitle
413- snprintf (subtitle, sizeof (subtitle), " %d active net%s" , an_ss.n_data ,
414- an_ss.n_data == 1 ? " " : " s" );
408+ // build subtitle -- credit line, same spot/style as the Launches pane's credit
409+ snprintf (subtitle, sizeof (subtitle), " Credit: NetLogger.org" );
415410
416411 an_ss.scrollToNewest ();
417412
0 commit comments