Terminal theme: square bottom bar and map overlays
The contacts/channels/map switch bar loses its rounded corners, labels and 16 px of height; the map's search field, zoom column, legend, stats and source switch become square black panels. Node markers stay round. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e939932cef
commit
b47afe7854
2 files changed
+36
-14
No files matched your search
@@ -3,6 +3,7 @@ import 'dart:ui';
|
||||
import 'package:flutter/material.dart';
|
||||
import '../l10n/l10n.dart';
|
||||
import '../theme/mesh_theme.dart';
|
||||
import '../theme/terminal_theme.dart';
|
||||
|
||||
class QuickSwitchBar extends StatelessWidget {
|
||||
final int selectedIndex;
|
||||
@@ -40,11 +41,13 @@ class QuickSwitchBar extends StatelessWidget {
|
||||
? MapPalette.textSecondary
|
||||
: colorScheme.onSurfaceVariant;
|
||||
final indicator = highContrast ? MapPalette.selected : colorScheme.primary;
|
||||
// tth fork, terminal theme: a square strip of icons, no labels.
|
||||
final terminal = MeshStyle.of(context).terminal;
|
||||
|
||||
return SizedBox(
|
||||
width: double.infinity,
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
borderRadius: terminal ? BorderRadius.zero : BorderRadius.circular(20),
|
||||
child: BackdropFilter(
|
||||
filter: ImageFilter.blur(sigmaX: 14, sigmaY: 14),
|
||||
child: DecoratedBox(
|
||||
@@ -62,6 +65,9 @@ class QuickSwitchBar extends StatelessWidget {
|
||||
surfaceTintColor: Colors.transparent,
|
||||
shadowColor: Colors.transparent,
|
||||
indicatorColor: indicator,
|
||||
indicatorShape: terminal
|
||||
? const RoundedRectangleBorder()
|
||||
: null,
|
||||
labelTextStyle: WidgetStateProperty.resolveWith((states) {
|
||||
final isSelected = states.contains(WidgetState.selected);
|
||||
return labelStyle.copyWith(
|
||||
@@ -77,7 +83,10 @@ class QuickSwitchBar extends StatelessWidget {
|
||||
}),
|
||||
),
|
||||
child: NavigationBar(
|
||||
height: 60,
|
||||
height: terminal ? 44 : 60,
|
||||
labelBehavior: terminal
|
||||
? NavigationDestinationLabelBehavior.alwaysHide
|
||||
: null,
|
||||
selectedIndex: selectedIndex,
|
||||
onDestinationSelected: onDestinationSelected,
|
||||
destinations: [
|
||||
|
||||
Reference in new issue
Block a user