updates
This commit is contained in:
parent
fc22d11df1
commit
27a8a62475
32 changed files with 354 additions and 335 deletions
|
|
@ -14,8 +14,8 @@ class HairlinePanel extends StatelessWidget {
|
|||
required this.child,
|
||||
this.trailing,
|
||||
this.active = false,
|
||||
this.padding = const EdgeInsets.all(RatuneSpacing.lg),
|
||||
this.backgroundColor = RatuneColors.background,
|
||||
this.padding = const EdgeInsets.all(TimbreSpacing.lg),
|
||||
this.backgroundColor = TimbreColors.background,
|
||||
});
|
||||
|
||||
/// Panel label, e.g. "Queue". Rendered uppercase-ish in mono.
|
||||
|
|
@ -41,9 +41,9 @@ class HairlinePanel extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final borderColor =
|
||||
active ? RatuneColors.borderActive : RatuneColors.border;
|
||||
active ? TimbreColors.borderActive : TimbreColors.border;
|
||||
final titleColor =
|
||||
active ? Theme.of(context).colorScheme.primary : RatuneColors.dimmed;
|
||||
active ? Theme.of(context).colorScheme.primary : TimbreColors.dimmed;
|
||||
|
||||
return Stack(
|
||||
clipBehavior: Clip.none,
|
||||
|
|
@ -56,12 +56,12 @@ class HairlinePanel extends StatelessWidget {
|
|||
child: Padding(padding: padding, child: child),
|
||||
),
|
||||
Positioned(
|
||||
left: RatuneSpacing.lg,
|
||||
left: TimbreSpacing.lg,
|
||||
top: 0,
|
||||
child: Container(
|
||||
color: backgroundColor,
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: RatuneSpacing.md,
|
||||
horizontal: TimbreSpacing.md,
|
||||
),
|
||||
child: Text.rich(
|
||||
TextSpan(
|
||||
|
|
@ -77,7 +77,7 @@ class HairlinePanel extends StatelessWidget {
|
|||
if (trailing != null)
|
||||
TextSpan(
|
||||
text: ' $trailing',
|
||||
style: const TextStyle(color: RatuneColors.dimmed),
|
||||
style: const TextStyle(color: TimbreColors.dimmed),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue