mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 00:16:59 +00:00
fix(desktop): wider collapsed sidebar + filled Tor icon when connected
- COLLAPSED_WIDTH 56dp → 64dp so icons aren't truncated - Tor connected: use Security icon (filled shield) instead of Shield - Tor off/connecting/error: keep outlined Shield icon Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
12918e7045
commit
da0aaaa281
+4
-2
@@ -79,7 +79,7 @@ import com.vitorpamplona.quartz.nip19Bech32.decodePublicKeyAsHexOrNull
|
||||
import kotlinx.collections.immutable.ImmutableList
|
||||
|
||||
private val EXPANDED_WIDTH = 240.dp
|
||||
private val COLLAPSED_WIDTH = 56.dp
|
||||
private val COLLAPSED_WIDTH = 64.dp
|
||||
|
||||
/**
|
||||
* Data class for a sidebar navigation item.
|
||||
@@ -254,8 +254,10 @@ fun MainSidebar(
|
||||
is TorServiceStatus.Active -> "Tor: Connected"
|
||||
is TorServiceStatus.Error -> "Tor: Error"
|
||||
}
|
||||
val torIcon =
|
||||
if (torStatus is TorServiceStatus.Active) MaterialSymbols.Security else MaterialSymbols.Shield
|
||||
SidebarNavItem(
|
||||
icon = MaterialSymbols.Shield,
|
||||
icon = torIcon,
|
||||
label = torLabel,
|
||||
isActive = false,
|
||||
expanded = expanded,
|
||||
|
||||
Reference in New Issue
Block a user