changing mute and chat details icons (#1080)
* changing mute and chat details icons * update notifications icons and copy --------- Co-authored-by: ggurdin <ggurdin@gmail.com>
This commit is contained in:
parent
6091fecb09
commit
a7009e7b36
5 changed files with 24 additions and 10 deletions
|
|
@ -4515,5 +4515,7 @@
|
|||
"noCapacityLimit": "No capacity limit",
|
||||
"downloadGroupText": "Download group text",
|
||||
"spaceDescription": "Space description",
|
||||
"addSpaceDescription": "Add a space description"
|
||||
"addSpaceDescription": "Add a space description",
|
||||
"notificationsOn": "Notifications on",
|
||||
"notificationsOff": "Notifications off"
|
||||
}
|
||||
|
|
@ -123,7 +123,7 @@ class ChatView extends StatelessWidget {
|
|||
},
|
||||
),
|
||||
IconButton(
|
||||
icon: const Icon(Icons.info_outline),
|
||||
icon: const Icon(Icons.settings_outlined),
|
||||
tooltip: L10n.of(context)!.chatDetails,
|
||||
onPressed: () {
|
||||
if (GoRouterState.of(context).uri.path.endsWith('/details')) {
|
||||
|
|
|
|||
|
|
@ -748,15 +748,25 @@ class ChatListController extends State<ChatList>
|
|||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(
|
||||
// #Pangea
|
||||
// room.pushRuleState == PushRuleState.notify
|
||||
// ? Icons.notifications_off_outlined
|
||||
// : Icons.notifications_off,
|
||||
room.pushRuleState == PushRuleState.notify
|
||||
? Icons.notifications_off_outlined
|
||||
: Icons.notifications_off,
|
||||
? Icons.notifications_on_outlined
|
||||
: Icons.notifications_off_outlined,
|
||||
// Pangea#
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
Text(
|
||||
// #Pangea
|
||||
// room.pushRuleState == PushRuleState.notify
|
||||
// ? L10n.of(context)!.muteChat
|
||||
// : L10n.of(context)!.unmuteChat,
|
||||
room.pushRuleState == PushRuleState.notify
|
||||
? L10n.of(context)!.muteChat
|
||||
: L10n.of(context)!.unmuteChat,
|
||||
? L10n.of(context)!.notificationsOn
|
||||
: L10n.of(context)!.notificationsOff,
|
||||
// Pangea#
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
|
|
@ -350,7 +350,9 @@ class PangeaChatDetailsView extends StatelessWidget {
|
|||
if (isGroupChat)
|
||||
ListTile(
|
||||
title: Text(
|
||||
L10n.of(context)!.muteChat,
|
||||
room.pushRuleState == PushRuleState.notify
|
||||
? L10n.of(context)!.notificationsOn
|
||||
: L10n.of(context)!.notificationsOff,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
fontWeight: FontWeight.bold,
|
||||
|
|
@ -362,8 +364,8 @@ class PangeaChatDetailsView extends StatelessWidget {
|
|||
foregroundColor: iconColor,
|
||||
child: Icon(
|
||||
room.pushRuleState == PushRuleState.notify
|
||||
? Icons.volume_up
|
||||
: Icons.volume_off,
|
||||
? Icons.notifications_on_outlined
|
||||
: Icons.notifications_off_outlined,
|
||||
),
|
||||
),
|
||||
onTap: controller.toggleMute,
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ class ChatSettingsPopupMenuState extends State<ChatSettingsPopupMenu> {
|
|||
value: ChatPopupMenuActions.details,
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.info_outline_rounded),
|
||||
const Icon(Icons.settings_outlined),
|
||||
const SizedBox(width: 12),
|
||||
Text(L10n.of(context)!.chatDetails),
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue