Skip to content

Commit

Permalink
chore: Adjust button icon colors
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed Feb 2, 2025
1 parent 6bcef04 commit 4429368
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pages/chat/chat_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'package:desktop_drop/desktop_drop.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:matrix/matrix.dart';

import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/config/themes.dart';
import 'package:fluffychat/pages/chat/chat.dart';
import 'package:fluffychat/pages/chat/chat_app_bar_list_tile.dart';
Expand Down Expand Up @@ -114,7 +115,8 @@ class ChatView extends StatelessWidget {
];
} else if (!controller.room.isArchived) {
return [
if (Matrix.of(context).voipPlugin != null &&
if (AppConfig.experimentalVoip &&
Matrix.of(context).voipPlugin != null &&
controller.room.isDirectChat)
IconButton(
onPressed: controller.onPhoneButtonTap,
Expand Down
2 changes: 2 additions & 0 deletions lib/pages/chat_details/chat_details_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ class ChatDetailsView extends StatelessWidget {
label: Text(L10n.of(context).setChatDescription),
icon: const Icon(Icons.edit_outlined),
style: TextButton.styleFrom(
iconColor:
theme.colorScheme.onSecondaryContainer,
backgroundColor:
theme.colorScheme.secondaryContainer,
foregroundColor:
Expand Down
1 change: 1 addition & 0 deletions lib/pages/device_settings/device_settings_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class DevicesSettingsView extends StatelessWidget {
L10n.of(context).removeAllOtherDevices,
),
style: TextButton.styleFrom(
iconColor: theme.colorScheme.onErrorContainer,
foregroundColor:
theme.colorScheme.onErrorContainer,
backgroundColor:
Expand Down

0 comments on commit 4429368

Please sign in to comment.