All checks were successful
release / release (push) Successful in 10m13s
Replaces the web app (youtube.com/tv in Chromium) with a native Rust + Slint client on sf-ui, built on Netflex TV's page engine. - InnerTube: web client for public pages, the TV client with the account's OAuth token for personal ones, visionOS (direct URLs) for streams, the TV client with yt-dlp's ejs solver (QuickJS) as fallback. - One version, no ads: ad breaks are never requested, ad renderers are skipped in feeds. SponsorBlock skips sponsored parts. - Sign-in with a QR code / youtube.com/activate (OAuth device flow). - Signed out: subscriptions and history on the TV; a home filled with this week's popular Hungarian videos when YouTube's is empty. - Playback: one-quality DASH manifest for GStreamer, H.264 up to 1080p or AV1 up to 4K, captions, quality switching, up next, resume. - Release builds for x86-64 and the Raspberry Pi (aarch64). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
// The toast over any page.
|
|
|
|
import { Tv, GlassRect, GlassPane, Icon } from "@sf-ui/sf-ui.slint";
|
|
|
|
// A short message at the bottom ("Elmentve", errors).
|
|
export component Toast inherits Rectangle {
|
|
in property <string> text;
|
|
in property <bool> bad;
|
|
out property <float> t: self.text != "" ? 1 : 0;
|
|
animate t { duration: 300ms; easing: cubic-bezier(0.3, 1.18, 0.4, 1); }
|
|
pane := GlassPane {
|
|
x: (root.width - self.width) / 2;
|
|
y: root.height - (64 + 96 * root.t) * Tv.u;
|
|
width: min(1400 * Tv.u, label.preferred-width + 140 * Tv.u);
|
|
height: 80 * Tv.u;
|
|
radius: self.height / 2;
|
|
frost: 2.4;
|
|
tint: Tv.smoke.with-alpha(0.5);
|
|
glow: root.bad ? Tv.danger : #ffffff;
|
|
lit: 0.3;
|
|
alpha: root.t;
|
|
HorizontalLayout {
|
|
padding-left: 36 * Tv.u;
|
|
padding-right: 36 * Tv.u;
|
|
spacing: 14 * Tv.u;
|
|
alignment: center;
|
|
opacity: root.t;
|
|
Icon {
|
|
y: (parent.height - self.height) / 2;
|
|
name: root.bad ? "warning" : "check";
|
|
size: 30 * Tv.u;
|
|
ink: root.bad ? Tv.danger-ink : Tv.ok-ink;
|
|
}
|
|
label := Text {
|
|
vertical-alignment: center;
|
|
text: root.text;
|
|
font-size: 25 * Tv.u;
|
|
font-weight: 600;
|
|
color: Tv.text;
|
|
overflow: elide;
|
|
}
|
|
}
|
|
}
|
|
out property <[GlassRect]> glass: [pane.glass];
|
|
}
|