mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-17 06:20:44 +01:00
design: Replace anime images with neutral cupertino icons
This commit is contained in:
parent
8a6d726b8c
commit
908d428220
Binary file not shown.
Before Width: | Height: | Size: 51 KiB |
Binary file not shown.
Before Width: | Height: | Size: 52 KiB |
@ -1,3 +1,4 @@
|
|||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||||
@ -29,7 +30,7 @@ class ChatEncryptionSettingsView extends StatelessWidget {
|
|||||||
onPressed: () =>
|
onPressed: () =>
|
||||||
VRouter.of(context).toSegments(['rooms', controller.roomId!]),
|
VRouter.of(context).toSegments(['rooms', controller.roomId!]),
|
||||||
),
|
),
|
||||||
title: Text(L10n.of(context)!.endToEndEncryption),
|
title: Text(L10n.of(context)!.encryption),
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () => launchUrlString(AppConfig.encryptionTutorial),
|
onPressed: () => launchUrlString(AppConfig.encryptionTutorial),
|
||||||
@ -50,13 +51,12 @@ class ChatEncryptionSettingsView extends StatelessWidget {
|
|||||||
value: room.encrypted,
|
value: room.encrypted,
|
||||||
onChanged: controller.enableEncryption,
|
onChanged: controller.enableEncryption,
|
||||||
),
|
),
|
||||||
Center(
|
Icon(
|
||||||
child: Image.asset(
|
CupertinoIcons.lock_shield,
|
||||||
'assets/encryption.png',
|
size: 128,
|
||||||
width: 212,
|
color: Theme.of(context).colorScheme.onInverseSurface,
|
||||||
),
|
|
||||||
),
|
),
|
||||||
const Divider(height: 1),
|
const Divider(),
|
||||||
if (room.isDirectChat)
|
if (room.isDirectChat)
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(16.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:animations/animations.dart';
|
import 'package:animations/animations.dart';
|
||||||
@ -8,7 +9,6 @@ import 'package:fluffychat/pages/chat_list/chat_list.dart';
|
|||||||
import 'package:fluffychat/pages/chat_list/chat_list_item.dart';
|
import 'package:fluffychat/pages/chat_list/chat_list_item.dart';
|
||||||
import 'package:fluffychat/pages/chat_list/search_title.dart';
|
import 'package:fluffychat/pages/chat_list/search_title.dart';
|
||||||
import 'package:fluffychat/pages/chat_list/space_view.dart';
|
import 'package:fluffychat/pages/chat_list/space_view.dart';
|
||||||
import 'package:fluffychat/pages/chat_list/start_chat_fab.dart';
|
|
||||||
import 'package:fluffychat/pages/chat_list/stories_header.dart';
|
import 'package:fluffychat/pages/chat_list/stories_header.dart';
|
||||||
import 'package:fluffychat/utils/adaptive_bottom_sheet.dart';
|
import 'package:fluffychat/utils/adaptive_bottom_sheet.dart';
|
||||||
import 'package:fluffychat/utils/matrix_sdk_extensions/client_stories_extension.dart';
|
import 'package:fluffychat/utils/matrix_sdk_extensions/client_stories_extension.dart';
|
||||||
@ -197,22 +197,11 @@ class ChatListViewBody extends StatelessWidget {
|
|||||||
!controller.isSearchMode) ...[
|
!controller.isSearchMode) ...[
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(32.0),
|
padding: const EdgeInsets.all(32.0),
|
||||||
child: Column(
|
child: Icon(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
CupertinoIcons.chat_bubble_2,
|
||||||
children: [
|
size: 128,
|
||||||
Image.asset(
|
color:
|
||||||
'assets/start_chat.png',
|
Theme.of(context).colorScheme.onInverseSurface,
|
||||||
height: 256,
|
|
||||||
),
|
|
||||||
const Divider(height: 1),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Center(
|
|
||||||
child: StartChatFloatingActionButton(
|
|
||||||
activeFilter: controller.activeFilter,
|
|
||||||
roomsIsEmpty: true,
|
|
||||||
scrolledToTop: controller.scrolledToTop,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -192,7 +192,6 @@ class ChatListView extends StatelessWidget {
|
|||||||
VRouter.of(context).to('/newprivatechat'),
|
VRouter.of(context).to('/newprivatechat'),
|
||||||
helpLabel: L10n.of(context)!.newChat,
|
helpLabel: L10n.of(context)!.newChat,
|
||||||
child: selectMode == SelectMode.normal &&
|
child: selectMode == SelectMode.normal &&
|
||||||
controller.filteredRooms.isNotEmpty &&
|
|
||||||
!controller.isSearchMode
|
!controller.isSearchMode
|
||||||
? StartChatFloatingActionButton(
|
? StartChatFloatingActionButton(
|
||||||
activeFilter: controller.activeFilter,
|
activeFilter: controller.activeFilter,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user