mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* feat(ui): add a light and dark theme toggle to the landing page The landing page was dark only. A button in the top bar, shown on the dashboard and on the /_floci/ui wait view, switches between a dark and a light theme. With no choice made the page follows the OS colour scheme, including a change while it is open; a choice is remembered in localStorage under floci.theme, next to the news setting, and the page still switches for the current view when storage is blocked. The theme is set by the head script before the stylesheet paints, so a light page does not flash dark on load. The dark palette is unchanged. The light one keeps the same accent family with every text colour at 4.5:1 or better against the page backgrounds, and the five colours that were written as literals (logo dot, button text, code snippets, error box, the copied border) are now variables both themes set. Signed-off-by: Hector Ventura <hectorvent@gmail.com> * feat(ui): name the emulator in the top bar and keep a page-view theme choice The page will be shared by the other Floci emulators, so the top bar now says which one serves it, floci-aws, next to the logo, and the page title and the version pill's tooltip name it too. A theme picked with the toggle while storage is blocked could be undone by an OS colour-scheme change later in the same page view, because the OS listener only checked the stored choice. The click is now remembered in memory as well, so the OS is followed only until the user picks. Signed-off-by: Hector Ventura <hectorvent@gmail.com> * chore(ui): pin the floci-ui console image to 0.7.0 The console image defaulted to floci/floci-ui:latest, and a cached latest tag is never pulled again, so a machine kept whatever console it first downloaded. The default is now the released 0.7.0 tag, in the config default, application.yml and the three docs tables that list it. FLOCI_SERVICES_UI_IMAGE still overrides it. Signed-off-by: Hector Ventura <hectorvent@gmail.com> --------- Signed-off-by: Hector Ventura <hectorvent@gmail.com>