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