mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-06-01 20:52:15 -04:00
wallpapers and ui cleanup
This commit is contained in:
parent
77c68aa45f
commit
6bd60207d8
32 changed files with 17947 additions and 150 deletions
|
@ -320,29 +320,7 @@ class _DrawerMenuState extends State<DrawerMenu> {
|
|||
|
||||
return DecoratedBox(
|
||||
decoration: ShapeDecoration(
|
||||
shadows: [
|
||||
if (scaleConfig.useVisualIndicators && !scaleConfig.preferBorders)
|
||||
BoxShadow(
|
||||
color: scale.primary.darken(60),
|
||||
spreadRadius: 2,
|
||||
)
|
||||
else if (scaleConfig.useVisualIndicators &&
|
||||
scaleConfig.preferBorders)
|
||||
BoxShadow(
|
||||
color: scale.border,
|
||||
spreadRadius: 2,
|
||||
)
|
||||
else
|
||||
BoxShadow(
|
||||
color: scale.appBackground.darken(60).withAlpha(0x3F),
|
||||
blurRadius: 16,
|
||||
spreadRadius: 2,
|
||||
offset: const Offset(
|
||||
0,
|
||||
2,
|
||||
),
|
||||
),
|
||||
],
|
||||
shadows: themedShadow(scaleConfig, scale),
|
||||
gradient: scaleConfig.useVisualIndicators ? null : gradient,
|
||||
color: scaleConfig.useVisualIndicators
|
||||
? (scaleConfig.preferBorders
|
||||
|
@ -381,7 +359,7 @@ class _DrawerMenuState extends State<DrawerMenu> {
|
|||
'assets/images/title.svg',
|
||||
colorFilter: scaleConfig.useVisualIndicators
|
||||
? grayColorFilter
|
||||
: dodgeFilter),
|
||||
: src96StencilFilter),
|
||||
]))),
|
||||
Text(translate('menu.accounts'),
|
||||
style: theme.textTheme.titleMedium!.copyWith(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -229,6 +229,7 @@ class HomeScreenState extends State<HomeScreen>
|
|||
angle: 0,
|
||||
//mainScreenOverlayColor: theme.shadowColor.withAlpha(0x2F),
|
||||
openCurve: Curves.fastEaseInToSlowEaseOut,
|
||||
closeCurve: Curves.fastEaseInToSlowEaseOut,
|
||||
// duration: const Duration(milliseconds: 250),
|
||||
// reverseDuration: const Duration(milliseconds: 250),
|
||||
menuScreenTapClose: canClose,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue