bundle homeserver icons
This commit is contained in:
parent
9a8a54c4a3
commit
6160ce692f
4 changed files with 174 additions and 9 deletions
150
assets/bundled/federated_nexus.svg
Normal file
150
assets/bundled/federated_nexus.svg
Normal file
|
|
@ -0,0 +1,150 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="100mm"
|
||||||
|
height="100mm"
|
||||||
|
viewBox="0 0 100 100"
|
||||||
|
version="1.1"
|
||||||
|
id="svg1"
|
||||||
|
xml:space="preserve"
|
||||||
|
inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
|
||||||
|
sodipodi:docname="icon.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
||||||
|
id="namedview1"
|
||||||
|
pagecolor="#505050"
|
||||||
|
bordercolor="#eeeeee"
|
||||||
|
borderopacity="1"
|
||||||
|
inkscape:showpageshadow="0"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:deskcolor="#505050"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
inkscape:zoom="1.0847363"
|
||||||
|
inkscape:cx="57.61769"
|
||||||
|
inkscape:cy="214.33781"
|
||||||
|
inkscape:window-width="1896"
|
||||||
|
inkscape:window-height="963"
|
||||||
|
inkscape:window-x="35"
|
||||||
|
inkscape:window-y="32"
|
||||||
|
inkscape:window-maximized="0"
|
||||||
|
inkscape:current-layer="layer1" /><defs
|
||||||
|
id="defs1"><linearGradient
|
||||||
|
id="linearGradient10"
|
||||||
|
inkscape:collect="always"><stop
|
||||||
|
style="stop-color:#c7a312;stop-opacity:1;"
|
||||||
|
offset="0"
|
||||||
|
id="stop10" /><stop
|
||||||
|
style="stop-color:#26a0b3;stop-opacity:1;"
|
||||||
|
offset="1"
|
||||||
|
id="stop11" /></linearGradient><linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient10"
|
||||||
|
id="linearGradient11"
|
||||||
|
x1="20.031296"
|
||||||
|
y1="32.697563"
|
||||||
|
x2="90.709213"
|
||||||
|
y2="66.3423"
|
||||||
|
gradientUnits="userSpaceOnUse" /></defs><g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"><rect
|
||||||
|
style="fill:url(#linearGradient11);fill-opacity:1;stroke:none;stroke-width:7.99999;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none"
|
||||||
|
id="rect10"
|
||||||
|
width="100"
|
||||||
|
height="100"
|
||||||
|
x="0"
|
||||||
|
y="0"
|
||||||
|
ry="28.294127" /><path
|
||||||
|
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none"
|
||||||
|
d="M 19.377906,68.106953 80.937684,32.43771"
|
||||||
|
id="path10" /><path
|
||||||
|
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none"
|
||||||
|
d="m 19.044488,32.469148 61.61782,35.569625"
|
||||||
|
id="path9" /><path
|
||||||
|
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none"
|
||||||
|
d="M 50,85.574911 V 14.425087"
|
||||||
|
id="path8" /><circle
|
||||||
|
style="fill:none;stroke:#ffffff;stroke-width:7.11498;stroke-linecap:round;stroke-linejoin:round"
|
||||||
|
id="path1"
|
||||||
|
cx="50"
|
||||||
|
cy="50"
|
||||||
|
r="35.574913" /><circle
|
||||||
|
style="fill:#09bd05;stroke:#ffffff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;fill-opacity:1;stroke-dasharray:none"
|
||||||
|
id="path2"
|
||||||
|
cx="50"
|
||||||
|
cy="84.604881"
|
||||||
|
r="8.2508707" /><circle
|
||||||
|
style="fill:#fe1e24;stroke:#ffffff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;fill-opacity:1;stroke-dasharray:none"
|
||||||
|
id="circle2"
|
||||||
|
cx="50"
|
||||||
|
cy="15.395123"
|
||||||
|
r="8.2508707" /><circle
|
||||||
|
style="fill:#fe941d;stroke:#ffffff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;fill-opacity:1;stroke-dasharray:none"
|
||||||
|
id="circle3"
|
||||||
|
cx="-68.30127"
|
||||||
|
cy="52.906147"
|
||||||
|
r="8.2508707"
|
||||||
|
transform="rotate(-120)" /><circle
|
||||||
|
style="fill:#001996;stroke:#ffffff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;fill-opacity:1;stroke-dasharray:none"
|
||||||
|
id="circle4"
|
||||||
|
cx="-68.30127"
|
||||||
|
cy="-16.30361"
|
||||||
|
r="8.2508707"
|
||||||
|
transform="rotate(-120)" /><circle
|
||||||
|
style="fill:#ffff04;stroke:#ffffff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;fill-opacity:1;stroke-dasharray:none"
|
||||||
|
id="circle5"
|
||||||
|
cx="-18.301271"
|
||||||
|
cy="102.90615"
|
||||||
|
r="8.2508707"
|
||||||
|
transform="rotate(-60)" /><circle
|
||||||
|
style="fill:#770287;stroke:#ffffff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;fill-opacity:1;stroke-dasharray:none"
|
||||||
|
id="circle6"
|
||||||
|
cx="-18.301271"
|
||||||
|
cy="33.696392"
|
||||||
|
r="8.2508707"
|
||||||
|
transform="rotate(-60)" /><circle
|
||||||
|
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:6.75;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none"
|
||||||
|
id="path7"
|
||||||
|
cx="50"
|
||||||
|
cy="50"
|
||||||
|
r="9.7918472" /><g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
id="layer1-3"
|
||||||
|
transform="matrix(0.08246781,0,0,0.08246781,38.828362,38.828362)"
|
||||||
|
style="stroke:#ffffff"><text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-size:96.3615px;line-height:0;font-family:'Noto Serif';-inkscape-font-specification:'Noto Serif, Heavy';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;text-align:end;text-anchor:end;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
x="-305.64749"
|
||||||
|
y="194.14493"
|
||||||
|
id="text2819"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
id="tspan2817"
|
||||||
|
style="stroke:#ffffff;stroke-width:0"
|
||||||
|
x="-305.64749"
|
||||||
|
y="194.14493" /></text><circle
|
||||||
|
style="fill:#354b5f;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
id="path342"
|
||||||
|
cx="135.46666"
|
||||||
|
cy="135.46666"
|
||||||
|
r="135.46666" /><text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-size:96.3615px;line-height:0;font-family:'Noto Serif';-inkscape-font-specification:'Noto Serif, Heavy';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;text-align:end;text-anchor:end;fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-dasharray:none;stroke-opacity:1"
|
||||||
|
x="-305.64749"
|
||||||
|
y="194.14493"
|
||||||
|
id="text2819-3"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
id="tspan2817-5"
|
||||||
|
style="stroke:#ffffff;stroke-width:0"
|
||||||
|
x="-305.64749"
|
||||||
|
y="194.14493" /></text><g
|
||||||
|
aria-label="❯"
|
||||||
|
id="text2827-6"
|
||||||
|
style="font-size:132.452px;line-height:0;font-family:PowerlineSymbols;-inkscape-font-specification:'PowerlineSymbols, Normal';text-align:end;text-anchor:end;fill:#4e94e4;fill-opacity:1;stroke:#ffffff;stroke-width:0"><path
|
||||||
|
d="M 95.096912,209.8167 143.88912,135.46666 95.096912,61.116629 h 32.818568 l 47.92093,74.350031 -47.92093,74.35004 z"
|
||||||
|
id="path2883-2"
|
||||||
|
style="fill:#4e94e4;fill-opacity:1;stroke:#ffffff;stroke-width:0" /></g></g></g></svg>
|
||||||
|
After Width: | Height: | Size: 6.8 KiB |
11
assets/bundled/matrix.svg
Normal file
11
assets/bundled/matrix.svg
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 520 520">
|
||||||
|
<path d="M13.7,11.9v496.2h35.7V520H0V0h49.4v11.9H13.7z"/>
|
||||||
|
<path d="M166.3,169.2v25.1h0.7c6.7-9.6,14.8-17,24.2-22.2c9.4-5.3,20.3-7.9,32.5-7.9c11.7,0,22.4,2.3,32.1,6.8
|
||||||
|
c9.7,4.5,17,12.6,22.1,24c5.5-8.1,13-15.3,22.4-21.5c9.4-6.2,20.6-9.3,33.5-9.3c9.8,0,18.9,1.2,27.3,3.6c8.4,2.4,15.5,6.2,21.5,11.5
|
||||||
|
c6,5.3,10.6,12.1,14,20.6c3.3,8.5,5,18.7,5,30.7v124.1h-50.9V249.6c0-6.2-0.2-12.1-0.7-17.6c-0.5-5.5-1.8-10.3-3.9-14.3
|
||||||
|
c-2.2-4.1-5.3-7.3-9.5-9.7c-4.2-2.4-9.9-3.6-17-3.6c-7.2,0-13,1.4-17.4,4.1c-4.4,2.8-7.9,6.3-10.4,10.8c-2.5,4.4-4.2,9.4-5,15.1
|
||||||
|
c-0.8,5.6-1.3,11.3-1.3,17v103.3h-50.9v-104c0-5.5-0.1-10.9-0.4-16.3c-0.2-5.4-1.3-10.3-3.1-14.9c-1.8-4.5-4.8-8.2-9-10.9
|
||||||
|
c-4.2-2.7-10.3-4.1-18.5-4.1c-2.4,0-5.6,0.5-9.5,1.6c-3.9,1.1-7.8,3.1-11.5,6.1c-3.7,3-6.9,7.3-9.5,12.9c-2.6,5.6-3.9,13-3.9,22.1
|
||||||
|
v107.6h-50.9V169.2H166.3z"/>
|
||||||
|
<path d="M506.3,508.1V11.9h-35.7V0H520v520h-49.4v-11.9H506.3z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 958 B |
|
|
@ -1,4 +1,5 @@
|
||||||
import "package:freezed_annotation/freezed_annotation.dart";
|
import "package:freezed_annotation/freezed_annotation.dart";
|
||||||
|
import "package:material_ui/material_ui.dart";
|
||||||
|
|
||||||
part "homeserver.freezed.dart";
|
part "homeserver.freezed.dart";
|
||||||
|
|
||||||
|
|
@ -7,5 +8,5 @@ class const Homeserver({
|
||||||
required final String name,
|
required final String name,
|
||||||
required final String description,
|
required final String description,
|
||||||
required final Uri url,
|
required final Uri url,
|
||||||
required final String iconUrl,
|
required final Widget icon,
|
||||||
}) with _$Homeserver;
|
}) with _$Homeserver;
|
||||||
|
|
|
||||||
|
|
@ -190,31 +190,34 @@ class const SelectServerPage({super.key}) extends HookConsumerWidget {
|
||||||
name: "Matrix.org",
|
name: "Matrix.org",
|
||||||
description: "The Matrix.org Foundation offers the matrix.org homeserver as an easy entry point for anyone wanting to try out Matrix.",
|
description: "The Matrix.org Foundation offers the matrix.org homeserver as an easy entry point for anyone wanting to try out Matrix.",
|
||||||
url: .https("matrix.org"),
|
url: .https("matrix.org"),
|
||||||
iconUrl:
|
icon: SvgPicture.asset(
|
||||||
"https://raw.githubusercontent.com/element-hq/logos/refs/heads/master/matrix/matrix-favicon${Theme.brightnessOf(context) == Brightness.dark ? "-white" : ""}.png",
|
"assets/bundled/matrix.svg",
|
||||||
|
colorFilter: .mode(theme.colorScheme.onSurface, .srcIn),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
.new(
|
.new(
|
||||||
name: "Federated Nexus",
|
name: "Federated Nexus",
|
||||||
description: "Federated Nexus is a community resource hosting multiple FOSS (especially federated) services, including Matrix and Forgejo. By the same developers who made Nexus client.",
|
description: "Federated Nexus is a community resource hosting multiple FOSS (especially federated) services, including Matrix and Forgejo. By the same developers who made Nexus client.",
|
||||||
url: .https("federated.nexus"),
|
url: .https("federated.nexus"),
|
||||||
iconUrl: "https://federated.nexus/images/icon.png",
|
icon: SvgPicture.asset(
|
||||||
|
"assets/bundled/federated_nexus.svg",
|
||||||
|
),
|
||||||
),
|
),
|
||||||
// TODO: Add back unredacted when they have MAS, find where new favicon is
|
// TODO: Add back unredacted when they have MAS, find where new favicon is
|
||||||
// .new(
|
// .new(
|
||||||
// name: "Unredacted",
|
// name: "Unredacted",
|
||||||
// description: "Unredacted is a 501(c)(3) non-profit organization that builds Internet infrastructure and services to help people evade censorship and protect their right to privacy.",
|
// description: "Unredacted is a 501(c)(3) non-profit organization that builds Internet infrastructure and services to help people evade censorship and protect their right to privacy.",
|
||||||
// url: .https("unredacted.org", "services/si/matrix"),
|
// url: .https("unredacted.org", "services/si/matrix"),
|
||||||
// iconUrl: "https://unredacted.org/favicon.ico",
|
// icon: Image.network("https://unredacted.org/favicon.ico"),
|
||||||
// ),
|
// ),
|
||||||
].map(
|
].map(
|
||||||
(homeserver) => Card(
|
(homeserver) => Card(
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
enabled: !isLoading.value,
|
enabled: !isLoading.value,
|
||||||
title: Text(homeserver.name),
|
title: Text(homeserver.name),
|
||||||
leading: Image.network(
|
leading: SizedBox.square(
|
||||||
homeserver.iconUrl,
|
dimension: 32,
|
||||||
errorBuilder: (_, _, _) => SizedBox.shrink(),
|
child: homeserver.icon,
|
||||||
height: 32,
|
|
||||||
),
|
),
|
||||||
subtitle: Text(homeserver.description),
|
subtitle: Text(homeserver.description),
|
||||||
onTap: isLoading.value
|
onTap: isLoading.value
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue