Skip to content

Commit 3e9e209

Browse files
committed
icon: Add icon for switch account, from Figma
taken from Figma: https://www.figma.com/design/1JTNtYo9memgW7vV6d0ygq/Zulip-Mobile?node-id=6141-40422&t
1 parent 0417c87 commit 3e9e209

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

assets/icons/arrow_left_right.svg

Lines changed: 1 addition & 0 deletions
Loading

lib/widgets/home.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -553,11 +553,8 @@ class _SwitchAccountButton extends _MenuButton {
553553
const _SwitchAccountButton();
554554

555555
@override
556-
// TODO(design): choose an icon
557-
IconData? get icon => null;
558-
559-
@override
560-
Widget buildLeading(BuildContext context) => const SizedBox.shrink();
556+
557+
IconData? get icon => ZulipIcons.arrow_left_right;
561558

562559
@override
563560
String label(ZulipLocalizations zulipLocalizations) {

lib/widgets/icons.dart

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,20 @@ abstract final class ZulipIcons {
2727
/// The Zulip custom icon "arrow_down".
2828
static const IconData arrow_down = IconData(0xf101, fontFamily: "Zulip Icons");
2929

30+
/// The Zulip custom icon "arrow_left_right".
31+
static const IconData arrow_left_right = IconData(0xf102, fontFamily: "Zulip Icons");
32+
3033
/// The Zulip custom icon "arrow_right".
31-
static const IconData arrow_right = IconData(0xf102, fontFamily: "Zulip Icons");
34+
static const IconData arrow_right = IconData(0xf103, fontFamily: "Zulip Icons");
3235

3336
/// The Zulip custom icon "at_sign".
34-
static const IconData at_sign = IconData(0xf103, fontFamily: "Zulip Icons");
37+
static const IconData at_sign = IconData(0xf104, fontFamily: "Zulip Icons");
3538

3639
/// The Zulip custom icon "attach_file".
37-
static const IconData attach_file = IconData(0xf104, fontFamily: "Zulip Icons");
40+
static const IconData attach_file = IconData(0xf105, fontFamily: "Zulip Icons");
3841

3942
/// The Zulip custom icon "bot".
40-
static const IconData bot = IconData(0xf105, fontFamily: "Zulip Icons");
43+
static const IconData bot = IconData(0xf106, fontFamily: "Zulip Icons");
4144

4245
/// The Zulip custom icon "camera".
4346
static const IconData camera = IconData(0xf106, fontFamily: "Zulip Icons");

0 commit comments

Comments
 (0)