diff --git a/TASKS.md b/TASKS.md index 8524403..b073fee 100644 --- a/TASKS.md +++ b/TASKS.md @@ -29,15 +29,18 @@ Methodology: Incremental Kanban (Simple .md file) - [x] Brightness control menu (LightControlDialog) - [x] Button removal from brightness menu (Auto-save on release) - [x] Dismiss menu on outside touch +- [x] Vertical brightness-based tile fill for lights +- [x] WebSocket toggle in connection settings ## [PHASE 5] UX Polish & Stability - [x] Internationalization (PL/EN support) - [x] Kiosk Mode (Wake Lock - prevent screen sleep) +- [x] Dark Mode support across all screens - [x] `onDraw` performance optimization (zero allocation in draw loop) - [x] Stability testing (Monkey Stress Test) ## Future Development -- [ ] WebSocket implementation for real-time updates +- [x] WebSocket implementation for real-time updates - [ ] Support for `climate` and `media_player` domains - [ ] RGB color support for lighting diff --git a/app/Screenshot From 2026-06-14 13-41-53.png b/app/Screenshot From 2026-06-14 13-41-53.png deleted file mode 100644 index a3047da..0000000 Binary files a/app/Screenshot From 2026-06-14 13-41-53.png and /dev/null differ diff --git a/app/src/main/java/com/example/retroha/ConnectionSettingsActivity.kt b/app/src/main/java/com/example/retroha/ConnectionSettingsActivity.kt index bf24361..389ead6 100644 --- a/app/src/main/java/com/example/retroha/ConnectionSettingsActivity.kt +++ b/app/src/main/java/com/example/retroha/ConnectionSettingsActivity.kt @@ -1,15 +1,20 @@ package com.example.retroha + import android.app.Activity import android.os.Bundle +import android.view.View +import android.view.ViewGroup import android.widget.* import com.example.retroha.data.Prefs import com.example.retroha.i18n.AndroidStrings import com.example.retroha.i18n.StringKey import com.example.retroha.network.HaClient import com.example.retroha.network.HaState +import com.example.retroha.theme.Colors import retrofit2.Call import retrofit2.Callback import retrofit2.Response + /** * Activity for configuring the connection to the Home Assistant server. * Handles server URL, authentication token, and refresh interval settings. @@ -19,37 +24,47 @@ class ConnectionSettingsActivity : BaseActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_connection_settings) + + applyTheme() + val etUrl = findViewById(R.id.etUrl) val etToken = findViewById(R.id.etToken) val etRefreshInterval = findViewById(R.id.etRefreshInterval) + val cbWebSocket = findViewById(R.id.cbWebSocket) val btnSave = findViewById