refactor single-code boxing UI

This commit is contained in:
Misaka_Company
2026-05-18 14:54:07 +08:00
parent f964c76382
commit 1dc9e3d3a1
2 changed files with 777 additions and 610 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -33,13 +33,14 @@ class StatusBar extends StatelessWidget {
final colorScheme = Theme.of(context).colorScheme; final colorScheme = Theme.of(context).colorScheme;
return Container( return Container(
width: double.infinity, width: double.infinity,
padding: const EdgeInsets.symmetric(vertical: 6, horizontal: 12), height: 28,
padding: const EdgeInsets.symmetric(horizontal: 12),
color: colorScheme.surfaceContainerHighest, color: colorScheme.surfaceContainerHighest,
child: Row( child: Row(
children: [ children: [
Container( Container(
width: 7, width: 6,
height: 7, height: 6,
decoration: BoxDecoration( decoration: BoxDecoration(
color: _resolveDotColor(context), color: _resolveDotColor(context),
shape: BoxShape.circle, shape: BoxShape.circle,
@@ -49,7 +50,7 @@ class StatusBar extends StatelessWidget {
Expanded( Expanded(
child: Text( child: Text(
text, text,
style: const TextStyle(fontSize: 12), style: const TextStyle(fontSize: 11),
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
), ),