feat: Add configurable icons, control types, and improved UI for swit…#14
Merged
StuartF303 merged 2 commits intomainfrom Nov 9, 2025
Merged
Conversation
…ches Control Improvements: - Add ColorChooser type to ControlType enum for RGB color selection - Add 10 icon options: lightbulb, light mode, water pump, thermostat, power, fan, heating, AC, outlet, nightlight - Update control type names: Toggle → On/Off Switch, Dimmer → Dimmable/Slider - Support three main control types: On/Off (Toggle), Dimmable (Slider), and Color Chooser (RGB) Dashboard Switch Rendering: - Display controls with large 48px icons showing configured icon - Show control name as text label below icon - Render appropriate UI based on control type: - Toggle: On/Off switch with color indication - Dimmer: Slider with percentage display - ColorChooser: Inline RGB color picker - Increase control card size with enhanced styling and shadows - Add icon color indication (primary when on, default when off) UI/UX Enhancements: - Add 16px padding to Controls, Tanks, and Settings pages for better spacing - Dashboard (diagram) remains full-height with no padding - Improved control overlay styling with min-width and better layout - Store and display IconName and ControlType in overlay items All control changes sync with backend API and persist across reloads.
- Add using directive for MudBlazor.Utilities to support MudColor type - Fix MudColorPicker to use Value instead of @bind-Value to avoid conflict with ValueChanged parameter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ches
Control Improvements:
Dashboard Switch Rendering:
UI/UX Enhancements:
All control changes sync with backend API and persist across reloads.