diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 9979541..ab3db9d 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -11634,3 +11634,164 @@ bzip2/libbzip2 version 1.1.0 of 6 September 2010 -------------------------------------------------------------------------- ```` + +## Bundled fonts, icons and emoji + + + +The user interface bundles these assets (in crates/voelin-ui): + +- Inter (the UI font), Copyright (c) 2016 The Inter Project Authors, under + the SIL Open Font License 1.1 (OFL-1.1; text below). +- Lucide icons (lucide-static 1.48.0), Copyright (c) Lucide Icons and + Contributors, under the ISC License; the icons derived from Feather are + Copyright (c) 2013-present Cole Bemis, under the MIT License (texts below). +- Twemoji 15.0 (the emoji images): Twemoji graphics by Twitter, Inc and other + contributors, licensed under CC-BY 4.0 + (https://creativecommons.org/licenses/by/4.0/). The SVG files are packed + into one archive; their content is unchanged. + +### OFL-1.1 (Inter) + +````text +Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION AND CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. +```` + +### ISC and MIT (Lucide, Feather) + +````text +ISC License + +Copyright (c) 2026 Lucide Icons and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +--- + +The following Lucide icons are derived from the Feather project: + +airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + +The MIT License (MIT) (for the icons listed above) + +Copyright (c) 2013-present Cole Bemis + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +```` diff --git a/about-assets.md b/about-assets.md new file mode 100644 index 0000000..5a84f3e --- /dev/null +++ b/about-assets.md @@ -0,0 +1,161 @@ + +## Bundled fonts, icons and emoji + + + +The user interface bundles these assets (in crates/voelin-ui): + +- Inter (the UI font), Copyright (c) 2016 The Inter Project Authors, under + the SIL Open Font License 1.1 (OFL-1.1; text below). +- Lucide icons (lucide-static 1.48.0), Copyright (c) Lucide Icons and + Contributors, under the ISC License; the icons derived from Feather are + Copyright (c) 2013-present Cole Bemis, under the MIT License (texts below). +- Twemoji 15.0 (the emoji images): Twemoji graphics by Twitter, Inc and other + contributors, licensed under CC-BY 4.0 + (https://creativecommons.org/licenses/by/4.0/). The SVG files are packed + into one archive; their content is unchanged. + +### OFL-1.1 (Inter) + +````text +Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION AND CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. +```` + +### ISC and MIT (Lucide, Feather) + +````text +ISC License + +Copyright (c) 2026 Lucide Icons and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +--- + +The following Lucide icons are derived from the Feather project: + +airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + +The MIT License (MIT) (for the icons listed above) + +Copyright (c) 2013-present Cole Bemis + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +```` diff --git a/crates/voelin-ui/src/chat.rs b/crates/voelin-ui/src/chat.rs index bc12847..1dcccf3 100644 --- a/crates/voelin-ui/src/chat.rs +++ b/crates/voelin-ui/src/chat.rs @@ -125,6 +125,7 @@ impl App { .iter() .map(|t| ChatTab { title: t.title.clone().into(), + name: t.title.trim_start_matches(['#', '@']).into(), kind: match t.target { ChatTarget::Server => 0, ChatTarget::Channel(_) => 1, diff --git a/crates/voelin-ui/src/dev.rs b/crates/voelin-ui/src/dev.rs index 0985617..cc52a53 100644 --- a/crates/voelin-ui/src/dev.rs +++ b/crates/voelin-ui/src/dev.rs @@ -334,6 +334,7 @@ fn demo_ui(app: &mut App) { }; app.add_message(id, message); } - app.set_status("Connected to Nightfall Guild (TeamSpeak 6 6.0.0-beta13.1)"); + // No toast over the screenshots. + app.set_status(""); app.refresh_all(); } diff --git a/crates/voelin-ui/ui/app.slint b/crates/voelin-ui/ui/app.slint index 5783d0a..39729ae 100644 --- a/crates/voelin-ui/ui/app.slint +++ b/crates/voelin-ui/ui/app.slint @@ -152,7 +152,7 @@ export component MainWindow inherits Window { toast := Toast { x: (parent.width - self.width) / 2; - y: Nav.narrow ? 68px : Theme.topbar-height + 8px; + y: parent.height - self.height - (Nav.narrow ? 140px : 96px); text: Bridge.status-text; } diff --git a/crates/voelin-ui/ui/bridge.slint b/crates/voelin-ui/ui/bridge.slint index 3d1edf6..5164a5a 100644 --- a/crates/voelin-ui/ui/bridge.slint +++ b/crates/voelin-ui/ui/bridge.slint @@ -61,7 +61,10 @@ export struct MemberItem { } export struct ChatTab { + // "#Lobby", "@alice", "Server" title: string, + // The name alone ("Lobby"). + name: string, // 0 = server chat, 1 = channel chat, 2 = private chat kind: int, id: int, diff --git a/crates/voelin-ui/ui/components/button.slint b/crates/voelin-ui/ui/components/button.slint index c62bad7..f988021 100644 --- a/crates/voelin-ui/ui/components/button.slint +++ b/crates/voelin-ui/ui/components/button.slint @@ -47,8 +47,8 @@ export component Button inherits Rectangle { : kind == ButtonKind.danger ? (active ? Theme.danger : touch.has-hover ? Theme.danger-soft.brighter(0.3) : Theme.danger-soft) : kind == ButtonKind.ghost ? (active ? Theme.surface-4 : touch.has-hover ? Theme.surface-3 : transparent) : (active ? Theme.surface-4 : touch.has-hover ? Theme.surface-3 : Theme.surface-2); - property ink: !enabled ? Theme.text-disabled - : kind == ButtonKind.primary ? Theme.on-accent + property ink: kind == ButtonKind.primary ? Theme.on-accent + : !enabled ? Theme.text-disabled : kind == ButtonKind.danger ? (active ? Theme.on-accent : Theme.danger) : checked ? Theme.accent-text : Theme.text; @@ -61,7 +61,7 @@ export component Button inherits Rectangle { background: fill; border-width: kind == ButtonKind.secondary || kind == ButtonKind.danger || checked ? 1px : 0px; border-color: checked ? Theme.accent : kind == ButtonKind.danger ? Theme.danger.transparentize(55%) : Theme.border-strong; - opacity: enabled ? 1.0 : 0.6; + opacity: enabled ? 1.0 : 0.5; animate background { duration: Theme.fast; } accessible-role: AccessibleRole.button; diff --git a/crates/voelin-ui/ui/components/overlay.slint b/crates/voelin-ui/ui/components/overlay.slint index 69c685a..b248cd9 100644 --- a/crates/voelin-ui/ui/components/overlay.slint +++ b/crates/voelin-ui/ui/components/overlay.slint @@ -176,14 +176,6 @@ export component Modal inherits Rectangle { accessible-label: root.title; // Clicks inside the card do not dismiss it. TouchArea { } - // A faint accent line along the top edge. - Rectangle { - y: 0; - x: Theme.radius-xl; - width: parent.width - 2 * Theme.radius-xl; - height: 1px; - background: @linear-gradient(90deg, transparent 0%, Theme.accent 50%, transparent 100%); - } VerticalLayout { padding: Theme.space-6; spacing: Theme.space-5; diff --git a/crates/voelin-ui/ui/components/tabs.slint b/crates/voelin-ui/ui/components/tabs.slint index 644cfbb..2af405c 100644 --- a/crates/voelin-ui/ui/components/tabs.slint +++ b/crates/voelin-ui/ui/components/tabs.slint @@ -9,6 +9,7 @@ export component SegmentedTabs inherits Rectangle { callback selected(int); min-height: Theme.control-height; + max-height: Theme.control-height; horizontal-stretch: 1; vertical-stretch: 0; border-radius: Theme.radius-md; diff --git a/crates/voelin-ui/ui/screens/chat.slint b/crates/voelin-ui/ui/screens/chat.slint index 7685ee0..66aa3a5 100644 --- a/crates/voelin-ui/ui/screens/chat.slint +++ b/crates/voelin-ui/ui/screens/chat.slint @@ -125,11 +125,13 @@ export component ChatView inherits VerticalLayout { // Hide the header (mobile shows its own). in property header: true; property tab-title: Bridge.current-tab >= 0 && Bridge.current-tab < Bridge.tabs.length ? Bridge.tabs[Bridge.current-tab].title : ""; + property tab-name: Bridge.current-tab >= 0 && Bridge.current-tab < Bridge.tabs.length ? Bridge.tabs[Bridge.current-tab].name : ""; + property tab-kind: Bridge.current-tab >= 0 && Bridge.current-tab < Bridge.tabs.length ? Bridge.tabs[Bridge.current-tab].kind : 0; property tab-topic: Bridge.current-tab >= 0 && Bridge.current-tab < Bridge.tabs.length ? Bridge.tabs[Bridge.current-tab].topic : ""; if root.header: PageHeader { - icon: Icons.hash; - title: root.tab-title; + icon: root.tab-kind == 1 ? Icons.hash : root.tab-kind == 2 ? Icons.at-sign : Icons.message-square; + title: root.tab-name; description: root.tab-topic != "" ? root.tab-topic : Bridge.server-title; if Bridge.presence-source != "": Chip { text: Bridge.presence-source; diff --git a/crates/voelin-ui/ui/screens/dialogs.slint b/crates/voelin-ui/ui/screens/dialogs.slint index ce9c4be..f5da318 100644 --- a/crates/voelin-ui/ui/screens/dialogs.slint +++ b/crates/voelin-ui/ui/screens/dialogs.slint @@ -450,7 +450,7 @@ export component Credits inherits VerticalLayout { wrap: word-wrap; } Text { - text: "Lucide icons — Copyright (c) Lucide Icons and Contributors, ISC License."; + text: "Lucide icons — Copyright (c) Lucide Icons and Contributors, ISC License; icons from Feather Copyright (c) 2013-present Cole Bemis, MIT License."; color: Theme.text-secondary; font-size: Theme.font-sm; wrap: word-wrap; diff --git a/crates/voelin-ui/ui/screens/home.slint b/crates/voelin-ui/ui/screens/home.slint index d32ab46..abfb04b 100644 --- a/crates/voelin-ui/ui/screens/home.slint +++ b/crates/voelin-ui/ui/screens/home.slint @@ -138,15 +138,20 @@ export component HomePage inherits Rectangle { background: @linear-gradient(115deg, #0e1d5c 0%, #1c1470 45%, #3a1f86 75%, #0b2a6b 100%); border-width: 1px; border-color: Theme.border-strong; - // A moon. - Rectangle { - x: parent.width - 260px; - y: 24px; - width: 150px; - height: 150px; - border-radius: 75px; - background: @radial-gradient(circle, #9fb6ff 0%, #5a6fd6 55%, #2a2f86 100%); - opacity: 0.55; + // A moon: soft rings (the software renderer clips no + // gradients to circles). + for ring[i] in [ + { size: 190px, color: #7f95ff14 }, + { size: 160px, color: #8fa4ff26 }, + { size: 132px, color: #a9b9ff5a }, + { size: 118px, color: #c4d0ffa0 }, + ]: Rectangle { + x: parent.width - 180px - ring.size / 2; + y: 100px - ring.size / 2; + width: ring.size; + height: ring.size; + border-radius: ring.size / 2; + background: ring.color; } for star[i] in [ { x: 0.55, y: 0.18 }, { x: 0.62, y: 0.52 }, { x: 0.71, y: 0.1 }, { x: 0.9, y: 0.3 }, diff --git a/scripts/notices.sh b/scripts/notices.sh index 945755d..6152643 100755 --- a/scripts/notices.sh +++ b/scripts/notices.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash # Regenerate THIRD_PARTY_NOTICES.md from Cargo.lock with cargo-about -# (about.toml, about.hbs). The app shows the file in its About page +# (about.toml, about.hbs), followed by about-assets.md (the fonts, icons and +# emoji the UI bundles, which cargo-about does not see). The app shows the +# file in its About page # (voelin_platform::notices::text()), so it is committed; run this after changing # dependencies. # @@ -44,6 +46,7 @@ if grep -E "WARN|ERROR" "$tmp/log" >&2; then echo "cargo-about reported problems (above); fix about.toml" >&2 exit 1 fi +cat about-assets.md >>"$tmp/$OUT" if $check; then if ! diff -u "$OUT" "$tmp/$OUT" >"$tmp/diff"; then