Clone
app/com.example.retroha.ui/index
Gitea Bot edited this page 2026-06-14 05:43:57 +00:00

//app/com.example.retroha.ui

Package-level declarations

Types

Name Summary
BauhausCheckbox [main]
class BauhausCheckbox(context: <Error class: unknown class>)
A custom checkbox view designed with Bauhaus aesthetics. Uses sharp geometric shapes and high-contrast colors.
BauhausControlOverlay [main]
class BauhausControlOverlayconstructor(context: <Error class: unknown class>, attrs: <Error class: unknown class>? = null, defStyleAttr: Int = 0)
A full-screen overlay view that provides entity controls (like brightness). Replaces Dialogs to avoid window surface bugs (EGL_BAD_MATCH) on old hardware.
EntitySelectionAdapter [main]
class EntitySelectionAdapter(context: <Error class: unknown class>, items: List<HaState>, selectedEntities: Set<String>)
Adapter for the entity browser list. Displays Home Assistant entities with a BauhausCheckbox for selection.
Fonts [main]
object Fonts
Central repository for custom Typefaces used in the application. Ensures consistent typography across manually drawn UI components.
HaIcons [main]
object HaIcons
Utility for drawing Home Assistant domain icons directly onto a Canvas. Uses purely geometric Bauhaus-style shapes for high performance and stylistic consistency.
LanguageIconDrawable [main]
class LanguageIconDrawable(sizePx: Int)
A custom Drawable representing a simplified globe icon. Used in the UI to indicate language settings.
LightControlDialog [main]
class LightControlDialog(context: <Error class: unknown class>, entityName: String, initialBrightness: Int, onBrightnessChanged: (Int) -> Unit)
A custom dialog for controlling the brightness of a light entity. Features a minimalist Bauhaus design and automatic updates on slider release.
WidgetAdapter [main]
class WidgetAdapter(context: <Error class: unknown class>, initialItems: List<<Error class: unknown class>>)
Adapter for the main dashboard grid. Manages the lifecycle and data binding for WidgetCardView instances.
WidgetCardView [main]
class WidgetCardView(context: <Error class: unknown class>)
A highly optimized custom View that renders a single Home Assistant entity card. Part of the "Bauhaus Canvas" engine, it avoids XML overhead by manually drawing everything. Supports state-based coloring, pulsing animations for transitions, and haptic feedback.