diff options
| author | 2025-08-14 16:59:43 -0400 | |
|---|---|---|
| committer | 2025-08-14 16:59:43 -0400 | |
| commit | 0d2767211a2a1b176ca968b834b0d81416354b2a (patch) | |
| tree | 6c8202abf4ff832cb71e839e6cf3c60af3ffb9ab /src/fruits/cmc | |
| parent | c48a6d1e806d7bd92cad81eaffe734f8bf9e40f5 (diff) | |
| download | camu-0d2767211a2a1b176ca968b834b0d81416354b2a.tar.gz camu-0d2767211a2a1b176ca968b834b0d81416354b2a.tar.bz2 camu-0d2767211a2a1b176ca968b834b0d81416354b2a.zip | |
Small cmc ui cleanup
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/fruits/cmc')
| -rw-r--r-- | src/fruits/cmc/ui/util/waveform.c | 1 | ||||
| -rw-r--r-- | src/fruits/cmc/ui/widgets/now_playing.c | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/fruits/cmc/ui/util/waveform.c b/src/fruits/cmc/ui/util/waveform.c index 576cc37..a82aa45 100644 --- a/src/fruits/cmc/ui/util/waveform.c +++ b/src/fruits/cmc/ui/util/waveform.c @@ -1,5 +1,6 @@ #include <al/log.h> #include <al/math.h> + #include "waveform.h" #define WITHIN_RMS(low, high, rms) \ diff --git a/src/fruits/cmc/ui/widgets/now_playing.c b/src/fruits/cmc/ui/widgets/now_playing.c index 355240b..7c23b4a 100644 --- a/src/fruits/cmc/ui/widgets/now_playing.c +++ b/src/fruits/cmc/ui/widgets/now_playing.c @@ -111,7 +111,6 @@ void cmc_now_playing_render(struct cmc_now_playing *np, struct cmc_list_entry *e u32 height = ncplane_dim_y(np->n); // ━ ╸╺ ╼ ╾ ╴╶ - //ncplane_set_fg_palindex(np->n, 8); f32 percent = 1.f; if (duration > 0) percent = MIN(pos / (f32)duration, 1.f); u32 bar_width = width - 1; @@ -206,14 +205,11 @@ void cmc_now_playing_render(struct cmc_now_playing *np, struct cmc_list_entry *e u64 c = 0; ncchannels_set_fg_default(&c); - //ncchannels_set_fg_palindex(&c, 8); ncchannels_set_bg_default(&c); ncchannels_set_bg_alpha(&c, 0); ncchannels_set_fg_alpha(&c, 255); ncplane_cursor_move_yx(np->n, 0, 0); - //ncplane_double_box(np->n, NCSTYLE_NONE, c, height - 1, width - 1, 0); ncplane_light_box(np->n, NCSTYLE_NONE, c, height - 1, width - 1, 0); - //ncplane_set_fg_palindex(np->n, 8); if (segments > 0 || head > 0) { if (segments == 0 && head == 1) { ncplane_putstr_yx(np->n, 2, 0, "├"); @@ -231,7 +227,7 @@ void cmc_now_playing_render(struct cmc_now_playing *np, struct cmc_list_entry *e ncplane_set_fg_default(np->n); } -/* Text waveform stuff +/* Text waveform stuff. struct nccell ncl; nccell_init(&ncl); nccell_load(w, &ncl, " "); |