Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compose box redesign #928

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Binary file modified assets/icons/ZulipIcons.ttf
Binary file not shown.
3 changes: 3 additions & 0 deletions assets/icons/attach_file.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/camera.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/image.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/send.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions lib/widgets/color.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,13 @@ extension ColorExtension on Color {
((g * 255.0).round() & 0xff) << 8 |
((b * 255.0).round() & 0xff) << 0;
}

/// Makes a copy of this color with the alpha channel multiplied by `factor`.
///
/// `factor` must not be less than 0 or greater than 1.
Color withFadedAlpha(double factor) {
assert(factor >= 0);
assert(factor <= 1);
return withValues(alpha: a * factor);
}
}
Loading