mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-17 14:30:40 +01:00
chore: Minor design adjustment
This commit is contained in:
parent
aaf6610ff4
commit
2c9d57bb64
@ -41,25 +41,36 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
textInputAction: TextInputAction.search,
|
textInputAction: TextInputAction.search,
|
||||||
onChanged: controller.onSearchEnter,
|
onChanged: controller.onSearchEnter,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
|
fillColor: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.secondaryContainer
|
||||||
|
.withAlpha(128),
|
||||||
border: UnderlineInputBorder(
|
border: UnderlineInputBorder(
|
||||||
borderSide: BorderSide.none,
|
borderSide: BorderSide.none,
|
||||||
borderRadius: BorderRadius.circular(90),
|
borderRadius: BorderRadius.circular(90),
|
||||||
),
|
),
|
||||||
hintText: controller.activeSpacesEntry.getName(context),
|
hintText: controller.activeSpacesEntry.getName(context),
|
||||||
prefixIcon: controller.isSearchMode
|
prefixIcon: Padding(
|
||||||
? IconButton(
|
padding: const EdgeInsets.only(
|
||||||
tooltip: L10n.of(context)!.cancel,
|
left: 8.0,
|
||||||
icon: const Icon(Icons.close_outlined),
|
right: 4,
|
||||||
onPressed: controller.cancelSearch,
|
),
|
||||||
color: Theme.of(context).colorScheme.onBackground,
|
child: controller.isSearchMode
|
||||||
)
|
? IconButton(
|
||||||
: IconButton(
|
tooltip: L10n.of(context)!.cancel,
|
||||||
onPressed: Scaffold.of(context).openDrawer,
|
icon: const Icon(Icons.close_outlined),
|
||||||
icon: Icon(
|
onPressed: controller.cancelSearch,
|
||||||
Icons.menu,
|
|
||||||
color: Theme.of(context).colorScheme.onBackground,
|
color: Theme.of(context).colorScheme.onBackground,
|
||||||
|
)
|
||||||
|
: IconButton(
|
||||||
|
onPressed: Scaffold.of(context).openDrawer,
|
||||||
|
icon: Icon(
|
||||||
|
Icons.menu,
|
||||||
|
color:
|
||||||
|
Theme.of(context).colorScheme.onBackground,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
suffixIcon: Row(
|
suffixIcon: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: controller.isSearchMode
|
children: controller.isSearchMode
|
||||||
|
@ -25,6 +25,6 @@ extension StringColor on String {
|
|||||||
number += codeUnitAt(i);
|
number += codeUnitAt(i);
|
||||||
}
|
}
|
||||||
number = (number % 12) * 25.5;
|
number = (number % 12) * 25.5;
|
||||||
return HSLColor.fromAHSL(1, number, 1, 0.7).toColor();
|
return HSLColor.fromAHSL(1, number, 1, 0.40).toColor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user