mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-22 14:10:37 -04:00
wallpapers and ui cleanup
This commit is contained in:
parent
77c68aa45f
commit
6bd60207d8
32 changed files with 17947 additions and 150 deletions
|
@ -146,8 +146,9 @@ class _HomeAccountReadyState extends State<HomeAccountReady> {
|
|||
);
|
||||
|
||||
final theme = Theme.of(context);
|
||||
final scale = theme.extension<ScaleScheme>()!;
|
||||
final scaleScheme = theme.extension<ScaleScheme>()!;
|
||||
final scaleConfig = theme.extension<ScaleConfig>()!;
|
||||
final scale = scaleScheme.scale(ScaleKind.primary);
|
||||
|
||||
final activeChat = context.watch<ActiveChatCubit>().state;
|
||||
final hasActiveChat = activeChat != null;
|
||||
|
@ -163,7 +164,9 @@ class _HomeAccountReadyState extends State<HomeAccountReady> {
|
|||
visibleLeft = true;
|
||||
visibleRight = true;
|
||||
leftWidth = leftColumnSize;
|
||||
rightWidth = constraints.maxWidth - leftColumnSize - 2;
|
||||
rightWidth = constraints.maxWidth -
|
||||
leftColumnSize -
|
||||
(scaleConfig.useVisualIndicators ? 2 : 0);
|
||||
} else {
|
||||
if (hasActiveChat) {
|
||||
visibleLeft = false;
|
||||
|
@ -180,19 +183,21 @@ class _HomeAccountReadyState extends State<HomeAccountReady> {
|
|||
|
||||
return Row(crossAxisAlignment: CrossAxisAlignment.stretch, children: [
|
||||
Offstage(
|
||||
offstage: !visibleLeft,
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(maxWidth: leftWidth),
|
||||
child: buildLeftPane(context))),
|
||||
Offstage(
|
||||
offstage: !(visibleLeft && visibleRight),
|
||||
child: SizedBox(
|
||||
width: 2,
|
||||
height: double.infinity,
|
||||
child: ColoredBox(
|
||||
color: scaleConfig.preferBorders
|
||||
? scale.primaryScale.subtleBorder
|
||||
: scale.primaryScale.subtleBackground))),
|
||||
offstage: !visibleLeft,
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(maxWidth: leftWidth),
|
||||
child: buildLeftPane(context)))
|
||||
.withThemedShadow(scaleConfig, scale),
|
||||
if (scaleConfig.useVisualIndicators)
|
||||
Offstage(
|
||||
offstage: !(visibleLeft && visibleRight),
|
||||
child: SizedBox(
|
||||
width: 2,
|
||||
height: double.infinity,
|
||||
child: ColoredBox(
|
||||
color: scaleConfig.preferBorders
|
||||
? scale.subtleBorder
|
||||
: scale.subtleBackground))),
|
||||
Offstage(
|
||||
offstage: !visibleRight,
|
||||
child: ConstrainedBox(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue