forked from Nexus/nexus
Compare commits
4 commits
c898b2671a
...
33c3a568f9
| Author | SHA1 | Date | |
|---|---|---|---|
|
33c3a568f9 |
|||
|
561f6ecc84 |
|||
|
a7ccf0ff00 |
|||
|
0e984fd95b |
3 changed files with 6 additions and 6 deletions
|
|
@ -62,8 +62,8 @@ class AvatarOrHash extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
fit: .cover,
|
fit: .cover,
|
||||||
loadingBuilder: (_, child, loadingProgress) =>
|
loadingBuilder: (_, child, loadingProgress) =>
|
||||||
loadingProgress == null ? child : box,
|
loadingProgress == null ? child : fallback ?? box,
|
||||||
errorBuilder: (_, _, _) => box,
|
errorBuilder: (_, _, _) => fallback ?? box,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ class EventRenderer extends ConsumerWidget {
|
||||||
MembershipContent content => switch (event.previousContent) {
|
MembershipContent content => switch (event.previousContent) {
|
||||||
MembershipContent(:final status) =>
|
MembershipContent(:final status) =>
|
||||||
status == content.status ? null : MembershipRenderer(event),
|
status == content.status ? null : MembershipRenderer(event),
|
||||||
_ => null,
|
_ => MembershipRenderer(event),
|
||||||
},
|
},
|
||||||
|
|
||||||
AvatarContent() => GenericEventRenderer(Icons.interests, [
|
AvatarContent() => GenericEventRenderer(Icons.interests, [
|
||||||
|
|
@ -80,12 +80,12 @@ class EventRenderer extends ConsumerWidget {
|
||||||
Text("created the room"),
|
Text("created the room"),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
PowerLevelsContent() => GenericEventRenderer(Icons.add, [
|
PowerLevelsContent() => GenericEventRenderer(Icons.power, [
|
||||||
MessageDisplayname(event),
|
MessageDisplayname(event),
|
||||||
Text("changed the room's power levels"),
|
Text("changed the room's power levels"),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
JoinRulesContent() => GenericEventRenderer(Icons.add, [
|
JoinRulesContent() => GenericEventRenderer(Icons.rule, [
|
||||||
MessageDisplayname(event),
|
MessageDisplayname(event),
|
||||||
Text("changed the room's join rules"),
|
Text("changed the room's join rules"),
|
||||||
]),
|
]),
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ flutter.buildFlutterApplication {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -D assets/icon.svg $out/share/icons/hicolor/scalable/apps/nexus.svg
|
install -D assets/icon.svg $out/share/icons/hicolor/scalable/apps/nexus.svg
|
||||||
install -Dm755 linux/nexus.federated.Nexus.desktop -t $out/share/applications
|
install -Dm755 linux/nexus.federated.Nexus.desktop -t $out/share/applications
|
||||||
wrapProgram $out/bin/nexus \
|
wrapProgram $out/bin/nexus \
|
||||||
--suffix LD_LIBRARY_PATH : $out/app/nexus/lib
|
--suffix LD_LIBRARY_PATH : $out/app/nexus/lib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue