"me-web?" 0.9.0: first it shows you where this leads, then it checks
- The first time you open the app, two short pages come before the check. The first shows a photo you take far from home going to a small computer in your house, and on to your parents' tablet a moment later. The second shows what that takes: a computer that stays on, and a connection with an address of its own. A house with its own number lets the visitor in; a block of flats that shares one number stops them at the main door. Many connections have their own address, and when one doesn't there is often a way round it. - Swipe, or press Next. Skip goes straight to the check. "What could I do with this?" on the first screen shows the two pages again. - The first screen now says only what the check finds out, so it no longer repeats the pages. - On Android the back button goes to the previous page, and closes the information and share panels. - Every language has the new words, written for people who are not technical; translations other than English and Italian are still drafts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012CzABvBkbcFqoHdmi8b9WB
This commit is contained in:
1 parent
e5163fb1a4
commit
f066ef106c
126 files changed
+1708
-160
No files matched your search
@@ -3,6 +3,7 @@ using Avalonia.Controls;
|
||||
using Avalonia.Headless;
|
||||
using Avalonia.Media.Imaging;
|
||||
using Avalonia.Threading;
|
||||
using Avalonia.VisualTree;
|
||||
|
||||
using MeWeb.App;
|
||||
using MeWeb.App.Services;
|
||||
@@ -32,6 +33,13 @@ await session.Dispatch(async () =>
|
||||
{
|
||||
Localizer.Instance.SetLanguage(Languages.Fallback);
|
||||
Shoot(width, 860, $"start-{code}", model => model.SelectedLanguage = Languages.Find(code) ?? Languages.Fallback);
|
||||
Localizer.Instance.SetLanguage(Languages.Find(code) ?? Languages.Fallback);
|
||||
Shoot(width, 860, $"intro1-{code}", model => model.ShowIntro = true);
|
||||
Shoot(width, 860, $"intro2-{code}", model =>
|
||||
{
|
||||
model.ShowIntro = true;
|
||||
model.IntroPage = 1;
|
||||
});
|
||||
continue;
|
||||
}
|
||||
Shoot(width, 900, $"contacts-{code}", model => model.ShowContacts = true);
|
||||
@@ -54,8 +62,12 @@ void Shoot(int width, int height, string name, Action<MainViewModel> prepare)
|
||||
var window = new Window { Width = width, Height = height, Content = view };
|
||||
window.Show();
|
||||
model.AvailableWidth = width;
|
||||
model.ShowIntro = false;
|
||||
foreach (var pages in view.GetVisualDescendants().OfType<Carousel>()) pages.PageTransition = null;
|
||||
prepare(model);
|
||||
for (var i = 0; i < 6; i++) Dispatcher.UIThread.RunJobs();
|
||||
foreach (var art in view.GetVisualDescendants().OfType<Animated>()) art.Hold();
|
||||
Dispatcher.UIThread.RunJobs();
|
||||
var frame = window.CaptureRenderedFrame();
|
||||
var path = Path.Combine(output, $"{name}.png");
|
||||
if (frame is not null)
|
||||
|
||||
Reference in new issue
Block a user