Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
//UI
#define LGFX_AUTODETECT // Autodetect board
#define LGFX_USE_V1 // set to use new version of library
// =============================================================================
// COLOR PALETTE - All colors defined here for easy theming
// =============================================================================
// Undefine library defaults to use our custom theme
#undef UI_COLOR_PRIMARY
#undef UI_COLOR_BACKGROUND
#undef UI_COLOR_SURFACE
#undef UI_COLOR_SURFACE_LIGHT
#undef UI_COLOR_BORDER
#undef UI_COLOR_TEXT
// Primary accent (cyan neon)
#define UI_COLOR_PRIMARY 0x00D9FF // Primary cyan
#define UI_COLOR_PRIMARY_DARK 0x00B8E6 // Darker cyan for gradients
#define UI_COLOR_PRIMARY_DARKER 0x008BB3 // Even darker cyan
#define UI_COLOR_PRIMARY_DIM 0x006080 // Dimmed cyan for subtle effects
#define UI_COLOR_PRIMARY_GLOW 0x00D9FF // Glow color (same as primary)
// Secondary accent (magenta - for highlights/contrast)
#define UI_COLOR_ACCENT 0xFF0080 // Magenta accent
#define UI_COLOR_ACCENT_DARK 0xCC0066 // Darker magenta
// Backgrounds & surfaces
#define UI_COLOR_BACKGROUND 0x0A0A0F // Near-black with slight blue tint
#define UI_COLOR_SURFACE 0x15151F // Panel/card surface
#define UI_COLOR_SURFACE_LIGHT 0x252530 // Lighter surface (hover states)
#define UI_COLOR_SURFACE_DARK 0x0D0D12 // Darker inset areas
#define UI_COLOR_SURFACE_ACTIVE 0x123039 // Cyan-tinted fill behind an active control
// Borders & dividers
#define UI_COLOR_BORDER 0x333340 // Default border
#define UI_COLOR_BORDER_LIGHT 0x444455 // Lighter border (focus)
#define UI_COLOR_BORDER_GLOW 0x00D9FF // Glowing border (active)
// Text
#define UI_COLOR_TEXT 0xE0E0E0 // Primary text
#define UI_COLOR_TEXT_MUTED 0x808090 // Muted/secondary text
#define UI_COLOR_TEXT_DIM 0x505060 // Dimmed labels
// VU Meter colors (gradient from low to peak)
#define UI_COLOR_VU_GREEN 0x00FF66 // Low level
#define UI_COLOR_VU_YELLOW 0xFFFF00 // Mid level
#define UI_COLOR_VU_ORANGE 0xFF8800 // High level
#define UI_COLOR_VU_RED 0xFF3333 // Peak/clip
// Slider track colors
#define UI_COLOR_TRACK 0x252530 // Unfilled track
#define UI_COLOR_TRACK_LIGHT 0x353545 // Track gradient end
// Boot screen patch lead (the plugs; the cable's lit hues are the brand spectrum)
#define UI_COLOR_CABLE_SLEEVE 0x2E2E3A // Unlit cable jacket
#define UI_COLOR_PLUG_METAL 0xB9C0C9 // Plug tip and sleeve
#define UI_COLOR_PLUG_METAL_DIM 0x70777F // Plug metal in shadow
#define UI_COLOR_PLUG_BODY 0x323240 // Plug housing and strain relief
#define UI_COLOR_PLUG_BODY_DIM 0x1E1E28 // Plug housing in shadow
#define UI_COLOR_PLUG_BAND 0x0F0F14 // Plug insulator band
// Basic colors
#define UI_COLOR_BLACK 0x000000
#define UI_COLOR_WHITE 0xFFFFFF
// =============================================================================
// LAYOUT CONSTANTS - Spacing, sizing, etc.
// =============================================================================
// Padding & margins
#define UI_PADDING_SMALL 4
#define UI_PADDING_MEDIUM 8
#define UI_PADDING_LARGE 12
#define UI_PADDING_XLARGE 16
// Component spacing
#define UI_SPACING_TIGHT 6
#define UI_SPACING_NORMAL 10
#define UI_SPACING_LOOSE 16
// Border radius
#define UI_RADIUS_SMALL 4
#define UI_RADIUS_MEDIUM 8
#define UI_RADIUS_LARGE 12
#define UI_RADIUS_ROUND 999 // Fully round
// Border widths
#define UI_BORDER_THIN 1
#define UI_BORDER_NORMAL 2
#define UI_BORDER_THICK 3
// Button sizes
#define UI_BTN_HEIGHT 36
#define UI_BTN_HEIGHT_SMALL 30
#define UI_BTN_MIN_WIDTH 80
#define UI_BTN_HEIGHT_LARGE 54 // Primary touch targets (WHITE/VU pills)
// Effect grid (Effects tab)
#define UI_TILE_HEIGHT 72 // One animation tile
#define UI_TILE_STRIP_HEIGHT 6 // Colour signature across the tile top
#define UI_SEG_HEIGHT 32 // Patterns / Audio segmented control
#define UI_OFFBAR_HEIGHT 34 // "EFFECTS OFF" bar
// =============================================================================
#include "led/LedHelpers.h"
// LovyanGFX's auto-detect header defines some static helpers (e.g.
// i2c_write_register8_array) that aren't used on every board, tripping
// -Wunused-function under our src-scoped -Wextra. It's library code we don't own,
// so silence it tightly around just this include rather than project-wide.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
#include <LovyanGFX.hpp>
#pragma GCC diagnostic pop
#include <lvgl.h>
#include <lv_conf.h>
#include "ui/BrightnessSlider.h"
#include "led/LEDManager.h"
#include "WebUIManager.h"
#include "WifiBootManager.h"
// Web UI notification helper
void updateWebUi();
96336ed42This file is pinned to the selected release. Download the original to open it in your design tool.