Compare commits
38
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17249229c8 | ||
|
|
0f8647790d | ||
|
|
fbeb04385b | ||
|
|
9b08c3af4f | ||
|
|
318871033f | ||
|
|
cb4f8ec758 | ||
|
|
feef763035 | ||
|
|
d25dbf58dc | ||
|
|
568586c541 | ||
|
|
4841c27514 | ||
|
|
df0118ac52 | ||
|
|
e89cc3682a | ||
|
|
0822552830 | ||
|
|
ec01a7deb8 | ||
|
|
7adff685c0 | ||
|
|
c4642f1e99 | ||
|
|
51d9dd09c7 | ||
|
|
c1212644b0 | ||
|
|
c82636e1a9 | ||
|
|
9528128ca7 | ||
|
|
7a49b38cae | ||
|
|
c885bbd782 | ||
|
|
8502c1d194 | ||
|
|
8415bb5f37 | ||
|
|
66b85d3fcc | ||
|
|
3edb0d10be | ||
|
|
2dbc35b285 | ||
|
|
8a2cb92d8c | ||
|
|
0275e30103 | ||
|
|
ffdf3b6fc9 | ||
|
|
1defb71568 | ||
|
|
4ef84f2a97 | ||
|
|
84c335a929 | ||
|
|
f2bf577f34 | ||
|
|
565b8dbd6f | ||
|
|
5a102a4a37 | ||
|
|
c9ac348976 | ||
|
|
a311c8feb1 |
@@ -1,7 +1,8 @@
|
|||||||
# AGENTS — how to work in this repo
|
# AGENTS — how to work in this repo
|
||||||
|
|
||||||
This file is auto-read at the start of every session. The project keeps its
|
Auto-read at the start of every session: the rules, the invariants that break the product, and
|
||||||
memory as a linked map of markdown files — read it before doing anything.
|
the map to everything else. `ai.md` is the router, `docs/ai/*.md` is the subsystem truth,
|
||||||
|
`HANDOFF.md` is current state.
|
||||||
|
|
||||||
## ⚠️ CRITICAL: The Good Dog Rule
|
## ⚠️ CRITICAL: The Good Dog Rule
|
||||||
|
|
||||||
@@ -16,9 +17,8 @@ When the user asks for changes that would involve multiple integration tests:
|
|||||||
> *A good dog learns one trick perfectly before learning the next.*
|
> *A good dog learns one trick perfectly before learning the next.*
|
||||||
|
|
||||||
**No feature branches pre-1.0 (decided 2026-08-24):** solo dev, pre-1.0 — all
|
**No feature branches pre-1.0 (decided 2026-08-24):** solo dev, pre-1.0 — all
|
||||||
work lands directly on `main`, committed and pushed per work unit. No
|
work lands directly on `main`, committed per work unit. No `taskNN-*` branches, no PRs. The scope
|
||||||
`taskNN-*` branches, no PRs. The scope discipline above is about test focus,
|
discipline above is about test focus, not git mechanics.
|
||||||
not git mechanics.
|
|
||||||
|
|
||||||
**Commit / push policy (2026-08-30, user directive):** commit every work unit —
|
**Commit / push policy (2026-08-30, user directive):** commit every work unit —
|
||||||
committing is expected and never needs extra permission. Pushing is different:
|
committing is expected and never needs extra permission. Pushing is different:
|
||||||
@@ -27,48 +27,53 @@ that means commits land locally every partial; `git push` happens at the
|
|||||||
session's agreed checkpoint(s), not per-commit. When a milestone warrants a
|
session's agreed checkpoint(s), not per-commit. When a milestone warrants a
|
||||||
push the user will say so (or say "push it").
|
push the user will say so (or say "push it").
|
||||||
|
|
||||||
MUST read the architecture guide before planning or modifying the codebase:
|
## Onboarding (in order — and no further)
|
||||||
[`ai.md`](ai.md) (+ [`schema.md`](schema.md) for the memory-map conventions).
|
|
||||||
|
|
||||||
MUST read the coding guide before writing tests or code: the [Working
|
1. [`HANDOFF.md`](HANDOFF.md) — current state: branch, what's in flight, next action, landmines.
|
||||||
rules](#working-rules) in this file — this repo has no `CODING.md`;
|
**Trust it**; no branch hunting, no file-scanning to re-derive what it already says.
|
||||||
conventions live here and in `ai.md`.
|
2. [`ai.md`](ai.md) — the router: what the product is, the architecture table, and where each
|
||||||
|
subsystem's truth lives.
|
||||||
|
3. **The one** [`docs/ai/`](docs/ai/index.md) file that matches your task — not all of them.
|
||||||
|
The routing table at the top of `ai.md` picks it.
|
||||||
|
4. `<dir>/index.md` — the index for any directory you're about to touch.
|
||||||
|
|
||||||
## Onboarding (in order)
|
`TASKS.md` is the queue. Read it when the user asks what's next or status is part of the
|
||||||
|
question — it is not required reading to write code.
|
||||||
|
|
||||||
1. [`schema.md`](schema.md) — the memory-map conventions (what lives where, how to keep it true).
|
**Why it is this short:** the mandatory read used to be ~56k tokens of map, so sessions paid it
|
||||||
2. [`ai.md`](ai.md) — the AI guide: architecture, patterns, decisions, current state.
|
and then skimmed — which is exactly how stale facts survive. Read the one subsystem you touch.
|
||||||
3. [`TASKS.md`](TASKS.md) — the task catalog (index + queue state); open items and API research facts are in [`TASKS/`](TASKS/).
|
|
||||||
4. [`HANDOFF.md`](HANDOFF.md) — current operational state: what's in flight, landmines, next step.
|
|
||||||
5. `<dir>/index.md` — the index for any directory you're about to touch.
|
|
||||||
|
|
||||||
**If `HANDOFF.md` exists, trust it as current state** — no `fsck`, no branch
|
## Reading budget
|
||||||
hunting, no file-scanning to re-derive what it already states, unless it points
|
|
||||||
at a problem.
|
Enforced by `scripts/verify.sh`; a commit that pads instead of replacing fails the gate.
|
||||||
|
|
||||||
|
| File | Cap | Role |
|
||||||
|
|---|---|---|
|
||||||
|
| `AGENTS.md` | 210 lines | rules + invariants, always read |
|
||||||
|
| `ai.md` | 100 lines | router only — no narrative, no status |
|
||||||
|
| `HANDOFF.md` | 40 lines | current state, overwritten every time |
|
||||||
|
| `TASKS.md` | 120 lines | the active queue; done work moves to `TASKS/archive.md` |
|
||||||
|
|
||||||
|
If a fact does not fit, it belongs in `docs/ai/<subsystem>.md`, `MyMistakes.md`, or `git log`.
|
||||||
|
|
||||||
## Working rules
|
## Working rules
|
||||||
|
|
||||||
- **Never work without the map.** If the map contradicts the code, the code wins
|
- **Never work without the map.** If the map contradicts the code, the code wins and the facts
|
||||||
and the map gets fixed in the same change (stale facts are corrected, not appended).
|
your change **falsifies** are corrected in the same commit (stale facts are corrected, not
|
||||||
- **Every feature change ships with its memory update in the SAME commit:**
|
appended). Cosmetic drift — a stale task number, a heading — may wait for a sweep; it is not a
|
||||||
`ai.md` for architecture/patterns, `TASKS.md` for status, index files when
|
reason to stall a unit.
|
||||||
layout changes. No code commit without its docs — a follow-up "docs backfill"
|
- **Memory rides with the change, not as a unit of its own.** Correct what the change
|
||||||
commit is a broken rule, not a style.
|
falsifies in the same commit; a broad restatement can be batched at a milestone.
|
||||||
- **Rewrite `HANDOFF.md` at session end, compaction, or any interruption.**
|
- **`HANDOFF.md` is ≤40 lines and is overwritten, never appended:** branch, in flight, dirty
|
||||||
Never end a session with uncommitted work unrecorded — the handoff names the
|
files, next action, new landmines. History belongs to `git log`.
|
||||||
branch, the dirty files, and why it stopped.
|
- **The first time a fact costs a hunt, record it where it will be found:** paths / ports /
|
||||||
- **The first time a fact costs a hunt (secrets path, DB path, port, recovery
|
secrets / build commands → `docs/ai/environment.md`; subsystem traps → that subsystem's
|
||||||
source), record it** in `ai.md`/indexes/`HANDOFF.md` so the next session never
|
`docs/ai` file; one-off recipes → `MyMistakes.md` → Recipes registry.
|
||||||
re-hunts it.
|
- **Derived-solution rule (record once, then grep):** when you work out a reusable solution — a
|
||||||
- **Derived-solution rule (record once, then grep):** the moment you work out a
|
recipe, workaround, or how-to (e.g. how to shrink and re-encode an image for the README) —
|
||||||
reusable solution — a recipe, workaround, or how-to (e.g. how to shrink and
|
write it into `MyMistakes.md` **in the same session**, and **grep `MyMistakes.md` first** on
|
||||||
re-encode an image for the README) — write it into `MyMistakes.md` **in the same
|
any "I've done this before but have to figure it out again" wall. An un-recorded solution
|
||||||
session**, before you finish the task. And always **grep `MyMistakes.md` first**
|
guarantees the user hears it derived again (the image-shrink incident, 2026-08-29).
|
||||||
when you hit a "I've done this before but have to figure it out again" wall. A
|
|
||||||
solution recorded once ends the re-derivation loop; an un-recorded solution is a
|
|
||||||
guarantee you will re-derive it and make the user sit through it again. This is
|
|
||||||
the fix for the image-shrink incident (2026-08-29): the recipe was never written
|
|
||||||
down, so it had to be worked out from scratch a second time.
|
|
||||||
- **Follow existing conventions** — MVVM, `RelayCommand` for actions,
|
- **Follow existing conventions** — MVVM, `RelayCommand` for actions,
|
||||||
`ViewModelBase.SetProperty<T>()`, all styles in `Themes/Controls.xaml`
|
`ViewModelBase.SetProperty<T>()`, all styles in `Themes/Controls.xaml`
|
||||||
(merged once in `App.xaml`; never duplicate per-window).
|
(merged once in `App.xaml`; never duplicate per-window).
|
||||||
@@ -83,13 +88,63 @@ at a problem.
|
|||||||
- **Spin guard (objectively triggered):** a SECOND failed remedy for the same
|
- **Spin guard (objectively triggered):** a SECOND failed remedy for the same
|
||||||
symptom = STOP. No third guess over the same code. Research the established
|
symptom = STOP. No third guess over the same code. Research the established
|
||||||
answer externally, cite its URL in the commit message AND in `MyMistakes.md`,
|
answer externally, cite its URL in the commit message AND in `MyMistakes.md`,
|
||||||
then code it. You do not know everything — repeated failure is a research
|
then code it. Repeated failure is a research trigger, not a persistence trigger.
|
||||||
trigger, not a persistence trigger.
|
|
||||||
- **Response style: no default planning template.** Do the work, then report
|
- **Response style: no default planning template.** Do the work, then report
|
||||||
what changed and what's next. No "Plans & Pitfalls", pros/cons tables, or
|
what changed and what's next. No "Plans & Pitfalls", pros/cons tables, or
|
||||||
step-by-step plans unless the user asks for a plan first (see `ai.md`).
|
step-by-step plans unless the user asks for a plan first. A short diff-style summary beats a
|
||||||
- **No-Fluff Mode is available on request** — unpadded, ruthless review that
|
proposal document every time.
|
||||||
argues rather than reassures (see `ai.md`). Optional, never the default.
|
- **No-Fluff Mode is available on request.** Invoke with "no-fluff mode" (or similar) for
|
||||||
|
ruthless review instead of reassurance: strip pleasantries, emojis and padding; treat the
|
||||||
|
user's input as a draft to deconstruct; give unvarnished truth. Occasional and
|
||||||
|
explicitly-invoked — never the default.
|
||||||
|
|
||||||
|
## Invariants that break the product
|
||||||
|
|
||||||
|
Violating any of these breaks output, wipes a user's data, or ships a legal/trust breach. Each
|
||||||
|
line points at the file that explains it.
|
||||||
|
|
||||||
|
- **The Background is one locked layer per scene** — index 0, never addable/removable/reorderable;
|
||||||
|
Live is `DisplayCapture`, every other canonical scene is static art. Never feed a capture row to
|
||||||
|
the `ActiveBackgroundImage` overlay. → `docs/ai/capture.md`
|
||||||
|
- **Every global overlay composites on every render path** — pump, preview/thumbnails, scene dump.
|
||||||
|
A feature wired into one path is silently absent from the output. → `docs/ai/overlays.md`
|
||||||
|
- **`VideoFrame.Epoch` bumps on every frame from a recycling producer**, or the pump's paste cache
|
||||||
|
and full-render signature serve stale pixels. → `docs/ai/frame-pipeline.md`
|
||||||
|
- **Never demote threads inside `Parallel.For`** — `StripPool` owns four `BelowNormal` threads;
|
||||||
|
strips below 64 rows run inline. → `docs/ai/frame-pipeline.md`
|
||||||
|
- **Submit never blocks:** the encoder queue is bounded, the newest frame is dropped and counted,
|
||||||
|
and `StopAsync` flushes the encoder before awaiting the pump. → `docs/ai/frame-pipeline.md`
|
||||||
|
- **Audio closes before video:** `StopStream` runs `StopLive` (audio EOF) before stopping the pump;
|
||||||
|
the reverse order stalls on pipe backpressure. → `docs/ai/output.md`
|
||||||
|
- **rawvideo is paced by arrival, never by a timestamp** — no `-re`, and `nextTick` is never
|
||||||
|
rebased to wall-now (that turns a hitch into a silent time-lapse). → `docs/ai/output.md`
|
||||||
|
- **The encoder is probed, never libx264** — NVENC → QSV → AMF → OpenH264; no static or GPL codec
|
||||||
|
path. → `docs/ai/output.md`
|
||||||
|
- **REC and ON-AIR are radio-exclusive** — one ffmpeg, one output, in the UI and the VM.
|
||||||
|
→ `docs/ai/output.md`
|
||||||
|
- **ffmpeg is bundled and separate** — never downloaded at runtime, never linked into the app; the
|
||||||
|
pin stays `lgpl-shared`. → `docs/ai/product.md`
|
||||||
|
- **A modal's falsy result never falls through into its side effect** — Cancel on the recording
|
||||||
|
save dialog deletes the temp footage. → `docs/ai/output.md`
|
||||||
|
- **Any test that constructs `MainWindow` must point `LayoutPathOverride` at a temp DB** and clear
|
||||||
|
it in `finally`, or it overwrites the user's real layout. → `docs/ai/environment.md`
|
||||||
|
- **The vertical tier is geometry only**, and the Chat camera is rect-locked in the MODEL
|
||||||
|
(`VerticalShapeLocked`), not just in the UI. → `docs/ai/capture.md`
|
||||||
|
- **Never override the user's camera choice** — there is deliberately no fallback camera.
|
||||||
|
→ `docs/ai/capture.md`
|
||||||
|
- **Chat is rendered, never stored** — no history, no moderation log, no reward payloads; the
|
||||||
|
Store 11.12 certification answer depends on it. → `docs/ai/product.md`
|
||||||
|
- **Full trust only** — a packaged build flipped to `appContainer` silently loses recordings.
|
||||||
|
→ `docs/ai/product.md`
|
||||||
|
- **A `PopupRoot` has no visual parent** — ancestor walks must fall back to
|
||||||
|
`LogicalTreeHelper.GetParent`, or a popup row click reads as an outside click.
|
||||||
|
→ `docs/ai/ui-surface.md`
|
||||||
|
- **Licensing: no non-CC0 icon art, no dropped `THIRD-PARTY-NOTICES.txt`, no
|
||||||
|
licence-incompatible dependency, no unvetted ML model.** → `docs/ai/product.md`
|
||||||
|
- **The private-only broadcast lock is deliberate** — do not unlock it, do not raise it as a
|
||||||
|
question; it ends at v1 by the creator's ruling. → `docs/ai/product.md`
|
||||||
|
- **Read render numbers in Release only** — Debug pixel paths are several× slower.
|
||||||
|
→ `docs/ai/environment.md`
|
||||||
|
|
||||||
## Scope Lock
|
## Scope Lock
|
||||||
|
|
||||||
@@ -115,12 +170,12 @@ don't make it. A stable file touched by an unrelated task is a bug, not a featur
|
|||||||
|
|
||||||
### Pre-commit audit
|
### Pre-commit audit
|
||||||
|
|
||||||
Before every commit, run `scripts/scope-check.sh` with the declared file list.
|
One gate: `./scripts/verify.sh "<file1>" "<file2>" ...` with the declared scope. It runs the doc
|
||||||
If any file appears in `git diff` but not in the declared scope, either justify
|
budgets, a **clean** build (0 warnings), the test suite, and `scope-check.sh`. Docs-only units run
|
||||||
it or revert the change. The script enforces what the rule demands.
|
`scope-check.sh` alone.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./scripts/scope-check.sh "Models/Scene.cs" "ViewModels/MainViewModel.cs" "MainWindow.xaml"
|
./scripts/verify.sh "Models/Scene.cs" "ViewModels/MainViewModel.cs" "MainWindow.xaml"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
@@ -128,7 +183,7 @@ it or revert the change. The script enforces what the rule demands.
|
|||||||
From WSL, ALWAYS use the Windows dotnet host — Linux `dotnet` re-downloads the
|
From WSL, ALWAYS use the Windows dotnet host — Linux `dotnet` re-downloads the
|
||||||
`windowsdesktop.app.*` packs over the slow 9p bridge and re-restores twice (WPF
|
`windowsdesktop.app.*` packs over the slow 9p bridge and re-restores twice (WPF
|
||||||
`_wpftmp`), and `--no-restore` right after an interrupted restore produces bogus
|
`_wpftmp`), and `--no-restore` right after an interrupted restore produces bogus
|
||||||
`NETSDK1064` errors. See `ai.md` → Run for the exact commands and why.
|
`NETSDK1064` errors. See `docs/ai/environment.md` → Run for the exact commands and why.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
"/mnt/c/Program Files/dotnet/dotnet.exe" build "C:\Users\gramp\Documents\Code\projects\ytLive\ytLive.csproj"
|
"/mnt/c/Program Files/dotnet/dotnet.exe" build "C:\Users\gramp\Documents\Code\projects\ytLive\ytLive.csproj"
|
||||||
|
|||||||
@@ -6,6 +6,9 @@
|
|||||||
<Application.Resources>
|
<Application.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
|
<!-- Design tokens first: every style below resolves its colours, sizes and
|
||||||
|
radii from them (DESIGN.md is the source of truth). -->
|
||||||
|
<ResourceDictionary Source="Themes/Tokens.xaml"/>
|
||||||
<ResourceDictionary Source="Themes/Controls.xaml"/>
|
<ResourceDictionary Source="Themes/Controls.xaml"/>
|
||||||
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary.MergedDictionaries>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,92 @@
|
|||||||
|
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.
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
|
||||||
|
|
||||||
|
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:
|
||||||
|
https://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 & 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.
|
||||||
+10
-10
@@ -1,10 +1,10 @@
|
|||||||
<Window x:Class="ytLive.CameraPickerDialog"
|
<Window x:Class="ytLive.CameraPickerDialog"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
Title="Add Webcam" Height="340" Width="460"
|
Title="Add Webcam" Height="340" Width="460"
|
||||||
Icon="/Assets/llamacasty-icon.png"
|
Icon="/Assets/llamacasty-icon.png"
|
||||||
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
|
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
|
||||||
ShowInTaskbar="False" Background="#1a1a2e">
|
ShowInTaskbar="False" Background="{StaticResource Brush.Background}">
|
||||||
|
|
||||||
<Window.Resources>
|
<Window.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
@@ -21,10 +21,10 @@
|
|||||||
</Border>
|
</Border>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="IsMouseOver" Value="True">
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
<Setter TargetName="Bd" Property="Background" Value="#1c2a52"/>
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Brush.SurfaceContainerHigh}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsSelected" Value="True">
|
<Trigger Property="IsSelected" Value="True">
|
||||||
<Setter TargetName="Bd" Property="Background" Value="#2a2450"/>
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Brush.SurfaceContainerHigh}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</ControlTemplate.Triggers>
|
</ControlTemplate.Triggers>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
@@ -43,10 +43,10 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<TextBlock Grid.Row="0" Text="Add Webcam" FontSize="18" FontWeight="Bold"
|
<TextBlock Grid.Row="0" Text="Add Webcam" FontSize="18" FontWeight="Bold"
|
||||||
Foreground="#e0e0e0" Margin="0,0,0,14"/>
|
Foreground="{StaticResource Brush.OnSurface}" Margin="0,0,0,14"/>
|
||||||
|
|
||||||
<TextBlock Grid.Row="1" Text="Pick the camera to add to your stream."
|
<TextBlock Grid.Row="1" Text="Pick the camera to add to your stream."
|
||||||
Foreground="#a0a0b0" FontSize="13" TextWrapping="Wrap" Margin="0,0,0,12"/>
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="13" TextWrapping="Wrap" Margin="0,0,0,12"/>
|
||||||
|
|
||||||
<Grid Grid.Row="2">
|
<Grid Grid.Row="2">
|
||||||
<ListBox Background="Transparent" BorderThickness="0"
|
<ListBox Background="Transparent" BorderThickness="0"
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<TextBlock Text="📷" FontSize="15" VerticalAlignment="Center" Margin="0,0,10,0"/>
|
<TextBlock Text="📷" FontSize="15" VerticalAlignment="Center" Margin="0,0,10,0"/>
|
||||||
<TextBlock Text="{Binding Name}" Foreground="#e0e0e0" FontSize="13"
|
<TextBlock Text="{Binding Name}" Foreground="{StaticResource Brush.OnSurface}" FontSize="13"
|
||||||
VerticalAlignment="Center" TextTrimming="CharacterEllipsis"/>
|
VerticalAlignment="Center" TextTrimming="CharacterEllipsis"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
@@ -67,15 +67,15 @@
|
|||||||
|
|
||||||
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"
|
||||||
Visibility="{Binding IsLoading, Converter={StaticResource BoolToVis}}">
|
Visibility="{Binding IsLoading, Converter={StaticResource BoolToVis}}">
|
||||||
<TextBlock Text="Searching for cameras…" Foreground="#a0a0b0" FontSize="13"/>
|
<TextBlock Text="Searching for cameras…" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="13"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<StackPanel VerticalAlignment="Center"
|
<StackPanel VerticalAlignment="Center"
|
||||||
Visibility="{Binding NoCameras, Converter={StaticResource BoolToVis}}">
|
Visibility="{Binding NoCameras, Converter={StaticResource BoolToVis}}">
|
||||||
<TextBlock Text="No cameras found" Foreground="#e0e0e0" FontSize="15"
|
<TextBlock Text="No cameras found" Foreground="{StaticResource Brush.OnSurface}" FontSize="15"
|
||||||
FontWeight="SemiBold" HorizontalAlignment="Center"/>
|
FontWeight="SemiBold" HorizontalAlignment="Center"/>
|
||||||
<TextBlock Text="Check that a webcam is connected and that Windows camera access is enabled."
|
<TextBlock Text="Check that a webcam is connected and that Windows camera access is enabled."
|
||||||
Foreground="#a0a0b0" FontSize="13" TextWrapping="Wrap" MaxWidth="360"
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="13" TextWrapping="Wrap" MaxWidth="360"
|
||||||
TextAlignment="Center" HorizontalAlignment="Center" Margin="0,8,0,0"/>
|
TextAlignment="Center" HorizontalAlignment="Center" Margin="0,8,0,0"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
+101
-101
@@ -13,20 +13,20 @@
|
|||||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||||
<Border Width="12" Height="12" CornerRadius="2" VerticalAlignment="Center"
|
<Border Width="12" Height="12" CornerRadius="2" VerticalAlignment="Center"
|
||||||
Background="{Binding Hex, Converter={StaticResource HexToBrush}}"
|
Background="{Binding Hex, Converter={StaticResource HexToBrush}}"
|
||||||
BorderBrush="#2a3a5e" BorderThickness="1"/>
|
BorderBrush="{StaticResource Brush.Outline}" BorderThickness="1"/>
|
||||||
<TextBlock Text="{Binding Name}" Margin="6,0,0,0" FontSize="12"
|
<TextBlock Text="{Binding Name}" Margin="6,0,0,0" FontSize="12"
|
||||||
Foreground="#e0e0e0" VerticalAlignment="Center"/>
|
Foreground="{StaticResource Brush.OnSurface}" VerticalAlignment="Center"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
<DataTemplate x:Key="BorderColorRowTemplate">
|
<DataTemplate x:Key="BorderColorRowTemplate">
|
||||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||||
<Border Width="12" Height="12" CornerRadius="2" VerticalAlignment="Center"
|
<Border Width="12" Height="12" CornerRadius="2" VerticalAlignment="Center"
|
||||||
Background="{Binding Hex, Converter={StaticResource HexToBrush}}"
|
Background="{Binding Hex, Converter={StaticResource HexToBrush}}"
|
||||||
BorderBrush="#2a3a5e" BorderThickness="1"/>
|
BorderBrush="{StaticResource Brush.Outline}" BorderThickness="1"/>
|
||||||
<TextBlock Text="{Binding Hex}" Margin="6,0,0,0" FontSize="12"
|
<TextBlock Text="{Binding Hex}" Margin="6,0,0,0" FontSize="12"
|
||||||
Foreground="#e0e0e0" VerticalAlignment="Center"/>
|
Foreground="{StaticResource Brush.OnSurface}" VerticalAlignment="Center"/>
|
||||||
<TextBlock Text="{Binding Name}" Margin="8,0,0,0" FontSize="12"
|
<TextBlock Text="{Binding Name}" Margin="8,0,0,0" FontSize="12"
|
||||||
Foreground="#a0a0b0" VerticalAlignment="Center"/>
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" VerticalAlignment="Center"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
<Helpers:ClosedBoxTemplateSelector x:Key="BorderColorTemplates"
|
<Helpers:ClosedBoxTemplateSelector x:Key="BorderColorTemplates"
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
RowTemplate="{StaticResource BorderColorRowTemplate}"/>
|
RowTemplate="{StaticResource BorderColorRowTemplate}"/>
|
||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
|
|
||||||
<Border Background="#16213e" CornerRadius="6" Padding="12">
|
<Border Background="{StaticResource Brush.SurfaceContainer}" CornerRadius="6" Padding="12">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="*"/>
|
<RowDefinition Height="*"/>
|
||||||
@@ -49,17 +49,17 @@
|
|||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="*"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<!-- LAYERS header + Add button -->
|
<!-- LAYERS header + Add button -->
|
||||||
<StackPanel Grid.Row="0" Orientation="Horizontal" Margin="0,8,0,0">
|
<StackPanel Grid.Row="0" Orientation="Horizontal" Margin="0,8,0,0">
|
||||||
<Path Data="M12,3 L21,8 L12,13 L3,8 Z M3,12 L12,17 L21,12 M3,16 L12,21 L21,16"
|
<Path Data="M12,3 L21,8 L12,13 L3,8 Z M3,12 L12,17 L21,12 M3,16 L12,21 L21,16"
|
||||||
Stroke="#38bdf8" StrokeThickness="1.8" StrokeLineJoin="Round"
|
Stroke="{StaticResource Brush.Tertiary}" StrokeThickness="1.8" StrokeLineJoin="Round"
|
||||||
Width="16" Height="16" Stretch="Uniform" VerticalAlignment="Center" Margin="0,-4,6,0"/>
|
Width="16" Height="16" Stretch="Uniform" VerticalAlignment="Center" Margin="0,-4,6,0"/>
|
||||||
<TextBlock Text="SCENE LAYERS" Style="{StaticResource SectionHeader}" VerticalAlignment="Center"/>
|
<TextBlock Text="SCENE LAYERS" Style="{StaticResource SectionHeader}" VerticalAlignment="Center"/>
|
||||||
<Border Width="20" Height="20" CornerRadius="10" Background="#334155" Margin="6,-4,0,0" VerticalAlignment="Center">
|
<Border Width="20" Height="20" CornerRadius="10" Background="{StaticResource Brush.Outline}" Margin="6,-4,0,0" VerticalAlignment="Center">
|
||||||
<TextBlock Text="{Binding LayerCount}" Foreground="#38bdf8" FontSize="11" FontWeight="SemiBold"
|
<TextBlock Text="{Binding LayerCount}" Foreground="{StaticResource Brush.Tertiary}" FontSize="11" FontWeight="SemiBold"
|
||||||
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||||
</Border>
|
</Border>
|
||||||
<Button ToolTip="Add Layer" Style="{StaticResource IconButton}" Margin="4,-4,0,0"
|
<Button ToolTip="Add Layer" Style="{StaticResource IconButton}" Margin="4,-4,0,0"
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
ToolTip="Celebration zone for Super Chat & memberships — one alert layer at a time"/>
|
ToolTip="Celebration zone for Super Chat & memberships — one alert layer at a time"/>
|
||||||
</ContextMenu>
|
</ContextMenu>
|
||||||
</Button.ContextMenu>
|
</Button.ContextMenu>
|
||||||
<Path Data="M12,4 L12,20 M4,12 L20,12" Stroke="#e94560" StrokeThickness="2"
|
<Path Data="M12,4 L12,20 M4,12 L20,12" Stroke="{StaticResource Brush.Tertiary}" StrokeThickness="2"
|
||||||
Width="14" Height="14" Stretch="Uniform"/>
|
Width="14" Height="14" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
PreviewMouseLeftButtonDown="List_PreviewMouseLeftButtonDown"
|
PreviewMouseLeftButtonDown="List_PreviewMouseLeftButtonDown"
|
||||||
PreviewMouseMove="List_PreviewMouseMove"
|
PreviewMouseMove="List_PreviewMouseMove"
|
||||||
PreviewMouseLeftButtonUp="List_PreviewMouseLeftButtonUp"
|
PreviewMouseLeftButtonUp="List_PreviewMouseLeftButtonUp"
|
||||||
Foreground="#e0e0e0" FontSize="13">
|
Foreground="{StaticResource Brush.OnSurface}" FontSize="13">
|
||||||
<Helpers:FocusPreservingListBox.ItemContainerStyle>
|
<Helpers:FocusPreservingListBox.ItemContainerStyle>
|
||||||
<Style TargetType="ListBoxItem" BasedOn="{StaticResource YtListBoxItem}">
|
<Style TargetType="ListBoxItem" BasedOn="{StaticResource YtListBoxItem}">
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||||||
@@ -181,34 +181,34 @@
|
|||||||
</Grid.ContextMenu>
|
</Grid.ContextMenu>
|
||||||
|
|
||||||
<Grid Grid.Column="0" Width="16" Height="16" Margin="0,0,6,0" VerticalAlignment="Center">
|
<Grid Grid.Column="0" Width="16" Height="16" Margin="0,0,6,0" VerticalAlignment="Center">
|
||||||
<Path Data="M7,8 H17 A4,4 0 0 1 21,12 V14 A3,3 0 0 1 17,16 L15,14 H9 L7,16 A3,3 0 0 1 3,14 V12 A4,4 0 0 1 7,8 Z M8,11 V13 M7,12 H9 M15,11 H15.01 M17,13 H17.01" Stroke="#38bdf8" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
<Path Data="M7,8 H17 A4,4 0 0 1 21,12 V14 A3,3 0 0 1 17,16 L15,14 H9 L7,16 A3,3 0 0 1 3,14 V12 A4,4 0 0 1 7,8 Z M8,11 V13 M7,12 H9 M15,11 H15.01 M17,13 H17.01" Stroke="{StaticResource Brush.Tertiary}" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
||||||
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsLiveCapture}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsLiveCapture}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
||||||
</Path>
|
</Path>
|
||||||
<Path Data="M3,5 H21 V19 H3 Z M3,16 L9,10 L13,14 L16,11 L21,16" Stroke="#38bdf8" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
<Path Data="M3,5 H21 V19 H3 Z M3,16 L9,10 L13,14 L16,11 L21,16" Stroke="{StaticResource Brush.Tertiary}" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
||||||
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><MultiDataTrigger><MultiDataTrigger.Conditions><Condition Binding="{Binding IsBackground}" Value="True"/><Condition Binding="{Binding IsLiveCapture}" Value="False"/></MultiDataTrigger.Conditions><Setter Property="Visibility" Value="Visible"/></MultiDataTrigger></Style.Triggers></Style></Path.Style>
|
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><MultiDataTrigger><MultiDataTrigger.Conditions><Condition Binding="{Binding IsBackground}" Value="True"/><Condition Binding="{Binding IsLiveCapture}" Value="False"/></MultiDataTrigger.Conditions><Setter Property="Visibility" Value="Visible"/></MultiDataTrigger></Style.Triggers></Style></Path.Style>
|
||||||
</Path>
|
</Path>
|
||||||
<Path Data="M3,7 H15 V17 H3 Z M15,11 L21,8 V16 L15,13" Stroke="#38bdf8" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
<Path Data="M3,7 H15 V17 H3 Z M15,11 L21,8 V16 L15,13" Stroke="{StaticResource Brush.Tertiary}" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
||||||
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsWebcam}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsWebcam}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
||||||
</Path>
|
</Path>
|
||||||
<Path Data="M4,4 H20 V20 H4 Z M4,16 L9,11 L13,15 L16,12 L20,16 M15,8 H15.01" Stroke="#38bdf8" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
<Path Data="M4,4 H20 V20 H4 Z M4,16 L9,11 L13,15 L16,12 L20,16 M15,8 H15.01" Stroke="{StaticResource Brush.Tertiary}" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
||||||
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsImageSource}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsImageSource}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
||||||
</Path>
|
</Path>
|
||||||
<Path Data="M5,5 H19 M12,5 V19 M8,19 H16" Stroke="#38bdf8" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
<Path Data="M5,5 H19 M12,5 V19 M8,19 H16" Stroke="{StaticResource Brush.Tertiary}" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
||||||
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsTextOverlay}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsTextOverlay}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
||||||
</Path>
|
</Path>
|
||||||
<Path Data="M12,3 A9,9 0 1 0 12.01,3 M12,7 V12 L15,14" Stroke="#38bdf8" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
<Path Data="M12,3 A9,9 0 1 0 12.01,3 M12,7 V12 L15,14" Stroke="{StaticResource Brush.Tertiary}" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
||||||
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsCountdown}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsCountdown}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
||||||
</Path>
|
</Path>
|
||||||
<Path Data="M12,3 A9,9 0 1 0 12.01,3 M3,12 H21 M12,3 C8,7 8,17 12,21 M12,3 C16,7 16,17 12,21" Stroke="#38bdf8" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
<Path Data="M12,3 A9,9 0 1 0 12.01,3 M3,12 H21 M12,3 C8,7 8,17 12,21 M12,3 C16,7 16,17 12,21" Stroke="{StaticResource Brush.Tertiary}" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
||||||
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsWebSource}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsWebSource}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
||||||
</Path>
|
</Path>
|
||||||
<Path Data="M4,5 H20 V16 H10 L6,20 V16 H4 Z" Stroke="#38bdf8" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
<Path Data="M4,5 H20 V16 H10 L6,20 V16 H4 Z" Stroke="{StaticResource Brush.Tertiary}" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
||||||
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsChatBox}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsChatBox}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
||||||
</Path>
|
</Path>
|
||||||
<Path Data="M4,5 H20 V19 H4 Z M10,9 L15,12 L10,15 Z" Stroke="#38bdf8" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
<Path Data="M4,5 H20 V19 H4 Z M10,9 L15,12 L10,15 Z" Stroke="{StaticResource Brush.Tertiary}" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
||||||
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsMediaSource}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsMediaSource}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
||||||
</Path>
|
</Path>
|
||||||
<Path Data="M6,16 V11 A6,6 0 0 1 18,11 V16 L20,18 H4 Z M10,20 H14" Stroke="#38bdf8" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
<Path Data="M6,16 V11 A6,6 0 0 1 18,11 V16 L20,18 H4 Z M10,20 H14" Stroke="{StaticResource Brush.Tertiary}" StrokeThickness="1.6" StrokeLineJoin="Round" Stretch="Uniform">
|
||||||
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsAlertBox}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
<Path.Style><Style TargetType="Path"><Setter Property="Visibility" Value="Collapsed"/><Style.Triggers><DataTrigger Binding="{Binding IsAlertBox}" Value="True"><Setter Property="Visibility" Value="Visible"/></DataTrigger></Style.Triggers></Style></Path.Style>
|
||||||
</Path>
|
</Path>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -247,13 +247,13 @@
|
|||||||
Command="{Binding DataContext.EditElementCommand, RelativeSource={RelativeSource AncestorType=ListBox}}"
|
Command="{Binding DataContext.EditElementCommand, RelativeSource={RelativeSource AncestorType=ListBox}}"
|
||||||
CommandParameter="{Binding}" Style="{StaticResource IconButton}">
|
CommandParameter="{Binding}" Style="{StaticResource IconButton}">
|
||||||
<Path Data="M3,17.25V21h3.75L17.81,9.94l-3.75,-3.75L3,17.25zM20.71,7.04c0.39,-0.39 0.39,-1.02 0,-1.41l-2.34,-2.34c-0.39,-0.39 -1.02,-0.39 -1.41,0l-1.83,1.83 3.75,3.75 1.83,-1.83z"
|
<Path Data="M3,17.25V21h3.75L17.81,9.94l-3.75,-3.75L3,17.25zM20.71,7.04c0.39,-0.39 0.39,-1.02 0,-1.41l-2.34,-2.34c-0.39,-0.39 -1.02,-0.39 -1.41,0l-1.83,1.83 3.75,3.75 1.83,-1.83z"
|
||||||
Fill="#d0d0d0" Width="13" Height="13" Stretch="Uniform"/>
|
Fill="{StaticResource Brush.OnSurface}" Width="13" Height="13" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Button Grid.Column="3" Style="{StaticResource EyeButton}"
|
<Button Grid.Column="3" Style="{StaticResource EyeButton}"
|
||||||
Command="{Binding DataContext.ToggleElementVisibilityCommand, RelativeSource={RelativeSource AncestorType=ListBox}}"
|
Command="{Binding DataContext.ToggleElementVisibilityCommand, RelativeSource={RelativeSource AncestorType=ListBox}}"
|
||||||
CommandParameter="{Binding}">
|
CommandParameter="{Binding}">
|
||||||
<Path Style="{StaticResource EyeIconStyle}" Fill="#d0d0d0"
|
<Path Style="{StaticResource EyeIconStyle}" Fill="{StaticResource Brush.OnSurface}"
|
||||||
Width="13" Height="13" Stretch="Uniform"/>
|
Width="13" Height="13" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
@@ -262,7 +262,7 @@
|
|||||||
CommandParameter="{Binding}" Style="{StaticResource IconButton}"
|
CommandParameter="{Binding}" Style="{StaticResource IconButton}"
|
||||||
Visibility="{Binding IsBackground, Converter={StaticResource HiddenBoolToVis}}">
|
Visibility="{Binding IsBackground, Converter={StaticResource HiddenBoolToVis}}">
|
||||||
<Path Data="M6,19c0,1.1 0.9,2 2,2h8c1.1,0 2,-0.9 2,-2V7H6v12zM19,4h-3.5l-1,-1h-5l-1,1H5v2h14V4z"
|
<Path Data="M6,19c0,1.1 0.9,2 2,2h8c1.1,0 2,-0.9 2,-2V7H6v12zM19,4h-3.5l-1,-1h-5l-1,1H5v2h14V4z"
|
||||||
Fill="#d0d0d0" Width="13" Height="13" Stretch="Uniform"/>
|
Fill="{StaticResource Brush.OnSurface}" Width="13" Height="13" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
@@ -277,10 +277,10 @@
|
|||||||
Red when a required resource (the one-and-only webcam)
|
Red when a required resource (the one-and-only webcam)
|
||||||
could not be locked; persists and re-polls until resolved. -->
|
could not be locked; persists and re-polls until resolved. -->
|
||||||
<Border Grid.Row="3" Margin="0,8,0,0" Padding="8,6" CornerRadius="4"
|
<Border Grid.Row="3" Margin="0,8,0,0" Padding="8,6" CornerRadius="4"
|
||||||
Background="#3a1216" BorderBrush="#e94560" BorderThickness="1"
|
Background="{StaticResource Brush.ErrorContainer}" BorderBrush="{StaticResource Brush.Error}" BorderThickness="1"
|
||||||
Visibility="{Binding WebcamLockAlert, Converter={StaticResource NotNullToVis}}">
|
Visibility="{Binding WebcamLockAlert, Converter={StaticResource NotNullToVis}}">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock Text="{Binding WebcamLockAlert}" Foreground="#ffb4b4" FontSize="11"
|
<TextBlock Text="{Binding WebcamLockAlert}" Foreground="{StaticResource Brush.OnError}" FontSize="11"
|
||||||
TextWrapping="Wrap"/>
|
TextWrapping="Wrap"/>
|
||||||
<Button Content="Retry" Command="{Binding RetryWebcamLockCommand}"
|
<Button Content="Retry" Command="{Binding RetryWebcamLockCommand}"
|
||||||
Style="{StaticResource YtButtonSecondary}" Padding="10,2"
|
Style="{StaticResource YtButtonSecondary}" Padding="10,2"
|
||||||
@@ -290,25 +290,25 @@
|
|||||||
|
|
||||||
<!-- ELEMENTS panel: per-element config beneath Sources.
|
<!-- ELEMENTS panel: per-element config beneath Sources.
|
||||||
Collapses entirely when no element is selected. -->
|
Collapses entirely when no element is selected. -->
|
||||||
<Rectangle Grid.Row="4" Height="1" Fill="#2c3a5c" Margin="0,22,0,10"/>
|
<Rectangle Grid.Row="4" Height="1" Fill="{StaticResource Brush.Outline}" Margin="0,22,0,10"/>
|
||||||
<StackPanel Grid.Row="5" Orientation="Horizontal" Margin="0,8,0,0">
|
<StackPanel Grid.Row="5" Orientation="Horizontal" Margin="0,8,0,0">
|
||||||
<Path Data="M12,8 A4,4 0 1 0 12.01,8 M19.4,15 L21,16.2 L19.4,19 L17.2,18.3 A7,7 0 0 1 15,19.4 L14.5,21.5 H9.5 L9,19.4 A7,7 0 0 1 6.8,18.3 L4.6,19 L3,16.2 L4.6,15 A7,7 0 0 1 4.6,9 L3,7.8 L4.6,5 L6.8,5.7 A7,7 0 0 1 9,4.6 L9.5,2.5 H14.5 L15,4.6 A7,7 0 0 1 17.2,5.7 L19.4,5 L21,7.8 L19.4,9 A7,7 0 0 1 19.4,15 Z"
|
<Path Data="M12,8 A4,4 0 1 0 12.01,8 M19.4,15 L21,16.2 L19.4,19 L17.2,18.3 A7,7 0 0 1 15,19.4 L14.5,21.5 H9.5 L9,19.4 A7,7 0 0 1 6.8,18.3 L4.6,19 L3,16.2 L4.6,15 A7,7 0 0 1 4.6,9 L3,7.8 L4.6,5 L6.8,5.7 A7,7 0 0 1 9,4.6 L9.5,2.5 H14.5 L15,4.6 A7,7 0 0 1 17.2,5.7 L19.4,5 L21,7.8 L19.4,9 A7,7 0 0 1 19.4,15 Z"
|
||||||
Stroke="#38bdf8" StrokeThickness="1.6" StrokeLineJoin="Round"
|
Stroke="{StaticResource Brush.Tertiary}" StrokeThickness="1.6" StrokeLineJoin="Round"
|
||||||
Width="16" Height="16" Stretch="Uniform" VerticalAlignment="Center" Margin="0,0,6,0"/>
|
Width="16" Height="16" Stretch="Uniform" VerticalAlignment="Center" Margin="0,0,6,0"/>
|
||||||
<TextBlock Text="PROPERTIES" Style="{StaticResource SectionHeader}" VerticalAlignment="Center"/>
|
<TextBlock Text="PROPERTIES" Style="{StaticResource SectionHeader}" VerticalAlignment="Center"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<TextBlock Grid.Row="6" Text="Select an item to edit its properties" Foreground="#94a3b8" FontSize="12"
|
<TextBlock Grid.Row="6" Text="Select an item to edit its properties" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="12"
|
||||||
Margin="8,4,0,0" TextWrapping="Wrap"
|
Margin="8,4,0,0" TextWrapping="Wrap"
|
||||||
Visibility="{Binding SelectedElement, Converter={StaticResource NullToVis}}"/>
|
Visibility="{Binding SelectedElement, Converter={StaticResource NullToVis}}"/>
|
||||||
<ScrollViewer x:Name="ElementsScrollViewer" Grid.Row="6" MaxHeight="420" VerticalScrollBarVisibility="Auto" Background="Transparent"
|
<ScrollViewer x:Name="ElementsScrollViewer" Grid.Row="6" VerticalScrollBarVisibility="Auto" Background="Transparent"
|
||||||
Visibility="{Binding SelectedElement, Converter={StaticResource NotNullToVis}}">
|
Visibility="{Binding SelectedElement, Converter={StaticResource NotNullToVis}}">
|
||||||
<StackPanel x:Name="ElementsPanel" Margin="8,4,0,0">
|
<StackPanel x:Name="ElementsPanel" Margin="8,4,0,0">
|
||||||
<!-- Opacity + mirror/shape (draggable elements: image, webcam) -->
|
<!-- Opacity + mirror/shape (draggable elements: image, webcam) -->
|
||||||
<StackPanel Visibility="{Binding SelectedElement.IsDraggable, Converter={StaticResource BoolToVis}}" Margin="0,0,0,8">
|
<StackPanel Visibility="{Binding SelectedElement.IsDraggable, Converter={StaticResource BoolToVis}}" Margin="0,0,0,8">
|
||||||
<StackPanel Visibility="{Binding SelectedElement.IsChatBox, Converter={StaticResource InverseBoolToVis}}">
|
<StackPanel Visibility="{Binding SelectedElement.IsChatBox, Converter={StaticResource InverseBoolToVis}}">
|
||||||
<TextBlock Text="Opacity" Foreground="#a0a0b0" FontSize="11" Margin="0,0,0,2"/>
|
<TextBlock Text="Opacity" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" Margin="0,0,0,2"/>
|
||||||
<DockPanel Margin="0,0,0,6">
|
<DockPanel Margin="0,0,0,6">
|
||||||
<TextBlock x:Name="OpacityValueText" Text="100%" Foreground="#a0a0b0" FontSize="11"
|
<TextBlock x:Name="OpacityValueText" Text="100%" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11"
|
||||||
DockPanel.Dock="Right" VerticalAlignment="Center" Margin="8,0,0,0" Width="32"/>
|
DockPanel.Dock="Right" VerticalAlignment="Center" Margin="8,0,0,0" Width="32"/>
|
||||||
<Slider x:Name="OpacitySlider" Width="120" Minimum="0" Maximum="1"
|
<Slider x:Name="OpacitySlider" Width="120" Minimum="0" Maximum="1"
|
||||||
Value="{Binding SelectedElement.Opacity, Mode=TwoWay}"
|
Value="{Binding SelectedElement.Opacity, Mode=TwoWay}"
|
||||||
@@ -320,7 +320,7 @@
|
|||||||
is not offered in the vertical Chat layout, so that option
|
is not offered in the vertical Chat layout, so that option
|
||||||
is not even shown there (CanToggleClipShape). -->
|
is not even shown there (CanToggleClipShape). -->
|
||||||
<StackPanel Visibility="{Binding IsWebcamSelected, Converter={StaticResource BoolToVis}}">
|
<StackPanel Visibility="{Binding IsWebcamSelected, Converter={StaticResource BoolToVis}}">
|
||||||
<TextBlock Text="Shape" Foreground="#a0a0b0" FontSize="11" FontWeight="SemiBold" Margin="0,0,0,4"/>
|
<TextBlock Text="Shape" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" FontWeight="SemiBold" Margin="0,0,0,4"/>
|
||||||
<StackPanel Orientation="Horizontal" Margin="10,0,0,4">
|
<StackPanel Orientation="Horizontal" Margin="10,0,0,4">
|
||||||
<Button Content="{Binding SelectedElement.MirrorButtonText}"
|
<Button Content="{Binding SelectedElement.MirrorButtonText}"
|
||||||
Style="{StaticResource YtButtonSecondary}" Padding="10,4"
|
Style="{StaticResource YtButtonSecondary}" Padding="10,4"
|
||||||
@@ -339,7 +339,7 @@
|
|||||||
<!-- The drag hint sits under the shape row — indented, so the
|
<!-- The drag hint sits under the shape row — indented, so the
|
||||||
parentage shows. -->
|
parentage shows. -->
|
||||||
<TextBlock Text="Drag to move · drag the corner dot to resize"
|
<TextBlock Text="Drag to move · drag the corner dot to resize"
|
||||||
Foreground="#a0a0b0" FontSize="10" Margin="10,2,0,0"/>
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="10" Margin="10,2,0,0"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!-- Webcam geometry (TASK 57): under the vertical tier the camera
|
<!-- Webcam geometry (TASK 57): under the vertical tier the camera
|
||||||
@@ -349,23 +349,23 @@
|
|||||||
above) so the webcam's border/background section stays the
|
above) so the webcam's border/background section stays the
|
||||||
one panel bound to SelectedElement.IsWebcam. -->
|
one panel bound to SelectedElement.IsWebcam. -->
|
||||||
<StackPanel Visibility="{Binding IsWebcamSelected, Converter={StaticResource BoolToVis}}" Margin="0,0,0,8">
|
<StackPanel Visibility="{Binding IsWebcamSelected, Converter={StaticResource BoolToVis}}" Margin="0,0,0,8">
|
||||||
<TextBlock Text="Geometry" Foreground="#a0a0b0" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,4"/>
|
<TextBlock Text="Geometry" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,4"/>
|
||||||
<!-- TASK 61: the four fields share ONE fixed width — wide enough
|
<!-- TASK 61: the four fields share ONE fixed width — wide enough
|
||||||
for the largest geometry value (1920, plus a typed sign) and
|
for the largest geometry value (1920, plus a typed sign) and
|
||||||
no wider, so Y/H no longer stretch to fill the row. -->
|
no wider, so Y/H no longer stretch to fill the row. -->
|
||||||
<DockPanel Margin="10,0,0,4" LastChildFill="False">
|
<DockPanel Margin="10,0,0,4" LastChildFill="False">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="X" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="16"/>
|
<TextBlock DockPanel.Dock="Left" Text="X" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="16"/>
|
||||||
<TextBox Text="{Binding SelectedElement.X, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
<TextBox Text="{Binding SelectedElement.X, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
||||||
Style="{StaticResource YtTextBoxCompact}" Width="44"/>
|
Style="{StaticResource YtTextBoxCompact}" Width="44"/>
|
||||||
<TextBlock DockPanel.Dock="Left" Text=" Y" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="20" Margin="8,0,0,0"/>
|
<TextBlock DockPanel.Dock="Left" Text=" Y" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="20" Margin="8,0,0,0"/>
|
||||||
<TextBox Text="{Binding SelectedElement.Y, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
<TextBox Text="{Binding SelectedElement.Y, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
||||||
Style="{StaticResource YtTextBoxCompact}" Width="44"/>
|
Style="{StaticResource YtTextBoxCompact}" Width="44"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
<DockPanel Margin="10,0,0,4" LastChildFill="False">
|
<DockPanel Margin="10,0,0,4" LastChildFill="False">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="W" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="16"/>
|
<TextBlock DockPanel.Dock="Left" Text="W" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="16"/>
|
||||||
<TextBox Text="{Binding SelectedElement.Width, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
<TextBox Text="{Binding SelectedElement.Width, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
||||||
Style="{StaticResource YtTextBoxCompact}" Width="44"/>
|
Style="{StaticResource YtTextBoxCompact}" Width="44"/>
|
||||||
<TextBlock DockPanel.Dock="Left" Text=" H" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="20" Margin="8,0,0,0"/>
|
<TextBlock DockPanel.Dock="Left" Text=" H" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="20" Margin="8,0,0,0"/>
|
||||||
<TextBox Text="{Binding SelectedElement.Height, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
<TextBox Text="{Binding SelectedElement.Height, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
||||||
Style="{StaticResource YtTextBoxCompact}" Width="44"/>
|
Style="{StaticResource YtTextBoxCompact}" Width="44"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
@@ -373,7 +373,7 @@
|
|||||||
|
|
||||||
<!-- Webcam border config -->
|
<!-- Webcam border config -->
|
||||||
<StackPanel Visibility="{Binding SelectedElement.IsWebcam, Converter={StaticResource BoolToVis}}" Margin="0,0,0,8">
|
<StackPanel Visibility="{Binding SelectedElement.IsWebcam, Converter={StaticResource BoolToVis}}" Margin="0,0,0,8">
|
||||||
<TextBlock Text="Border Color" Foreground="#a0a0b0" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,2"/>
|
<TextBlock Text="Border Color" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,2"/>
|
||||||
<!-- TASK 63: the border colour is picked with the app's OWN
|
<!-- TASK 63: the border colour is picked with the app's OWN
|
||||||
drop-down (YtComboBox) — the same widget the Display
|
drop-down (YtComboBox) — the same widget the Display
|
||||||
and Font pickers use — not a hand-rolled menu. The hex
|
and Font pickers use — not a hand-rolled menu. The hex
|
||||||
@@ -392,24 +392,24 @@
|
|||||||
ToolTip="Border colour" MinWidth="100"
|
ToolTip="Border colour" MinWidth="100"
|
||||||
Margin="8,0,0,0" VerticalAlignment="Center"/>
|
Margin="8,0,0,0" VerticalAlignment="Center"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
<TextBlock Text="Border Thickness" Foreground="#a0a0b0" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,2"/>
|
<TextBlock Text="Border Thickness" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,2"/>
|
||||||
<DockPanel Margin="10,0,0,6">
|
<DockPanel Margin="10,0,0,6">
|
||||||
<Button DockPanel.Dock="Right" Style="{StaticResource IconButton}"
|
<Button DockPanel.Dock="Right" Style="{StaticResource IconButton}"
|
||||||
Width="22" Height="22" Margin="4,0,0,0"
|
Width="22" Height="22" Margin="4,0,0,0"
|
||||||
Click="WebcamBorderAccept_Click">
|
Click="WebcamBorderAccept_Click">
|
||||||
<Path Data="M4,9 L8,14 L16,4" Stroke="#22c55e" StrokeThickness="2"
|
<Path Data="M4,9 L8,14 L16,4" Stroke="{StaticResource Brush.Positive}" StrokeThickness="2"
|
||||||
Width="14" Height="14" Stretch="Uniform"/>
|
Width="14" Height="14" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button DockPanel.Dock="Right" Style="{StaticResource IconButton}"
|
<Button DockPanel.Dock="Right" Style="{StaticResource IconButton}"
|
||||||
Width="22" Height="22" ToolTip="Revert"
|
Width="22" Height="22" ToolTip="Revert"
|
||||||
Click="WebcamBorderRevert_Click" Margin="4,0,0,0">
|
Click="WebcamBorderRevert_Click" Margin="4,0,0,0">
|
||||||
<Path Data="M5,5 L15,15 M15,5 L5,15" Stroke="#e94560" StrokeThickness="2"
|
<Path Data="M5,5 L15,15 M15,5 L5,15" Stroke="{StaticResource Brush.OnSurfaceVariant}" StrokeThickness="2"
|
||||||
Width="14" Height="14" Stretch="Uniform"/>
|
Width="14" Height="14" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Slider DockPanel.Dock="Left" Width="120" Minimum="0" Maximum="10"
|
<Slider DockPanel.Dock="Left" Width="120" Minimum="0" Maximum="10"
|
||||||
Value="{Binding SelectedElement.BorderWidth, Mode=TwoWay}"
|
Value="{Binding SelectedElement.BorderWidth, Mode=TwoWay}"
|
||||||
VerticalAlignment="Center" TickFrequency="1" IsSnapToTickEnabled="True"/>
|
VerticalAlignment="Center" TickFrequency="1" IsSnapToTickEnabled="True"/>
|
||||||
<TextBlock Text="{Binding SelectedElement.BorderWidth}" Foreground="#a0a0b0" FontSize="11"
|
<TextBlock Text="{Binding SelectedElement.BorderWidth}" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11"
|
||||||
VerticalAlignment="Center" Margin="8,0,0,0" Width="20"/>
|
VerticalAlignment="Center" Margin="8,0,0,0" Width="20"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
@@ -417,9 +417,9 @@
|
|||||||
(one on turns the other off; both off = no effect). TASK 59:
|
(one on turns the other off; both off = no effect). TASK 59:
|
||||||
the pills are indented under the Background title, and the
|
the pills are indented under the Background title, and the
|
||||||
strength row one level deeper, under Blur. -->
|
strength row one level deeper, under Blur. -->
|
||||||
<TextBlock Text="Background" Foreground="#a0a0b0" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,6"/>
|
<TextBlock Text="Background" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,6"/>
|
||||||
<DockPanel Margin="10,0,0,4">
|
<DockPanel Margin="10,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Remove" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="84"/>
|
<TextBlock DockPanel.Dock="Left" Text="Remove" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="84"/>
|
||||||
<ToggleButton x:Name="RemoveBackgroundPill" Style="{StaticResource PillToggle}"
|
<ToggleButton x:Name="RemoveBackgroundPill" Style="{StaticResource PillToggle}"
|
||||||
IsChecked="{Binding SelectedElement.RemoveBackground, Mode=TwoWay}"
|
IsChecked="{Binding SelectedElement.RemoveBackground, Mode=TwoWay}"
|
||||||
AutomationProperties.Name="Remove background"
|
AutomationProperties.Name="Remove background"
|
||||||
@@ -427,7 +427,7 @@
|
|||||||
HorizontalAlignment="Left"/>
|
HorizontalAlignment="Left"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
<DockPanel Margin="10,0,0,4">
|
<DockPanel Margin="10,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Blur" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="84"/>
|
<TextBlock DockPanel.Dock="Left" Text="Blur" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="84"/>
|
||||||
<ToggleButton x:Name="BlurBackgroundPill" Style="{StaticResource PillToggle}"
|
<ToggleButton x:Name="BlurBackgroundPill" Style="{StaticResource PillToggle}"
|
||||||
IsChecked="{Binding SelectedElement.BlurBackground, Mode=TwoWay}"
|
IsChecked="{Binding SelectedElement.BlurBackground, Mode=TwoWay}"
|
||||||
AutomationProperties.Name="Blur background"
|
AutomationProperties.Name="Blur background"
|
||||||
@@ -436,9 +436,9 @@
|
|||||||
</DockPanel>
|
</DockPanel>
|
||||||
<DockPanel Margin="20,0,0,6"
|
<DockPanel Margin="20,0,0,6"
|
||||||
Visibility="{Binding SelectedElement.HasBackgroundEffect, Converter={StaticResource BoolToVis}}">
|
Visibility="{Binding SelectedElement.HasBackgroundEffect, Converter={StaticResource BoolToVis}}">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Strength" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="84"/>
|
<TextBlock DockPanel.Dock="Left" Text="Strength" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="84"/>
|
||||||
<TextBlock DockPanel.Dock="Right" Text="{Binding SelectedElement.BackgroundStrength, StringFormat={}{0:P0}}"
|
<TextBlock DockPanel.Dock="Right" Text="{Binding SelectedElement.BackgroundStrength, StringFormat={}{0:P0}}"
|
||||||
Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Margin="8,0,0,0" Width="34"/>
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Margin="8,0,0,0" Width="34"/>
|
||||||
<Slider x:Name="BackgroundStrengthSlider" Minimum="0" Maximum="1"
|
<Slider x:Name="BackgroundStrengthSlider" Minimum="0" Maximum="1"
|
||||||
Value="{Binding SelectedElement.BackgroundStrength, Mode=TwoWay}"
|
Value="{Binding SelectedElement.BackgroundStrength, Mode=TwoWay}"
|
||||||
TickFrequency="0.05" IsSnapToTickEnabled="True" VerticalAlignment="Center"
|
TickFrequency="0.05" IsSnapToTickEnabled="True" VerticalAlignment="Center"
|
||||||
@@ -449,59 +449,59 @@
|
|||||||
|
|
||||||
<!-- Countdown config -->
|
<!-- Countdown config -->
|
||||||
<StackPanel Visibility="{Binding SelectedElement.IsCountdown, Converter={StaticResource BoolToVis}}" Margin="0,0,0,8">
|
<StackPanel Visibility="{Binding SelectedElement.IsCountdown, Converter={StaticResource BoolToVis}}" Margin="0,0,0,8">
|
||||||
<TextBlock Text="Timer (minutes)" Foreground="#a0a0b0" FontSize="11" Margin="0,0,0,2"/>
|
<TextBlock Text="Timer (minutes)" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" Margin="0,0,0,2"/>
|
||||||
<DockPanel Margin="0,0,0,6">
|
<DockPanel Margin="0,0,0,6">
|
||||||
<Button DockPanel.Dock="Right" Style="{StaticResource IconButton}"
|
<Button DockPanel.Dock="Right" Style="{StaticResource IconButton}"
|
||||||
Width="22" Height="22" Margin="4,0,0,0"
|
Width="22" Height="22" Margin="4,0,0,0"
|
||||||
Click="CountdownAccept_Click">
|
Click="CountdownAccept_Click">
|
||||||
<Path Data="M4,9 L8,14 L16,4" Stroke="#22c55e" StrokeThickness="2"
|
<Path Data="M4,9 L8,14 L16,4" Stroke="{StaticResource Brush.Positive}" StrokeThickness="2"
|
||||||
Width="14" Height="14" Stretch="Uniform"/>
|
Width="14" Height="14" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button DockPanel.Dock="Right" Style="{StaticResource IconButton}"
|
<Button DockPanel.Dock="Right" Style="{StaticResource IconButton}"
|
||||||
Width="22" Height="22" ToolTip="Revert"
|
Width="22" Height="22" ToolTip="Revert"
|
||||||
Click="CountdownRevert_Click" Margin="4,0,0,0">
|
Click="CountdownRevert_Click" Margin="4,0,0,0">
|
||||||
<Path Data="M5,5 L15,15 M15,5 L5,15" Stroke="#e94560" StrokeThickness="2"
|
<Path Data="M5,5 L15,15 M15,5 L5,15" Stroke="{StaticResource Brush.OnSurfaceVariant}" StrokeThickness="2"
|
||||||
Width="14" Height="14" Stretch="Uniform"/>
|
Width="14" Height="14" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Slider DockPanel.Dock="Left" Width="120" Minimum="1" Maximum="60"
|
<Slider DockPanel.Dock="Left" Width="120" Minimum="1" Maximum="60"
|
||||||
Value="{Binding SelectedElement.TimerMinutes, Mode=TwoWay}"
|
Value="{Binding SelectedElement.TimerMinutes, Mode=TwoWay}"
|
||||||
VerticalAlignment="Center" TickFrequency="1" IsSnapToTickEnabled="True"/>
|
VerticalAlignment="Center" TickFrequency="1" IsSnapToTickEnabled="True"/>
|
||||||
<TextBlock Text="{Binding SelectedElement.TimerMinutes}" Foreground="#a0a0b0" FontSize="11"
|
<TextBlock Text="{Binding SelectedElement.TimerMinutes}" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11"
|
||||||
VerticalAlignment="Center" Margin="8,0,0,0" Width="20"/>
|
VerticalAlignment="Center" Margin="8,0,0,0" Width="20"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!-- Web source config -->
|
<!-- Web source config -->
|
||||||
<StackPanel Visibility="{Binding SelectedElement.IsWebSource, Converter={StaticResource BoolToVis}}" Margin="0,0,0,8">
|
<StackPanel Visibility="{Binding SelectedElement.IsWebSource, Converter={StaticResource BoolToVis}}" Margin="0,0,0,8">
|
||||||
<TextBlock Text="Geometry" Foreground="#a0a0b0" FontSize="11" FontWeight="SemiBold" Margin="0,0,0,4"/>
|
<TextBlock Text="Geometry" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" FontWeight="SemiBold" Margin="0,0,0,4"/>
|
||||||
<DockPanel Margin="0,0,0,4">
|
<DockPanel Margin="0,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="X" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="16"/>
|
<TextBlock DockPanel.Dock="Left" Text="X" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="16"/>
|
||||||
<TextBox Text="{Binding SelectedElement.X, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
<TextBox Text="{Binding SelectedElement.X, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
||||||
Style="{StaticResource YtTextBoxCompact}"/>
|
Style="{StaticResource YtTextBoxCompact}"/>
|
||||||
<TextBlock DockPanel.Dock="Left" Text=" Y" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="20" Margin="8,0,0,0"/>
|
<TextBlock DockPanel.Dock="Left" Text=" Y" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="20" Margin="8,0,0,0"/>
|
||||||
<TextBox Text="{Binding SelectedElement.Y, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
<TextBox Text="{Binding SelectedElement.Y, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
||||||
Style="{StaticResource YtTextBoxCompact}"/>
|
Style="{StaticResource YtTextBoxCompact}"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
<DockPanel Margin="0,0,0,4">
|
<DockPanel Margin="0,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="W" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="16"/>
|
<TextBlock DockPanel.Dock="Left" Text="W" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="16"/>
|
||||||
<TextBox Text="{Binding SelectedElement.Width, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
<TextBox Text="{Binding SelectedElement.Width, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
||||||
Style="{StaticResource YtTextBoxCompact}"/>
|
Style="{StaticResource YtTextBoxCompact}"/>
|
||||||
<TextBlock DockPanel.Dock="Left" Text=" H" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="20" Margin="8,0,0,0"/>
|
<TextBlock DockPanel.Dock="Left" Text=" H" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="20" Margin="8,0,0,0"/>
|
||||||
<TextBox Text="{Binding SelectedElement.Height, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
<TextBox Text="{Binding SelectedElement.Height, UpdateSourceTrigger=PropertyChanged, StringFormat=F0}"
|
||||||
Style="{StaticResource YtTextBoxCompact}"/>
|
Style="{StaticResource YtTextBoxCompact}"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
<TextBlock Text="URI" Foreground="#a0a0b0" FontSize="11" Margin="0,0,0,2"/>
|
<TextBlock Text="URI" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" Margin="0,0,0,2"/>
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<Button DockPanel.Dock="Right" Style="{StaticResource IconButton}"
|
<Button DockPanel.Dock="Right" Style="{StaticResource IconButton}"
|
||||||
Width="22" Height="22" Margin="4,0,0,0" IsTabStop="False"
|
Width="22" Height="22" Margin="4,0,0,0" IsTabStop="False"
|
||||||
Click="WebAccept_Click">
|
Click="WebAccept_Click">
|
||||||
<Path Data="M4,9 L8,14 L16,4" Stroke="#22c55e" StrokeThickness="2"
|
<Path Data="M4,9 L8,14 L16,4" Stroke="{StaticResource Brush.Positive}" StrokeThickness="2"
|
||||||
Width="14" Height="14" Stretch="Uniform"/>
|
Width="14" Height="14" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button DockPanel.Dock="Right" Style="{StaticResource IconButton}"
|
<Button DockPanel.Dock="Right" Style="{StaticResource IconButton}"
|
||||||
Width="22" Height="22" ToolTip="Revert" IsTabStop="False"
|
Width="22" Height="22" ToolTip="Revert" IsTabStop="False"
|
||||||
Click="WebRevert_Click" Margin="4,0,0,0">
|
Click="WebRevert_Click" Margin="4,0,0,0">
|
||||||
<Path Data="M5,5 L15,15 M15,5 L5,15" Stroke="#e94560" StrokeThickness="2"
|
<Path Data="M5,5 L15,15 M15,5 L5,15" Stroke="{StaticResource Brush.OnSurfaceVariant}" StrokeThickness="2"
|
||||||
Width="14" Height="14" Stretch="Uniform"/>
|
Width="14" Height="14" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
<TextBox Text="{Binding SelectedElement.WebUri, UpdateSourceTrigger=PropertyChanged}"
|
<TextBox Text="{Binding SelectedElement.WebUri, UpdateSourceTrigger=PropertyChanged}"
|
||||||
@@ -512,10 +512,10 @@
|
|||||||
|
|
||||||
<!-- Chat box config -->
|
<!-- Chat box config -->
|
||||||
<StackPanel Visibility="{Binding SelectedElement.IsChatBox, Converter={StaticResource BoolToVis}}" Margin="0,0,0,8">
|
<StackPanel Visibility="{Binding SelectedElement.IsChatBox, Converter={StaticResource BoolToVis}}" Margin="0,0,0,8">
|
||||||
<TextBlock Text="Chat Overlay" Foreground="#a0a0b0" FontSize="11" FontWeight="SemiBold" Margin="0,0,0,6"/>
|
<TextBlock Text="Chat Overlay" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" FontWeight="SemiBold" Margin="0,0,0,6"/>
|
||||||
|
|
||||||
<!-- Border (same controls as the webcam's border) -->
|
<!-- Border (same controls as the webcam's border) -->
|
||||||
<TextBlock Text="Border Color" Foreground="#a0a0b0" FontSize="11" FontWeight="SemiBold" Margin="0,0,0,2"/>
|
<TextBlock Text="Border Color" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" FontWeight="SemiBold" Margin="0,0,0,2"/>
|
||||||
<DockPanel Margin="10,0,0,6">
|
<DockPanel Margin="10,0,0,6">
|
||||||
<TextBox DockPanel.Dock="Left"
|
<TextBox DockPanel.Dock="Left"
|
||||||
Text="{Binding SelectedElement.BorderColor, UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding SelectedElement.BorderColor, UpdateSourceTrigger=PropertyChanged}"
|
||||||
@@ -529,35 +529,35 @@
|
|||||||
ToolTip="Border colour" MinWidth="100"
|
ToolTip="Border colour" MinWidth="100"
|
||||||
Margin="8,0,0,0" VerticalAlignment="Center"/>
|
Margin="8,0,0,0" VerticalAlignment="Center"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
<TextBlock Text="Border Thickness" Foreground="#a0a0b0" FontSize="11" FontWeight="SemiBold" Margin="0,0,0,2"/>
|
<TextBlock Text="Border Thickness" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" FontWeight="SemiBold" Margin="0,0,0,2"/>
|
||||||
<DockPanel Margin="10,0,0,6">
|
<DockPanel Margin="10,0,0,6">
|
||||||
<Slider DockPanel.Dock="Left" Width="120" Minimum="0" Maximum="10"
|
<Slider DockPanel.Dock="Left" Width="120" Minimum="0" Maximum="10"
|
||||||
Value="{Binding SelectedElement.BorderWidth, Mode=TwoWay}"
|
Value="{Binding SelectedElement.BorderWidth, Mode=TwoWay}"
|
||||||
VerticalAlignment="Center" TickFrequency="1" IsSnapToTickEnabled="True"/>
|
VerticalAlignment="Center" TickFrequency="1" IsSnapToTickEnabled="True"/>
|
||||||
<TextBlock Text="{Binding SelectedElement.BorderWidth}" Foreground="#a0a0b0" FontSize="11"
|
<TextBlock Text="{Binding SelectedElement.BorderWidth}" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11"
|
||||||
VerticalAlignment="Center" Margin="8,0,0,0" Width="20"/>
|
VerticalAlignment="Center" Margin="8,0,0,0" Width="20"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
<TextBlock Text="Border Opacity" Foreground="#a0a0b0" FontSize="11" FontWeight="SemiBold" Margin="0,0,0,2"/>
|
<TextBlock Text="Border Opacity" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" FontWeight="SemiBold" Margin="0,0,0,2"/>
|
||||||
<DockPanel Margin="10,0,0,8">
|
<DockPanel Margin="10,0,0,8">
|
||||||
<Slider DockPanel.Dock="Left" Width="120" Minimum="0" Maximum="1"
|
<Slider DockPanel.Dock="Left" Width="120" Minimum="0" Maximum="1"
|
||||||
Value="{Binding SelectedElement.BorderOpacity, Mode=TwoWay}"
|
Value="{Binding SelectedElement.BorderOpacity, Mode=TwoWay}"
|
||||||
VerticalAlignment="Center"/>
|
VerticalAlignment="Center"/>
|
||||||
<TextBlock Text="{Binding SelectedElement.BorderOpacity, StringFormat={}{0:P0}}" Foreground="#a0a0b0" FontSize="11"
|
<TextBlock Text="{Binding SelectedElement.BorderOpacity, StringFormat={}{0:P0}}" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11"
|
||||||
VerticalAlignment="Center" Margin="8,0,0,0" Width="34"/>
|
VerticalAlignment="Center" Margin="8,0,0,0" Width="34"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
<!-- Font Size -->
|
<!-- Font Size -->
|
||||||
<DockPanel Margin="0,0,0,4">
|
<DockPanel Margin="0,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Font Size" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
<TextBlock DockPanel.Dock="Left" Text="Font Size" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
||||||
<Slider x:Name="ChatFontSizeSlider" Width="120" Minimum="8" Maximum="72" TickFrequency="2" IsSnapToTickEnabled="True"
|
<Slider x:Name="ChatFontSizeSlider" Width="120" Minimum="8" Maximum="72" TickFrequency="2" IsSnapToTickEnabled="True"
|
||||||
Value="{Binding SelectedElement.ChatFontSize, Mode=TwoWay}"
|
Value="{Binding SelectedElement.ChatFontSize, Mode=TwoWay}"
|
||||||
VerticalAlignment="Center"/>
|
VerticalAlignment="Center"/>
|
||||||
<TextBlock DockPanel.Dock="Right" Text="{Binding SelectedElement.ChatFontSize, StringFormat={}{0:0}}" Foreground="#e0e0e0" FontSize="11" Margin="6,0,0,0" VerticalAlignment="Center" Width="24"/>
|
<TextBlock DockPanel.Dock="Right" Text="{Binding SelectedElement.ChatFontSize, StringFormat={}{0:0}}" Foreground="{StaticResource Brush.OnSurface}" FontSize="11" Margin="6,0,0,0" VerticalAlignment="Center" Width="24"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
<!-- Font Family -->
|
<!-- Font Family -->
|
||||||
<DockPanel Margin="0,0,0,4">
|
<DockPanel Margin="0,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Font" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
<TextBlock DockPanel.Dock="Left" Text="Font" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
||||||
<ComboBox SelectedValue="{Binding SelectedElement.ChatFontFamily, Mode=TwoWay}"
|
<ComboBox SelectedValue="{Binding SelectedElement.ChatFontFamily, Mode=TwoWay}"
|
||||||
SelectedValuePath="Content"
|
SelectedValuePath="Content"
|
||||||
Style="{StaticResource YtComboBox}"
|
Style="{StaticResource YtComboBox}"
|
||||||
@@ -573,57 +573,57 @@
|
|||||||
|
|
||||||
<!-- Font Color -->
|
<!-- Font Color -->
|
||||||
<DockPanel Margin="0,0,0,4">
|
<DockPanel Margin="0,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Font Color" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
<TextBlock DockPanel.Dock="Left" Text="Font Color" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
||||||
<TextBox Text="{Binding SelectedElement.ChatFontColor, UpdateSourceTrigger=PropertyChanged}"
|
<TextBox Text="{Binding SelectedElement.ChatFontColor, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Style="{StaticResource YtTextBoxCompact}" Width="80"/>
|
Style="{StaticResource YtTextBoxCompact}" Width="80"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
<!-- Member Color -->
|
<!-- Member Color -->
|
||||||
<DockPanel Margin="0,0,0,4">
|
<DockPanel Margin="0,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Member" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
<TextBlock DockPanel.Dock="Left" Text="Member" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
||||||
<TextBox Text="{Binding SelectedElement.ChatMemberColor, UpdateSourceTrigger=PropertyChanged}"
|
<TextBox Text="{Binding SelectedElement.ChatMemberColor, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Style="{StaticResource YtTextBoxCompact}" Width="80"/>
|
Style="{StaticResource YtTextBoxCompact}" Width="80"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
<!-- Super Chat Color -->
|
<!-- Super Chat Color -->
|
||||||
<DockPanel Margin="0,0,0,4">
|
<DockPanel Margin="0,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Super Chat" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
<TextBlock DockPanel.Dock="Left" Text="Super Chat" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
||||||
<TextBox Text="{Binding SelectedElement.ChatSuperChatColor, UpdateSourceTrigger=PropertyChanged}"
|
<TextBox Text="{Binding SelectedElement.ChatSuperChatColor, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Style="{StaticResource YtTextBoxCompact}" Width="80"/>
|
Style="{StaticResource YtTextBoxCompact}" Width="80"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
<!-- Max Messages -->
|
<!-- Max Messages -->
|
||||||
<DockPanel Margin="0,0,0,4">
|
<DockPanel Margin="0,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Max Msgs" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
<TextBlock DockPanel.Dock="Left" Text="Max Msgs" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
||||||
<Slider x:Name="ChatMaxMsgsSlider" Width="120" Minimum="1" Maximum="20" TickFrequency="1" IsSnapToTickEnabled="True"
|
<Slider x:Name="ChatMaxMsgsSlider" Width="120" Minimum="1" Maximum="20" TickFrequency="1" IsSnapToTickEnabled="True"
|
||||||
Value="{Binding SelectedElement.ChatMaxMessages, Mode=TwoWay}"
|
Value="{Binding SelectedElement.ChatMaxMessages, Mode=TwoWay}"
|
||||||
VerticalAlignment="Center"/>
|
VerticalAlignment="Center"/>
|
||||||
<TextBlock DockPanel.Dock="Right" Text="{Binding SelectedElement.ChatMaxMessages}" Foreground="#e0e0e0" FontSize="11" Margin="6,0,0,0" VerticalAlignment="Center" Width="24"/>
|
<TextBlock DockPanel.Dock="Right" Text="{Binding SelectedElement.ChatMaxMessages}" Foreground="{StaticResource Brush.OnSurface}" FontSize="11" Margin="6,0,0,0" VerticalAlignment="Center" Width="24"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
<!-- Background Color -->
|
<!-- Background Color -->
|
||||||
<DockPanel Margin="0,0,0,4">
|
<DockPanel Margin="0,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Background" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
<TextBlock DockPanel.Dock="Left" Text="Background" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
||||||
<TextBox Text="{Binding SelectedElement.ChatBackgroundColor, UpdateSourceTrigger=PropertyChanged}"
|
<TextBox Text="{Binding SelectedElement.ChatBackgroundColor, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Style="{StaticResource YtTextBoxCompact}" Width="80"/>
|
Style="{StaticResource YtTextBoxCompact}" Width="80"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
<!-- Background Opacity -->
|
<!-- Background Opacity -->
|
||||||
<DockPanel Margin="0,0,0,4">
|
<DockPanel Margin="0,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Bg Opacity" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
<TextBlock DockPanel.Dock="Left" Text="Bg Opacity" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
||||||
<Slider x:Name="ChatBgOpacitySlider" Width="120" Minimum="0" Maximum="1"
|
<Slider x:Name="ChatBgOpacitySlider" Width="120" Minimum="0" Maximum="1"
|
||||||
Value="{Binding SelectedElement.ChatBackgroundOpacity, Mode=TwoWay}"
|
Value="{Binding SelectedElement.ChatBackgroundOpacity, Mode=TwoWay}"
|
||||||
VerticalAlignment="Center"/>
|
VerticalAlignment="Center"/>
|
||||||
<TextBlock DockPanel.Dock="Right" Text="{Binding SelectedElement.ChatBackgroundOpacity, StringFormat={}{0:0%}}" Foreground="#e0e0e0" FontSize="11" Margin="6,0,0,0" VerticalAlignment="Center" Width="32"/>
|
<TextBlock DockPanel.Dock="Right" Text="{Binding SelectedElement.ChatBackgroundOpacity, StringFormat={}{0:0%}}" Foreground="{StaticResource Brush.OnSurface}" FontSize="11" Margin="6,0,0,0" VerticalAlignment="Center" Width="32"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
<!-- Fade After (seconds) -->
|
<!-- Fade After (seconds) -->
|
||||||
<DockPanel Margin="0,0,0,4">
|
<DockPanel Margin="0,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Fade After" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
<TextBlock DockPanel.Dock="Left" Text="Fade After" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="70"/>
|
||||||
<Slider x:Name="ChatFadeSlider" Width="120" Minimum="0" Maximum="60" TickFrequency="5" IsSnapToTickEnabled="True"
|
<Slider x:Name="ChatFadeSlider" Width="120" Minimum="0" Maximum="60" TickFrequency="5" IsSnapToTickEnabled="True"
|
||||||
Value="{Binding SelectedElement.ChatFadeSeconds, Mode=TwoWay}"
|
Value="{Binding SelectedElement.ChatFadeSeconds, Mode=TwoWay}"
|
||||||
VerticalAlignment="Center"/>
|
VerticalAlignment="Center"/>
|
||||||
<TextBlock DockPanel.Dock="Right" Text="{Binding SelectedElement.ChatFadeSeconds, StringFormat='{}{0}s'}" Foreground="#e0e0e0" FontSize="11" Margin="6,0,0,0" VerticalAlignment="Center" Width="28"/>
|
<TextBlock DockPanel.Dock="Right" Text="{Binding SelectedElement.ChatFadeSeconds, StringFormat='{}{0}s'}" Foreground="{StaticResource Brush.OnSurface}" FontSize="11" Margin="6,0,0,0" VerticalAlignment="Center" Width="28"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
<!-- Toggles -->
|
<!-- Toggles -->
|
||||||
@@ -635,12 +635,12 @@
|
|||||||
|
|
||||||
<!-- Stream Alerts config -->
|
<!-- Stream Alerts config -->
|
||||||
<StackPanel Visibility="{Binding SelectedElement.IsAlertBox, Converter={StaticResource BoolToVis}}" Margin="0,0,0,8">
|
<StackPanel Visibility="{Binding SelectedElement.IsAlertBox, Converter={StaticResource BoolToVis}}" Margin="0,0,0,8">
|
||||||
<TextBlock Text="Stream Alerts" Foreground="#a0a0b0" FontSize="11" FontWeight="SemiBold" Margin="0,0,0,6"/>
|
<TextBlock Text="Stream Alerts" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" FontWeight="SemiBold" Margin="0,0,0,6"/>
|
||||||
<TextBlock Text="The built-in clip plays on every alert (Super Chat, membership…) unless a custom video is picked."
|
<TextBlock Text="The built-in clip plays on every alert (Super Chat, membership…) unless a custom video is picked."
|
||||||
Foreground="#888" FontSize="10" TextWrapping="Wrap" Margin="0,0,0,6"/>
|
Foreground="#888" FontSize="10" TextWrapping="Wrap" Margin="0,0,0,6"/>
|
||||||
|
|
||||||
<DockPanel Margin="0,0,0,4">
|
<DockPanel Margin="0,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Built-in video" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="84"/>
|
<TextBlock DockPanel.Dock="Left" Text="Built-in video" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="84"/>
|
||||||
<ToggleButton Style="{StaticResource PillToggle}"
|
<ToggleButton Style="{StaticResource PillToggle}"
|
||||||
IsChecked="{Binding SelectedElement.AlertUseDefaultVideo, Mode=TwoWay}"
|
IsChecked="{Binding SelectedElement.AlertUseDefaultVideo, Mode=TwoWay}"
|
||||||
HorizontalAlignment="Left"/>
|
HorizontalAlignment="Left"/>
|
||||||
@@ -654,7 +654,7 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBox Grid.Column="0" Text="{Binding SelectedElement.AlertVideoPath, Mode=OneWay}"
|
<TextBox Grid.Column="0" Text="{Binding SelectedElement.AlertVideoPath, Mode=OneWay}"
|
||||||
Style="{StaticResource YtTextBoxCompact}"
|
Style="{StaticResource YtTextBoxCompact}"
|
||||||
IsReadOnly="True" Foreground="#a0a0b0" VerticalAlignment="Center"/>
|
IsReadOnly="True" Foreground="{StaticResource Brush.OnSurfaceVariant}" VerticalAlignment="Center"/>
|
||||||
<Button Grid.Column="1" Content="Browse…" Command="{Binding BrowseAlertVideoCommand}"
|
<Button Grid.Column="1" Content="Browse…" Command="{Binding BrowseAlertVideoCommand}"
|
||||||
CommandParameter="{Binding SelectedElement}" Style="{StaticResource YtButtonSecondary}"
|
CommandParameter="{Binding SelectedElement}" Style="{StaticResource YtButtonSecondary}"
|
||||||
Margin="4,0,0,0" Padding="8,2"/>
|
Margin="4,0,0,0" Padding="8,2"/>
|
||||||
@@ -667,7 +667,7 @@
|
|||||||
Foreground="#888" FontSize="10" TextWrapping="Wrap" Margin="0,4,0,6"/>
|
Foreground="#888" FontSize="10" TextWrapping="Wrap" Margin="0,4,0,6"/>
|
||||||
|
|
||||||
<DockPanel Margin="0,0,0,4">
|
<DockPanel Margin="0,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Message ticker" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="84"/>
|
<TextBlock DockPanel.Dock="Left" Text="Message ticker" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="84"/>
|
||||||
<ToggleButton Style="{StaticResource PillToggle}"
|
<ToggleButton Style="{StaticResource PillToggle}"
|
||||||
IsChecked="{Binding SelectedElement.AlertShowTicker, Mode=TwoWay}"
|
IsChecked="{Binding SelectedElement.AlertShowTicker, Mode=TwoWay}"
|
||||||
HorizontalAlignment="Left"/>
|
HorizontalAlignment="Left"/>
|
||||||
@@ -677,7 +677,7 @@
|
|||||||
solid (still). Inline items, not a bound ItemsSource —
|
solid (still). Inline items, not a bound ItemsSource —
|
||||||
same shape as the chat Font selector above. -->
|
same shape as the chat Font selector above. -->
|
||||||
<DockPanel Margin="0,0,0,4">
|
<DockPanel Margin="0,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Display" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="84"/>
|
<TextBlock DockPanel.Dock="Left" Text="Display" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="84"/>
|
||||||
<ComboBox SelectedValue="{Binding SelectedElement.AlertDisplayMethod, Mode=TwoWay}"
|
<ComboBox SelectedValue="{Binding SelectedElement.AlertDisplayMethod, Mode=TwoWay}"
|
||||||
SelectedValuePath="Tag"
|
SelectedValuePath="Tag"
|
||||||
Style="{StaticResource YtComboBox}"
|
Style="{StaticResource YtComboBox}"
|
||||||
@@ -689,11 +689,11 @@
|
|||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
<DockPanel Margin="0,0,0,4">
|
<DockPanel Margin="0,0,0,4">
|
||||||
<TextBlock DockPanel.Dock="Left" Text="Volume" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Width="84"/>
|
<TextBlock DockPanel.Dock="Left" Text="Volume" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Width="84"/>
|
||||||
<Slider Width="120" Minimum="0" Maximum="1"
|
<Slider Width="120" Minimum="0" Maximum="1"
|
||||||
Value="{Binding SelectedElement.AlertVideoVolume, Mode=TwoWay}"
|
Value="{Binding SelectedElement.AlertVideoVolume, Mode=TwoWay}"
|
||||||
VerticalAlignment="Center"/>
|
VerticalAlignment="Center"/>
|
||||||
<TextBlock DockPanel.Dock="Right" Text="{Binding SelectedElement.AlertVideoVolume, StringFormat={}{0:0%}}" Foreground="#e0e0e0" FontSize="11" Margin="6,0,0,0" VerticalAlignment="Center" Width="32"/>
|
<TextBlock DockPanel.Dock="Right" Text="{Binding SelectedElement.AlertVideoVolume, StringFormat={}{0:0%}}" Foreground="{StaticResource Brush.OnSurface}" FontSize="11" Margin="6,0,0,0" VerticalAlignment="Center" Width="32"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
@@ -703,7 +703,7 @@
|
|||||||
<TextBlock Text="Background" Style="{StaticResource SubHeader}"/>
|
<TextBlock Text="Background" Style="{StaticResource SubHeader}"/>
|
||||||
<StackPanel Margin="4,0,0,0">
|
<StackPanel Margin="4,0,0,0">
|
||||||
<StackPanel Orientation="Horizontal" Margin="0,0,0,8">
|
<StackPanel Orientation="Horizontal" Margin="0,0,0,8">
|
||||||
<TextBlock Text="Use default background:" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center"/>
|
<TextBlock Text="Use default background:" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center"/>
|
||||||
<ToggleButton Style="{StaticResource PillToggle}"
|
<ToggleButton Style="{StaticResource PillToggle}"
|
||||||
IsChecked="{Binding SelectedElement.UseDefaultBackground, Mode=TwoWay}"
|
IsChecked="{Binding SelectedElement.UseDefaultBackground, Mode=TwoWay}"
|
||||||
Margin="8,0,0,0"/>
|
Margin="8,0,0,0"/>
|
||||||
@@ -716,12 +716,12 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBox Grid.Column="0" Text="{Binding SelectedElement.CustomBackgroundPath, Mode=OneWay}"
|
<TextBox Grid.Column="0" Text="{Binding SelectedElement.CustomBackgroundPath, Mode=OneWay}"
|
||||||
Style="{StaticResource YtTextBoxCompact}"
|
Style="{StaticResource YtTextBoxCompact}"
|
||||||
IsReadOnly="True" Foreground="#a0a0b0" VerticalAlignment="Center"/>
|
IsReadOnly="True" Foreground="{StaticResource Brush.OnSurfaceVariant}" VerticalAlignment="Center"/>
|
||||||
<Button Grid.Column="1" Content="Browse…" Command="{Binding BrowseBackgroundCommand}"
|
<Button Grid.Column="1" Content="Browse…" Command="{Binding BrowseBackgroundCommand}"
|
||||||
Style="{StaticResource YtButtonSecondary}" Margin="4,0,0,0" Padding="8,2"/>
|
Style="{StaticResource YtButtonSecondary}" Margin="4,0,0,0" Padding="8,2"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<TextBlock Text="{Binding BackgroundSizeMismatchText}"
|
<TextBlock Text="{Binding BackgroundSizeMismatchText}"
|
||||||
Foreground="#ef4444" FontSize="11" TextWrapping="Wrap"
|
Foreground="{StaticResource Brush.Error}" FontSize="11" TextWrapping="Wrap"
|
||||||
Margin="0,4,0,0"
|
Margin="0,4,0,0"
|
||||||
Visibility="{Binding BackgroundSizeMismatch, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding BackgroundSizeMismatch, Converter={StaticResource BoolToVis}}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
@@ -742,7 +742,7 @@
|
|||||||
<!-- Inactive overlay (shown when NOT live) -->
|
<!-- Inactive overlay (shown when NOT live) -->
|
||||||
<StackPanel Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center"
|
<StackPanel Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center"
|
||||||
Visibility="{Binding ShowChatInactiveMessage, Converter={StaticResource BoolToVis}}">
|
Visibility="{Binding ShowChatInactiveMessage, Converter={StaticResource BoolToVis}}">
|
||||||
<TextBlock Text="Chat is inactive" Foreground="#a0a0b0" FontSize="13"
|
<TextBlock Text="Chat is inactive" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="13"
|
||||||
HorizontalAlignment="Center" Margin="0,0,0,4"/>
|
HorizontalAlignment="Center" Margin="0,0,0,4"/>
|
||||||
<TextBlock Text="Chat becomes active once LlamaCasty is connected and streaming on YouTube."
|
<TextBlock Text="Chat becomes active once LlamaCasty is connected and streaming on YouTube."
|
||||||
Foreground="#666" FontSize="11" TextWrapping="Wrap"
|
Foreground="#666" FontSize="11" TextWrapping="Wrap"
|
||||||
@@ -751,11 +751,11 @@
|
|||||||
|
|
||||||
<!-- Pinned message -->
|
<!-- Pinned message -->
|
||||||
<Border Grid.Row="1" VerticalAlignment="Top" Margin="4,4,4,0" Padding="6,4" CornerRadius="4"
|
<Border Grid.Row="1" VerticalAlignment="Top" Margin="4,4,4,0" Padding="6,4" CornerRadius="4"
|
||||||
Background="#1a2a3a" BorderBrush="#38bdf8" BorderThickness="1"
|
Background="{StaticResource Brush.SurfaceContainerHigh}" BorderBrush="{StaticResource Brush.Tertiary}" BorderThickness="1"
|
||||||
Visibility="{Binding PinnedChatMessage, Converter={StaticResource NotNullToVis}}">
|
Visibility="{Binding PinnedChatMessage, Converter={StaticResource NotNullToVis}}">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock Text="{Binding PinnedChatMessage.AuthorName}" Foreground="#38bdf8" FontWeight="SemiBold" FontSize="11"/>
|
<TextBlock Text="{Binding PinnedChatMessage.AuthorName}" Foreground="{StaticResource Brush.Tertiary}" FontWeight="SemiBold" FontSize="11"/>
|
||||||
<TextBlock Text="{Binding PinnedChatMessage.Message}" Foreground="#e0e0e0" FontSize="11" TextWrapping="Wrap"/>
|
<TextBlock Text="{Binding PinnedChatMessage.Message}" Foreground="{StaticResource Brush.OnSurface}" FontSize="11" TextWrapping="Wrap"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
@@ -772,8 +772,8 @@
|
|||||||
<Setter Property="Background" Value="Transparent"/>
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
<Style.Triggers>
|
<Style.Triggers>
|
||||||
<DataTrigger Binding="{Binding IsSuperChat}" Value="True">
|
<DataTrigger Binding="{Binding IsSuperChat}" Value="True">
|
||||||
<Setter Property="Background" Value="#2a1a0a"/>
|
<Setter Property="Background" Value="{StaticResource Brush.SurfaceContainerHigh}"/>
|
||||||
<Setter Property="BorderBrush" Value="#eab308"/>
|
<Setter Property="BorderBrush" Value="{StaticResource Brush.Secondary}"/>
|
||||||
<Setter Property="BorderThickness" Value="1,0,1,0"/>
|
<Setter Property="BorderThickness" Value="1,0,1,0"/>
|
||||||
</DataTrigger>
|
</DataTrigger>
|
||||||
</Style.Triggers>
|
</Style.Triggers>
|
||||||
@@ -784,17 +784,17 @@
|
|||||||
<TextBlock Text="⭐" FontSize="10" Margin="0,0,4,0"
|
<TextBlock Text="⭐" FontSize="10" Margin="0,0,4,0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Visibility="{Binding IsMember, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding IsMember, Converter={StaticResource BoolToVis}}"/>
|
||||||
<TextBlock Text="{Binding AuthorName}" Foreground="#e94560"
|
<TextBlock Text="{Binding AuthorName}" Foreground="{StaticResource Brush.Tertiary}"
|
||||||
FontWeight="Bold" FontSize="12" VerticalAlignment="Center"/>
|
FontWeight="Bold" FontSize="12" VerticalAlignment="Center"/>
|
||||||
<TextBlock Text="{Binding SuperChatAmount, StringFormat=${0:F2}}"
|
<TextBlock Text="{Binding SuperChatAmount, StringFormat=${0:F2}}"
|
||||||
Foreground="#eab308" FontWeight="Bold" FontSize="12"
|
Foreground="{StaticResource Brush.Secondary}" FontWeight="Bold" FontSize="12"
|
||||||
Margin="8,0,0,0" VerticalAlignment="Center"
|
Margin="8,0,0,0" VerticalAlignment="Center"
|
||||||
Visibility="{Binding IsSuperChat, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding IsSuperChat, Converter={StaticResource BoolToVis}}"/>
|
||||||
<TextBlock Text="{Binding SuperChatCurrency}" Foreground="#eab308"
|
<TextBlock Text="{Binding SuperChatCurrency}" Foreground="{StaticResource Brush.Secondary}"
|
||||||
FontSize="11" Margin="2,0,0,0" VerticalAlignment="Center"
|
FontSize="11" Margin="2,0,0,0" VerticalAlignment="Center"
|
||||||
Visibility="{Binding IsSuperChat, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding IsSuperChat, Converter={StaticResource BoolToVis}}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<TextBlock Text="{Binding Message}" Foreground="#e0e0e0"
|
<TextBlock Text="{Binding Message}" Foreground="{StaticResource Brush.OnSurface}"
|
||||||
TextWrapping="Wrap" Margin="0,2,0,0"/>
|
TextWrapping="Wrap" Margin="0,2,0,0"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
|
|||||||
+53
-26
@@ -1,4 +1,4 @@
|
|||||||
<UserControl x:Class="ytLive.Controls.OverlayHost"
|
<UserControl x:Class="ytLive.Controls.OverlayHost"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:Helpers="clr-namespace:ytLive.Helpers"
|
xmlns:Helpers="clr-namespace:ytLive.Helpers"
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
xmlns:services="clr-namespace:ytLive.Services">
|
xmlns:services="clr-namespace:ytLive.Services">
|
||||||
<Grid Grid.RowSpan="3"
|
<Grid Grid.RowSpan="3"
|
||||||
Visibility="{Binding IsAnyOverlayOpen, Converter={StaticResource BoolToVis}}">
|
Visibility="{Binding IsAnyOverlayOpen, Converter={StaticResource BoolToVis}}">
|
||||||
<Button Background="#99000000" BorderThickness="0" Cursor="Hand"
|
<Button Background="{StaticResource Brush.ScrimDarkStrong}" BorderThickness="0" Cursor="Hand"
|
||||||
Command="{Binding CloseOverlayCommand}">
|
Command="{Binding CloseOverlayCommand}">
|
||||||
<Button.Template>
|
<Button.Template>
|
||||||
<ControlTemplate TargetType="Button">
|
<ControlTemplate TargetType="Button">
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
</Button.Template>
|
</Button.Template>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Border Background="#0A0C1A" CornerRadius="8" Width="650" MaxHeight="700"
|
<Border Background="{StaticResource Brush.Background}" CornerRadius="8" Width="650" MaxHeight="700"
|
||||||
VerticalAlignment="Center" HorizontalAlignment="Center"
|
VerticalAlignment="Center" HorizontalAlignment="Center"
|
||||||
Padding="28" BorderBrush="#333" BorderThickness="1">
|
Padding="28" BorderBrush="#333" BorderThickness="1">
|
||||||
<Grid>
|
<Grid>
|
||||||
@@ -27,11 +27,11 @@
|
|||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<Grid Grid.Row="0">
|
<Grid Grid.Row="0">
|
||||||
<TextBlock Text="{Binding OverlayTitle}" FontSize="18" FontWeight="Bold"
|
<TextBlock Text="{Binding OverlayTitle}" FontSize="18" FontWeight="Bold"
|
||||||
Foreground="#e0e0e0" VerticalAlignment="Center"/>
|
Foreground="{StaticResource Brush.OnSurface}" VerticalAlignment="Center"/>
|
||||||
<Button HorizontalAlignment="Right" ToolTip="Close" Style="{StaticResource IconButton}"
|
<Button HorizontalAlignment="Right" ToolTip="Close" Style="{StaticResource IconButton}"
|
||||||
Command="{Binding CloseOverlayCommand}">
|
Command="{Binding CloseOverlayCommand}">
|
||||||
<Path Data="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"
|
<Path Data="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"
|
||||||
Fill="#d0d0d0" Width="14" Height="14" Stretch="Uniform"/>
|
Fill="{StaticResource Brush.OnSurface}" Width="14" Height="14" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
@@ -41,36 +41,63 @@
|
|||||||
<StackPanel Grid.Row="1" Margin="0,8,0,0"
|
<StackPanel Grid.Row="1" Margin="0,8,0,0"
|
||||||
Visibility="{Binding IsSettingsOpen, Converter={StaticResource BoolToVis}}">
|
Visibility="{Binding IsSettingsOpen, Converter={StaticResource BoolToVis}}">
|
||||||
|
|
||||||
<TextBlock Text="Recordings" Foreground="#a0a0b0" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,2"/>
|
<TextBlock Text="Recordings" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,2"/>
|
||||||
<TextBlock Text="Default location" Foreground="#a0a0b0" FontSize="11" Margin="10,0,0,2"/>
|
<TextBlock Text="Default location" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" Margin="10,0,0,2"/>
|
||||||
<DockPanel Margin="10,0,0,8">
|
<DockPanel Margin="10,0,0,8">
|
||||||
<Button DockPanel.Dock="Right" Content="Browse…" Command="{Binding ChooseRecordFolderCommand}"
|
<Button DockPanel.Dock="Right" Content="Browse…" Command="{Binding ChooseRecordFolderCommand}"
|
||||||
Style="{StaticResource YtButtonSecondary}" Padding="8,2" FontSize="11" Margin="6,0,0,0"/>
|
Style="{StaticResource YtButtonSecondary}" Padding="8,2" FontSize="11" Margin="6,0,0,0"/>
|
||||||
<Button DockPanel.Dock="Right" Content="Use Downloads" Command="{Binding ResetRecordFolderCommand}"
|
<Button DockPanel.Dock="Right" Content="Use Downloads" Command="{Binding ResetRecordFolderCommand}"
|
||||||
Style="{StaticResource YtButtonSecondary}" Padding="8,2" FontSize="11" Margin="6,0,0,0"/>
|
Style="{StaticResource YtButtonSecondary}" Padding="8,2" FontSize="11" Margin="6,0,0,0"/>
|
||||||
<TextBox Style="{StaticResource YtTextBoxCompact}" Text="{Binding RecordFolderDisplay, Mode=OneWay}"
|
<TextBox Style="{StaticResource YtTextBoxCompact}" Text="{Binding RecordFolderDisplay, Mode=OneWay}"
|
||||||
IsReadOnly="True" Foreground="#a0a0b0" VerticalAlignment="Center"/>
|
IsReadOnly="True" Foreground="{StaticResource Brush.OnSurfaceVariant}" VerticalAlignment="Center"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
<TextBlock Text="Brand logo" Foreground="#a0a0b0" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,2"/>
|
<TextBlock Text="Brand logo" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,2"/>
|
||||||
<TextBlock Text="Image file (shown on every scene)" Foreground="#a0a0b0" FontSize="11" Margin="10,0,0,2"/>
|
<TextBlock Text="Image file (shown on every scene)" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" Margin="10,0,0,2"/>
|
||||||
<DockPanel Margin="10,0,0,8">
|
<DockPanel Margin="10,0,0,8">
|
||||||
<Button DockPanel.Dock="Right" Content="Browse…" Command="{Binding BrowseBrandLogoCommand}"
|
<Button DockPanel.Dock="Right" Content="Browse…" Command="{Binding BrowseBrandLogoCommand}"
|
||||||
Style="{StaticResource YtButtonSecondary}" Padding="8,2" FontSize="11" Margin="6,0,0,0"/>
|
Style="{StaticResource YtButtonSecondary}" Padding="8,2" FontSize="11" Margin="6,0,0,0"/>
|
||||||
|
<!-- A file NAME says nothing about the picture. The thumbnail shows what
|
||||||
|
is set; hovering enlarges it, a click collapses it again. -->
|
||||||
|
<Border x:Name="BrandLogoThumbFrame" DockPanel.Dock="Left" Width="28" Height="28"
|
||||||
|
Margin="0,0,6,0" CornerRadius="4" ClipToBounds="True"
|
||||||
|
Background="{StaticResource Brush.SurfaceContainerLowest}"
|
||||||
|
BorderBrush="{StaticResource Brush.Outline}" BorderThickness="1"
|
||||||
|
Cursor="Hand" ToolTip="Hover to enlarge — click to close"
|
||||||
|
Visibility="{Binding BrandLogoPreviewImage, Converter={StaticResource NotNullToVis}}">
|
||||||
|
<Image x:Name="BrandLogoThumbImage" Source="{Binding BrandLogoPreviewImage}"
|
||||||
|
Stretch="Uniform" MouseEnter="BrandLogoThumb_MouseEnter"
|
||||||
|
MouseLeave="BrandLogoThumb_MouseLeave"
|
||||||
|
MouseLeftButtonUp="BrandLogoThumb_Click"/>
|
||||||
|
</Border>
|
||||||
<TextBox Style="{StaticResource YtTextBoxCompact}" Text="{Binding BrandLogoFileDisplay, Mode=OneWay}"
|
<TextBox Style="{StaticResource YtTextBoxCompact}" Text="{Binding BrandLogoFileDisplay, Mode=OneWay}"
|
||||||
IsReadOnly="True" Foreground="#a0a0b0" VerticalAlignment="Center"/>
|
IsReadOnly="True" Foreground="{StaticResource Brush.OnSurfaceVariant}" VerticalAlignment="Center"/>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
<Popup x:Name="BrandLogoPreviewPopup" PlacementTarget="{Binding ElementName=BrandLogoThumbFrame}"
|
||||||
|
Placement="Right" HorizontalOffset="6" StaysOpen="True" AllowsTransparency="True"
|
||||||
|
IsHitTestVisible="True" MouseLeave="BrandLogoPreviewPopup_MouseLeave">
|
||||||
|
<Border Padding="6" CornerRadius="6"
|
||||||
|
Background="{StaticResource Brush.SurfaceContainerHighest}"
|
||||||
|
BorderBrush="{StaticResource Brush.Outline}" BorderThickness="1">
|
||||||
|
<StackPanel>
|
||||||
|
<Image Source="{Binding BrandLogoPreviewImage}" MaxWidth="420" MaxHeight="320"
|
||||||
|
Stretch="Uniform" RenderOptions.BitmapScalingMode="HighQuality"/>
|
||||||
|
<TextBlock Text="{Binding BrandLogoFileDisplay}" FontSize="11" Margin="0,6,0,0"
|
||||||
|
Foreground="{StaticResource Brush.OnSurfaceVariant}"/>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
|
</Popup>
|
||||||
|
|
||||||
<TextBlock Text="Preview" Foreground="#a0a0b0" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,2"/>
|
<TextBlock Text="Preview" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,2"/>
|
||||||
<TextBlock Text="Zoom view shape" Foreground="#a0a0b0" FontSize="11" Margin="10,0,0,2"/>
|
<TextBlock Text="Zoom view shape" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" Margin="10,0,0,2"/>
|
||||||
<ComboBox Style="{StaticResource YtComboBox}" Margin="10,0,0,8" SelectedValue="{Binding ZoomShape}" SelectedValuePath="Tag">
|
<ComboBox Style="{StaticResource YtComboBox}" Margin="10,0,0,8" SelectedValue="{Binding ZoomShape}" SelectedValuePath="Tag">
|
||||||
<ComboBoxItem Content="Circle" Tag="{x:Static Models:ZoomShape.Circle}"/>
|
<ComboBoxItem Content="Circle" Tag="{x:Static Models:ZoomShape.Circle}"/>
|
||||||
<ComboBoxItem Content="Phone (Vertical Rectangle)" Tag="{x:Static Models:ZoomShape.VerticalRectangle}"/>
|
<ComboBoxItem Content="Phone (Vertical Rectangle)" Tag="{x:Static Models:ZoomShape.VerticalRectangle}"/>
|
||||||
<ComboBoxItem Content="Tablet (Horizontal Rectangle)" Tag="{x:Static Models:ZoomShape.HorizontalRectangle}"/>
|
<ComboBoxItem Content="Tablet (Horizontal Rectangle)" Tag="{x:Static Models:ZoomShape.HorizontalRectangle}"/>
|
||||||
</ComboBox>
|
</ComboBox>
|
||||||
|
|
||||||
<TextBlock Text="Scene transition" Foreground="#a0a0b0" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,2"/>
|
<TextBlock Text="Scene transition" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" FontWeight="SemiBold" Margin="0,8,0,2"/>
|
||||||
<TextBlock Text="Type" Foreground="#a0a0b0" FontSize="11" Margin="10,0,0,2"/>
|
<TextBlock Text="Type" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" Margin="10,0,0,2"/>
|
||||||
<ComboBox Style="{StaticResource YtComboBox}" Margin="10,0,0,8" SelectedValue="{Binding SelectedTransitionType}" SelectedValuePath="Tag">
|
<ComboBox Style="{StaticResource YtComboBox}" Margin="10,0,0,8" SelectedValue="{Binding SelectedTransitionType}" SelectedValuePath="Tag">
|
||||||
<ComboBoxItem Content="Cut" Tag="{x:Static services:TransitionType.Cut}"/>
|
<ComboBoxItem Content="Cut" Tag="{x:Static services:TransitionType.Cut}"/>
|
||||||
<ComboBoxItem Content="Fade" Tag="{x:Static services:TransitionType.Fade}"/>
|
<ComboBoxItem Content="Fade" Tag="{x:Static services:TransitionType.Fade}"/>
|
||||||
@@ -78,7 +105,7 @@
|
|||||||
<ComboBoxItem Content="Wipe" Tag="{x:Static services:TransitionType.Wipe}"/>
|
<ComboBoxItem Content="Wipe" Tag="{x:Static services:TransitionType.Wipe}"/>
|
||||||
</ComboBox>
|
</ComboBox>
|
||||||
<DockPanel Margin="10,0,0,6">
|
<DockPanel Margin="10,0,0,6">
|
||||||
<TextBlock DockPanel.Dock="Right" Foreground="#a0a0b0" FontSize="11" VerticalAlignment="Center" Margin="8,0,0,0" Width="56">
|
<TextBlock DockPanel.Dock="Right" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" VerticalAlignment="Center" Margin="8,0,0,0" Width="56">
|
||||||
<Run Text="{Binding TransitionDurationMs, StringFormat={}{0:0}}"/><Run Text=" ms"/>
|
<Run Text="{Binding TransitionDurationMs, StringFormat={}{0:0}}"/><Run Text=" ms"/>
|
||||||
</TextBlock>
|
</TextBlock>
|
||||||
<Slider Minimum="100" Maximum="2000" TickFrequency="50" IsSnapToTickEnabled="True"
|
<Slider Minimum="100" Maximum="2000" TickFrequency="50" IsSnapToTickEnabled="True"
|
||||||
@@ -124,22 +151,22 @@
|
|||||||
|
|
||||||
<!-- About -->
|
<!-- About -->
|
||||||
<Grid Grid.Row="1" Margin="0,16,0,0"
|
<Grid Grid.Row="1" Margin="0,16,0,0"
|
||||||
Background="#171928"
|
Background="{StaticResource Brush.SurfaceContainerLow}"
|
||||||
Visibility="{Binding IsAboutOpen, Converter={StaticResource BoolToVis}}">
|
Visibility="{Binding IsAboutOpen, Converter={StaticResource BoolToVis}}">
|
||||||
|
|
||||||
<!-- Hub view -->
|
<!-- Hub view -->
|
||||||
<StackPanel Visibility="{Binding IsHubVisible, Converter={StaticResource BoolToVis}}">
|
<StackPanel Visibility="{Binding IsHubVisible, Converter={StaticResource BoolToVis}}">
|
||||||
<Image Source="/ytLive;component/Assets/llamacasty-logo.jpg" Height="125" Stretch="Uniform"
|
<Image Source="/ytLive;component/Assets/llamacasty-logo.jpg" Height="125" Stretch="Uniform"
|
||||||
HorizontalAlignment="Center" Margin="0,0,0,12"/>
|
HorizontalAlignment="Center" Margin="0,0,0,12"/>
|
||||||
<TextBlock Text="{Binding AppVersionLabel}" Foreground="#a0a0b0" FontSize="12"
|
<TextBlock Text="{Binding AppVersionLabel}" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="12"
|
||||||
HorizontalAlignment="Center" Margin="0,4,0,0"/>
|
HorizontalAlignment="Center" Margin="0,4,0,0"/>
|
||||||
<TextBlock Text="Live streaming for YouTube — simple enough that even the most right-brained person can intuit it."
|
<TextBlock Text="Live streaming for YouTube — simple enough that even the most right-brained person can intuit it."
|
||||||
Foreground="#a0a0b0" FontSize="13" TextWrapping="Wrap" MaxWidth="380"
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="13" TextWrapping="Wrap" MaxWidth="380"
|
||||||
TextAlignment="Center" Margin="0,16,0,0"/>
|
TextAlignment="Center" Margin="0,16,0,0"/>
|
||||||
<TextBlock Text="Free forever — live streams carry a brief "made with LlamaCasty!" flash. A subscription removes it and adds alerts."
|
<TextBlock Text="Free forever — live streams carry a brief "made with LlamaCasty!" flash. A subscription removes it and adds alerts."
|
||||||
Foreground="#888" FontSize="12" TextWrapping="Wrap" MaxWidth="380"
|
Foreground="#888" FontSize="12" TextWrapping="Wrap" MaxWidth="380"
|
||||||
TextAlignment="Center" Margin="0,12,0,0"/>
|
TextAlignment="Center" Margin="0,12,0,0"/>
|
||||||
<TextBlock Text="Made by gramps · llama chile shop" Foreground="#a0a0b0" FontSize="12"
|
<TextBlock Text="Made by gramps · llama chile shop" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="12"
|
||||||
HorizontalAlignment="Center" Margin="0,16,0,8"/>
|
HorizontalAlignment="Center" Margin="0,16,0,8"/>
|
||||||
|
|
||||||
<!-- Creator hub links -->
|
<!-- Creator hub links -->
|
||||||
@@ -169,11 +196,11 @@
|
|||||||
<!-- Licensing/legal panel -->
|
<!-- Licensing/legal panel -->
|
||||||
<StackPanel Visibility="{Binding IsLicensesOpen, Converter={StaticResource BoolToVis}}">
|
<StackPanel Visibility="{Binding IsLicensesOpen, Converter={StaticResource BoolToVis}}">
|
||||||
<TextBlock Text="Third-party notices & license texts" FontSize="15" FontWeight="Bold"
|
<TextBlock Text="Third-party notices & license texts" FontSize="15" FontWeight="Bold"
|
||||||
Foreground="#e0e0e0" Margin="0,0,0,8"/>
|
Foreground="{StaticResource Brush.OnSurface}" Margin="0,0,0,8"/>
|
||||||
<Border Background="#10101e" CornerRadius="4" Padding="10" MaxHeight="360"
|
<Border Background="{StaticResource Brush.SurfaceContainerLowest}" CornerRadius="4" Padding="10" MaxHeight="360"
|
||||||
BorderBrush="#333" BorderThickness="1">
|
BorderBrush="#333" BorderThickness="1">
|
||||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
||||||
<TextBlock Text="{Binding LicensesText}" Foreground="#b8b8c8" FontSize="11"
|
<TextBlock Text="{Binding LicensesText}" Foreground="{StaticResource Brush.OnSurface}" FontSize="11"
|
||||||
FontFamily="Consolas" TextWrapping="Wrap"/>
|
FontFamily="Consolas" TextWrapping="Wrap"/>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</Border>
|
</Border>
|
||||||
@@ -185,9 +212,9 @@
|
|||||||
<!-- License key entry panel -->
|
<!-- License key entry panel -->
|
||||||
<StackPanel Visibility="{Binding IsLicenseEntryOpen, Converter={StaticResource BoolToVis}}">
|
<StackPanel Visibility="{Binding IsLicenseEntryOpen, Converter={StaticResource BoolToVis}}">
|
||||||
<TextBlock Text="Activate LlamaCasty Premium" FontSize="15" FontWeight="Bold"
|
<TextBlock Text="Activate LlamaCasty Premium" FontSize="15" FontWeight="Bold"
|
||||||
Foreground="#e0e0e0" Margin="0,0,0,8"/>
|
Foreground="{StaticResource Brush.OnSurface}" Margin="0,0,0,8"/>
|
||||||
<TextBlock Text="Enter your license key to remove the branding watermark."
|
<TextBlock Text="Enter your license key to remove the branding watermark."
|
||||||
Foreground="#a0a0b0" FontSize="12" TextWrapping="Wrap" Margin="0,0,0,12"/>
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="12" TextWrapping="Wrap" Margin="0,0,0,12"/>
|
||||||
<TextBlock Text="License Key" Style="{StaticResource YtLabel}" Margin="0,0,0,4"/>
|
<TextBlock Text="License Key" Style="{StaticResource YtLabel}" Margin="0,0,0,4"/>
|
||||||
<TextBox Style="{StaticResource YtTextBox}" Margin="0,0,0,12"
|
<TextBox Style="{StaticResource YtTextBox}" Margin="0,0,0,12"
|
||||||
Text="{Binding LicenseKey, UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding LicenseKey, UpdateSourceTrigger=PropertyChanged}"
|
||||||
@@ -195,7 +222,7 @@
|
|||||||
<Button Content="Activate" Command="{Binding ActivateLicenseCommand}"
|
<Button Content="Activate" Command="{Binding ActivateLicenseCommand}"
|
||||||
Style="{StaticResource YtButton}" HorizontalAlignment="Right"
|
Style="{StaticResource YtButton}" HorizontalAlignment="Right"
|
||||||
Margin="0,0,0,8"/>
|
Margin="0,0,0,8"/>
|
||||||
<TextBlock Text="{Binding LicenseMessage}" Foreground="#a0a0b0" FontSize="12"
|
<TextBlock Text="{Binding LicenseMessage}" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="12"
|
||||||
TextWrapping="Wrap" Margin="0,0,0,8"/>
|
TextWrapping="Wrap" Margin="0,0,0,8"/>
|
||||||
<Button Content="← Back to About" Style="{StaticResource YtButtonSecondary}"
|
<Button Content="← Back to About" Style="{StaticResource YtButtonSecondary}"
|
||||||
HorizontalAlignment="Left" Margin="0,8,0,0"
|
HorizontalAlignment="Left" Margin="0,8,0,0"
|
||||||
|
|||||||
@@ -11,6 +11,36 @@ public partial class OverlayHost : UserControl
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>Is the enlarged brand-logo preview showing? Test seam — a Popup is a separate
|
||||||
|
/// window, so nothing else can observe it.</summary>
|
||||||
|
internal bool IsBrandLogoPreviewOpen => BrandLogoPreviewPopup.IsOpen;
|
||||||
|
|
||||||
|
/// <summary>Hover opens the enlargement. Nothing to show when no image is set, so the
|
||||||
|
/// thumbnail simply does nothing in that case.</summary>
|
||||||
|
private void BrandLogoThumb_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
|
||||||
|
=> OpenBrandLogoPreview();
|
||||||
|
|
||||||
|
/// <summary>Leaving the thumbnail closes it — unless the pointer walked onto the popup
|
||||||
|
/// itself (which sits beside it), where it stays put so the creator can look closely.</summary>
|
||||||
|
private void BrandLogoThumb_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
|
||||||
|
{
|
||||||
|
if (BrandLogoPreviewPopup.Child?.IsMouseOver == true) return;
|
||||||
|
CloseBrandLogoPreview();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>A click collapses the enlargement — the explicit "enough, thanks" gesture.</summary>
|
||||||
|
private void BrandLogoThumb_Click(object sender, System.Windows.Input.MouseButtonEventArgs e)
|
||||||
|
=> CloseBrandLogoPreview();
|
||||||
|
|
||||||
|
private void BrandLogoPreviewPopup_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
|
||||||
|
=> CloseBrandLogoPreview();
|
||||||
|
|
||||||
|
/// <summary>The thumbnail is hidden when no image is set (see the XAML), so there is nothing
|
||||||
|
/// to open in that case — no empty frame can appear.</summary>
|
||||||
|
internal void OpenBrandLogoPreview() => BrandLogoPreviewPopup.IsOpen = true;
|
||||||
|
|
||||||
|
internal void CloseBrandLogoPreview() => BrandLogoPreviewPopup.IsOpen = false;
|
||||||
|
|
||||||
private void BackToAbout_Click(object sender, RoutedEventArgs e)
|
private void BackToAbout_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
if (DataContext is MainViewModel vm)
|
if (DataContext is MainViewModel vm)
|
||||||
|
|||||||
+144
-120
@@ -3,7 +3,7 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:Helpers="clr-namespace:ytLive.Helpers"
|
xmlns:Helpers="clr-namespace:ytLive.Helpers"
|
||||||
xmlns:local="clr-namespace:ytLive">
|
xmlns:local="clr-namespace:ytLive">
|
||||||
<Border Background="#0a0a1a" CornerRadius="6" Margin="8,0"
|
<Border Background="{StaticResource Brush.SurfaceContainerLowest}" CornerRadius="6" Margin="8,0"
|
||||||
BorderBrush="{Binding PreviewGlowBrush}" BorderThickness="{Binding PreviewGlowThickness}">
|
BorderBrush="{Binding PreviewGlowBrush}" BorderThickness="{Binding PreviewGlowThickness}">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
@@ -235,7 +235,7 @@
|
|||||||
<Separator/>
|
<Separator/>
|
||||||
<MenuItem Header="Border Thickness">
|
<MenuItem Header="Border Thickness">
|
||||||
<StackPanel Orientation="Horizontal" Margin="8,2">
|
<StackPanel Orientation="Horizontal" Margin="8,2">
|
||||||
<TextBlock Text="Thickness" Foreground="#e0e0e0" VerticalAlignment="Center"/>
|
<TextBlock Text="Thickness" Foreground="{StaticResource Brush.OnSurface}" VerticalAlignment="Center"/>
|
||||||
<Slider Width="120" Minimum="0" Maximum="20" Margin="8,0,0,0"
|
<Slider Width="120" Minimum="0" Maximum="20" Margin="8,0,0,0"
|
||||||
Value="{Binding BorderWidth, Mode=TwoWay}"
|
Value="{Binding BorderWidth, Mode=TwoWay}"
|
||||||
VerticalAlignment="Center"/>
|
VerticalAlignment="Center"/>
|
||||||
@@ -243,35 +243,17 @@
|
|||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem Header="Border Opacity">
|
<MenuItem Header="Border Opacity">
|
||||||
<StackPanel Orientation="Horizontal" Margin="8,2">
|
<StackPanel Orientation="Horizontal" Margin="8,2">
|
||||||
<TextBlock Text="Opacity" Foreground="#e0e0e0" VerticalAlignment="Center"/>
|
<TextBlock Text="Opacity" Foreground="{StaticResource Brush.OnSurface}" VerticalAlignment="Center"/>
|
||||||
<Slider Width="120" Minimum="0" Maximum="1" Margin="8,0,0,0"
|
<Slider Width="120" Minimum="0" Maximum="1" Margin="8,0,0,0"
|
||||||
Value="{Binding BorderOpacity, Mode=TwoWay}"
|
Value="{Binding BorderOpacity, Mode=TwoWay}"
|
||||||
VerticalAlignment="Center"/>
|
VerticalAlignment="Center"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem Header="Border Color">
|
<!-- Filled from Models/BorderColorPalette on open — the list used to be
|
||||||
<MenuItem Header="None" Tag="" IsCheckable="True"
|
seven hand-written rows here, a second source of truth beside the
|
||||||
IsChecked="{Binding BorderColor, Converter={StaticResource EnumToBool}, ConverterParameter=''}"
|
properties drop-down (TASK 63). -->
|
||||||
Click="WebcamMenu_SetBorderColor"/>
|
<MenuItem x:Name="WebcamBorderColorMenu" Header="Border Color"
|
||||||
<MenuItem Header="#ffffff" Tag="#ffffff" IsCheckable="True"
|
SubmenuOpened="WebcamBorderColorMenu_SubmenuOpened"/>
|
||||||
IsChecked="{Binding BorderColor, Converter={StaticResource EnumToBool}, ConverterParameter=#ffffff}"
|
|
||||||
Click="WebcamMenu_SetBorderColor"/>
|
|
||||||
<MenuItem Header="#000000" Tag="#000000" IsCheckable="True"
|
|
||||||
IsChecked="{Binding BorderColor, Converter={StaticResource EnumToBool}, ConverterParameter=#000000}"
|
|
||||||
Click="WebcamMenu_SetBorderColor"/>
|
|
||||||
<MenuItem Header="#e94560" Tag="#e94560" IsCheckable="True"
|
|
||||||
IsChecked="{Binding BorderColor, Converter={StaticResource EnumToBool}, ConverterParameter=#e94560}"
|
|
||||||
Click="WebcamMenu_SetBorderColor"/>
|
|
||||||
<MenuItem Header="#22c55e" Tag="#22c55e" IsCheckable="True"
|
|
||||||
IsChecked="{Binding BorderColor, Converter={StaticResource EnumToBool}, ConverterParameter=#22c55e}"
|
|
||||||
Click="WebcamMenu_SetBorderColor"/>
|
|
||||||
<MenuItem Header="#eab308" Tag="#eab308" IsCheckable="True"
|
|
||||||
IsChecked="{Binding BorderColor, Converter={StaticResource EnumToBool}, ConverterParameter=#eab308}"
|
|
||||||
Click="WebcamMenu_SetBorderColor"/>
|
|
||||||
<MenuItem Header="#38bdf8" Tag="#38bdf8" IsCheckable="True"
|
|
||||||
IsChecked="{Binding BorderColor, Converter={StaticResource EnumToBool}, ConverterParameter=#38bdf8}"
|
|
||||||
Click="WebcamMenu_SetBorderColor"/>
|
|
||||||
</MenuItem>
|
|
||||||
<MenuItem Header="Border Effect">
|
<MenuItem Header="Border Effect">
|
||||||
<MenuItem Header="None" Tag="None" IsCheckable="True"
|
<MenuItem Header="None" Tag="None" IsCheckable="True"
|
||||||
IsChecked="{Binding BorderAnimation, Converter={StaticResource EnumToBool}, ConverterParameter=None}"
|
IsChecked="{Binding BorderAnimation, Converter={StaticResource EnumToBool}, ConverterParameter=None}"
|
||||||
@@ -314,12 +296,12 @@
|
|||||||
<Grid x:Name="SelectionOverlay" IsHitTestVisible="False"
|
<Grid x:Name="SelectionOverlay" IsHitTestVisible="False"
|
||||||
Canvas.Left="{Binding SelectedElement.X}" Canvas.Top="{Binding SelectedElement.Y}"
|
Canvas.Left="{Binding SelectedElement.X}" Canvas.Top="{Binding SelectedElement.Y}"
|
||||||
Width="{Binding SelectedElement.Width}" Height="{Binding SelectedElement.Height}">
|
Width="{Binding SelectedElement.Width}" Height="{Binding SelectedElement.Height}">
|
||||||
<Rectangle Stroke="#ff8c3a" StrokeDashArray="4 3" StrokeThickness="5"/>
|
<Rectangle Stroke="{StaticResource Brush.Attention}" StrokeDashArray="4 3" StrokeThickness="5"/>
|
||||||
<Ellipse Width="26" Height="26" Fill="#ff8c3a" Stroke="White" StrokeThickness="2"
|
<Ellipse Width="26" Height="26" Fill="{StaticResource Brush.Attention}" Stroke="White" StrokeThickness="2"
|
||||||
HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,-13,-13"/>
|
HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,-13,-13"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Rectangle IsHitTestVisible="False" Stroke="#e94560" StrokeThickness="3"
|
<Rectangle IsHitTestVisible="False" Stroke="{StaticResource Brush.Tertiary}" StrokeThickness="3"
|
||||||
Canvas.Left="{Binding OutputRectX}" Canvas.Top="{Binding OutputRectY}"
|
Canvas.Left="{Binding OutputRectX}" Canvas.Top="{Binding OutputRectY}"
|
||||||
Width="{Binding OutputRectWidth}" Height="{Binding OutputRectHeight}"
|
Width="{Binding OutputRectWidth}" Height="{Binding OutputRectHeight}"
|
||||||
Visibility="{Binding IsOutputCropped, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding IsOutputCropped, Converter={StaticResource BoolToVis}}"/>
|
||||||
@@ -369,8 +351,20 @@
|
|||||||
<DropShadowEffect Color="{Binding SocialBarGlowBrush.Color}"
|
<DropShadowEffect Color="{Binding SocialBarGlowBrush.Color}"
|
||||||
BlurRadius="18" ShadowDepth="0" Opacity="0.9"/>
|
BlurRadius="18" ShadowDepth="0" Opacity="0.9"/>
|
||||||
</Grid.Effect>
|
</Grid.Effect>
|
||||||
|
<Border HorizontalAlignment="Center" Margin="40,8" CornerRadius="20"
|
||||||
|
Background="{Binding SocialBarBackgroundBrush}">
|
||||||
|
<Border.Style>
|
||||||
|
<Style TargetType="Border">
|
||||||
|
<Setter Property="Padding" Value="0"/>
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding Socials.BarBackgroundEnabled}" Value="True">
|
||||||
|
<Setter Property="Padding" Value="18,6"/>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</Border.Style>
|
||||||
<ItemsControl ItemsSource="{Binding Socials.Entries}"
|
<ItemsControl ItemsSource="{Binding Socials.Entries}"
|
||||||
HorizontalAlignment="Center" Margin="40,8"
|
HorizontalAlignment="Center"
|
||||||
IsHitTestVisible="False">
|
IsHitTestVisible="False">
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
@@ -380,15 +374,45 @@
|
|||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<StackPanel Orientation="Horizontal" Margin="0,0,20,0">
|
<StackPanel Orientation="Horizontal" Margin="0,0,20,0">
|
||||||
<Path Data="{Binding LogoData}" Fill="White" Width="24" Height="24"
|
<Path Data="{Binding LogoData}" Width="24" Height="24"
|
||||||
Stretch="Uniform" VerticalAlignment="Center"/>
|
Fill="{Binding DataContext.SocialBarTextBrush, RelativeSource={RelativeSource AncestorType=ItemsControl}}"
|
||||||
<TextBlock Text="{Binding Handle}" Foreground="White"
|
Stretch="Uniform" VerticalAlignment="Center">
|
||||||
FontSize="14" VerticalAlignment="Center"
|
<Path.Style>
|
||||||
Margin="8,0,0,0"/>
|
<Style TargetType="Path">
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding DataContext.Socials.BarTextShadow, RelativeSource={RelativeSource AncestorType=ItemsControl}}" Value="True">
|
||||||
|
<Setter Property="Effect">
|
||||||
|
<Setter.Value>
|
||||||
|
<DropShadowEffect Color="Black" BlurRadius="4" ShadowDepth="2" Direction="315" Opacity="0.85"/>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</Path.Style>
|
||||||
|
</Path>
|
||||||
|
<TextBlock Text="{Binding Handle}" FontSize="14" VerticalAlignment="Center"
|
||||||
|
Margin="8,0,0,0"
|
||||||
|
Foreground="{Binding DataContext.SocialBarTextBrush, RelativeSource={RelativeSource AncestorType=ItemsControl}}">
|
||||||
|
<TextBlock.Style>
|
||||||
|
<Style TargetType="TextBlock">
|
||||||
|
<Style.Triggers>
|
||||||
|
<DataTrigger Binding="{Binding DataContext.Socials.BarTextShadow, RelativeSource={RelativeSource AncestorType=ItemsControl}}" Value="True">
|
||||||
|
<Setter Property="Effect">
|
||||||
|
<Setter.Value>
|
||||||
|
<DropShadowEffect Color="Black" BlurRadius="4" ShadowDepth="2" Direction="315" Opacity="0.85"/>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</DataTrigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</TextBlock.Style>
|
||||||
|
</TextBlock>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ItemsControl.ItemTemplate>
|
</ItemsControl.ItemTemplate>
|
||||||
</ItemsControl>
|
</ItemsControl>
|
||||||
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Canvas>
|
</Canvas>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -430,8 +454,8 @@
|
|||||||
Canvas.Left="{Binding ZoomState.X}" Canvas.Top="{Binding ZoomState.Y}"
|
Canvas.Left="{Binding ZoomState.X}" Canvas.Top="{Binding ZoomState.Y}"
|
||||||
Width="{Binding ZoomState.Width}" Height="{Binding ZoomState.Height}"
|
Width="{Binding ZoomState.Width}" Height="{Binding ZoomState.Height}"
|
||||||
Visibility="{Binding IsZoomActive, Converter={StaticResource BoolToVis}}">
|
Visibility="{Binding IsZoomActive, Converter={StaticResource BoolToVis}}">
|
||||||
<Rectangle x:Name="ZoomRectOutline" Stroke="#d8a72b" StrokeThickness="3" Fill="Transparent"/>
|
<Rectangle x:Name="ZoomRectOutline" Stroke="{StaticResource Brush.Secondary}" StrokeThickness="3" Fill="Transparent"/>
|
||||||
<Ellipse x:Name="ZoomCircleOutline" Stroke="#d8a72b" StrokeThickness="3" Fill="Transparent" Visibility="Collapsed"/>
|
<Ellipse x:Name="ZoomCircleOutline" Stroke="{StaticResource Brush.Secondary}" StrokeThickness="3" Fill="Transparent" Visibility="Collapsed"/>
|
||||||
<Grid.Background>
|
<Grid.Background>
|
||||||
<VisualBrush x:Name="ZoomVisualBrush" ViewboxUnits="Absolute" Stretch="Fill"/>
|
<VisualBrush x:Name="ZoomVisualBrush" ViewboxUnits="Absolute" Stretch="Fill"/>
|
||||||
</Grid.Background>
|
</Grid.Background>
|
||||||
@@ -439,7 +463,7 @@
|
|||||||
</Canvas>
|
</Canvas>
|
||||||
</Viewbox>
|
</Viewbox>
|
||||||
<Border HorizontalAlignment="Left" VerticalAlignment="Top" Margin="8,8,0,0"
|
<Border HorizontalAlignment="Left" VerticalAlignment="Top" Margin="8,8,0,0"
|
||||||
Background="#CCe94560" CornerRadius="4" Padding="8,3" IsHitTestVisible="False"
|
Background="{StaticResource Brush.Primary}" CornerRadius="4" Padding="8,3" IsHitTestVisible="False"
|
||||||
Visibility="{Binding WebcamError, Converter={StaticResource NotNullToVis}}">
|
Visibility="{Binding WebcamError, Converter={StaticResource NotNullToVis}}">
|
||||||
<TextBlock Text="{Binding WebcamError}" Foreground="White" FontSize="12"
|
<TextBlock Text="{Binding WebcamError}" Foreground="White" FontSize="12"
|
||||||
MaxWidth="520" TextTrimming="CharacterEllipsis"/>
|
MaxWidth="520" TextTrimming="CharacterEllipsis"/>
|
||||||
@@ -455,10 +479,10 @@
|
|||||||
<TextBlock Text="🖼️" Foreground="White" FontSize="30" Margin="0,0,20,0"/>
|
<TextBlock Text="🖼️" Foreground="White" FontSize="30" Margin="0,0,20,0"/>
|
||||||
<TextBlock Text="✏️" Foreground="White" FontSize="30"/>
|
<TextBlock Text="✏️" Foreground="White" FontSize="30"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<TextBlock Text="Make it yours!" Foreground="#e0e0e0" FontSize="18"
|
<TextBlock Text="Make it yours!" Foreground="{StaticResource Brush.OnSurface}" FontSize="18"
|
||||||
FontWeight="SemiBold" HorizontalAlignment="Center" Margin="0,18,0,0"/>
|
FontWeight="SemiBold" HorizontalAlignment="Center" Margin="0,18,0,0"/>
|
||||||
<TextBlock Text="Add layers — your webcam, your screen, images, and text — to craft a brand and identity that's unmistakably you."
|
<TextBlock Text="Add layers — your webcam, your screen, images, and text — to craft a brand and identity that's unmistakably you."
|
||||||
Foreground="#a0a0b0" FontSize="13" Margin="0,8,0,0"
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="13" Margin="0,8,0,0"
|
||||||
TextWrapping="Wrap" MaxWidth="440" TextAlignment="Center"
|
TextWrapping="Wrap" MaxWidth="440" TextAlignment="Center"
|
||||||
HorizontalAlignment="Center"/>
|
HorizontalAlignment="Center"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
@@ -474,7 +498,7 @@
|
|||||||
<StackPanel x:Name="TextPullOutHost" Orientation="Horizontal"
|
<StackPanel x:Name="TextPullOutHost" Orientation="Horizontal"
|
||||||
HorizontalAlignment="Right" VerticalAlignment="Stretch">
|
HorizontalAlignment="Right" VerticalAlignment="Stretch">
|
||||||
<!-- The broadcast-metadata drawer -->
|
<!-- The broadcast-metadata drawer -->
|
||||||
<Border Background="#16213e" ClipToBounds="True">
|
<Border Background="{StaticResource Brush.SurfaceContainer}" ClipToBounds="True">
|
||||||
<Border.Style>
|
<Border.Style>
|
||||||
<Style TargetType="Border">
|
<Style TargetType="Border">
|
||||||
<Setter Property="Width" Value="0"/>
|
<Setter Property="Width" Value="0"/>
|
||||||
@@ -527,7 +551,7 @@
|
|||||||
<ContentPresenter/>
|
<ContentPresenter/>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Button.Template>
|
</Button.Template>
|
||||||
<TextBlock Text="✕" Foreground="#a0a0b0" FontSize="14" FontWeight="Bold"/>
|
<TextBlock Text="✕" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="14" FontWeight="Bold"/>
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
||||||
@@ -551,20 +575,20 @@
|
|||||||
IsChecked="{Binding BroadcastForm.MadeForKids}"/>
|
IsChecked="{Binding BroadcastForm.MadeForKids}"/>
|
||||||
<TextBlock Text="SCHEDULED START" Style="{StaticResource YtLabel}" Margin="0,0,0,3"/>
|
<TextBlock Text="SCHEDULED START" Style="{StaticResource YtLabel}" Margin="0,0,0,3"/>
|
||||||
<TextBlock Text="{Binding BroadcastForm.ScheduledStartText}"
|
<TextBlock Text="{Binding BroadcastForm.ScheduledStartText}"
|
||||||
Foreground="#888899" FontSize="12" Margin="0,0,0,4"/>
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="12" Margin="0,0,0,4"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
<StackPanel Grid.Row="2" Margin="0,10,0,0">
|
<StackPanel Grid.Row="2" Margin="0,10,0,0">
|
||||||
<Button Style="{StaticResource YtButton}" Content="Update Broadcast"
|
<Button Style="{StaticResource YtButton}" Content="Update Broadcast"
|
||||||
Command="{Binding BroadcastForm.UpdateBroadcastCommand}"/>
|
Command="{Binding BroadcastForm.UpdateBroadcastCommand}"/>
|
||||||
<TextBlock Text="{Binding BroadcastForm.UpdateError}"
|
<TextBlock Text="{Binding BroadcastForm.UpdateError}"
|
||||||
Foreground="#ef4444" FontSize="11" TextWrapping="Wrap" Margin="0,6,0,0"
|
Foreground="{StaticResource Brush.Error}" FontSize="11" TextWrapping="Wrap" Margin="0,6,0,0"
|
||||||
Visibility="{Binding BroadcastForm.UpdateError, Converter={StaticResource NotNullToVis}}"/>
|
Visibility="{Binding BroadcastForm.UpdateError, Converter={StaticResource NotNullToVis}}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
<!-- The Socials drawer (same pattern as the other pull-outs) -->
|
<!-- The Socials drawer (same pattern as the other pull-outs) -->
|
||||||
<Border Background="#16213e" ClipToBounds="True">
|
<Border Background="{StaticResource Brush.SurfaceContainer}" ClipToBounds="True">
|
||||||
<Border.Style>
|
<Border.Style>
|
||||||
<Style TargetType="Border">
|
<Style TargetType="Border">
|
||||||
<Setter Property="Width" Value="0"/>
|
<Setter Property="Width" Value="0"/>
|
||||||
@@ -614,14 +638,14 @@
|
|||||||
<ContentPresenter/>
|
<ContentPresenter/>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Button.Template>
|
</Button.Template>
|
||||||
<TextBlock Text="✕" Foreground="#a0a0b0" FontSize="14" FontWeight="Bold"/>
|
<TextBlock Text="✕" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="14" FontWeight="Bold"/>
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
<local:SocialsDialog Grid.Row="1" DataContext="{Binding SocialsDrawer}"/>
|
<local:SocialsDialog Grid.Row="1" DataContext="{Binding SocialsDrawer}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
<!-- The YPP-progress drawer (below Stream Settings on the rail) -->
|
<!-- The YPP-progress drawer (below Stream Settings on the rail) -->
|
||||||
<Border Background="#16213e" ClipToBounds="True">
|
<Border Background="{StaticResource Brush.SurfaceContainer}" ClipToBounds="True">
|
||||||
<Border.Style>
|
<Border.Style>
|
||||||
<Style TargetType="Border">
|
<Style TargetType="Border">
|
||||||
<Setter Property="Width" Value="0"/>
|
<Setter Property="Width" Value="0"/>
|
||||||
@@ -673,48 +697,48 @@
|
|||||||
<ContentPresenter/>
|
<ContentPresenter/>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Button.Template>
|
</Button.Template>
|
||||||
<TextBlock Text="✕" Foreground="#a0a0b0" FontSize="14" FontWeight="Bold"/>
|
<TextBlock Text="✕" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="14" FontWeight="Bold"/>
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock Text="Sign in to YouTube to see your Partner Program progress and eligibility checklist here."
|
<TextBlock Text="Sign in to YouTube to see your Partner Program progress and eligibility checklist here."
|
||||||
Foreground="#d0d0e0" FontSize="13" TextWrapping="Wrap"
|
Foreground="{StaticResource Brush.OnSurface}" FontSize="13" TextWrapping="Wrap"
|
||||||
Visibility="{Binding Ypp.IsSignedOut, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding Ypp.IsSignedOut, Converter={StaticResource BoolToVis}}"/>
|
||||||
<TextBlock Text="Refreshing from YouTube…" Foreground="#a0a0b0" FontSize="12"
|
<TextBlock Text="Refreshing from YouTube…" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="12"
|
||||||
Margin="0,0,0,4"
|
Margin="0,0,0,4"
|
||||||
Visibility="{Binding Ypp.IsLoading, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding Ypp.IsLoading, Converter={StaticResource BoolToVis}}"/>
|
||||||
<TextBlock Text="{Binding Ypp.LoadError}" Foreground="#ef4444" FontSize="11"
|
<TextBlock Text="{Binding Ypp.LoadError}" Foreground="{StaticResource Brush.Error}" FontSize="11"
|
||||||
TextWrapping="Wrap" Margin="0,0,0,4"
|
TextWrapping="Wrap" Margin="0,0,0,4"
|
||||||
Visibility="{Binding Ypp.LoadError, Converter={StaticResource NotNullToVis}}"/>
|
Visibility="{Binding Ypp.LoadError, Converter={StaticResource NotNullToVis}}"/>
|
||||||
<StackPanel Visibility="{Binding Ypp.IsSignedOut, Converter={StaticResource InverseBoolToVis}}">
|
<StackPanel Visibility="{Binding Ypp.IsSignedOut, Converter={StaticResource InverseBoolToVis}}">
|
||||||
<TextBlock Text="{Binding Ypp.DisplayName}" Foreground="#e0e0e0" FontSize="13"
|
<TextBlock Text="{Binding Ypp.DisplayName}" Foreground="{StaticResource Brush.OnSurface}" FontSize="13"
|
||||||
FontWeight="SemiBold" Margin="0,0,0,10"/>
|
FontWeight="SemiBold" Margin="0,0,0,10"/>
|
||||||
<TextBlock Text="SUBSCRIBERS — TIER 1 · FAN FUNDING" Style="{StaticResource YtLabel}" Margin="0,0,0,2"/>
|
<TextBlock Text="SUBSCRIBERS — TIER 1 · FAN FUNDING" Style="{StaticResource YtLabel}" Margin="0,0,0,2"/>
|
||||||
<TextBlock Text="{Binding Ypp.Tier1SubsText}" Foreground="#e0e0e0" FontSize="13"/>
|
<TextBlock Text="{Binding Ypp.Tier1SubsText}" Foreground="{StaticResource Brush.OnSurface}" FontSize="13"/>
|
||||||
<Border Height="8" Background="#2a2a40" CornerRadius="4" Margin="0,4,0,10">
|
<Border Height="8" Background="{StaticResource Brush.SurfaceContainerHigh}" CornerRadius="4" Margin="0,4,0,10">
|
||||||
<Border Height="8" Background="#e94560" CornerRadius="4" HorizontalAlignment="Left"
|
<Border Height="8" Background="{StaticResource Brush.Tertiary}" CornerRadius="4" HorizontalAlignment="Left"
|
||||||
Width="{Binding Ypp.Tier1SubsBarWidth}"/>
|
Width="{Binding Ypp.Tier1SubsBarWidth}"/>
|
||||||
</Border>
|
</Border>
|
||||||
<TextBlock Text="SUBSCRIBERS — TIER 2 · AD REVENUE" Style="{StaticResource YtLabel}" Margin="0,0,0,2"/>
|
<TextBlock Text="SUBSCRIBERS — TIER 2 · AD REVENUE" Style="{StaticResource YtLabel}" Margin="0,0,0,2"/>
|
||||||
<TextBlock Text="{Binding Ypp.Tier2SubsText}" Foreground="#e0e0e0" FontSize="13"/>
|
<TextBlock Text="{Binding Ypp.Tier2SubsText}" Foreground="{StaticResource Brush.OnSurface}" FontSize="13"/>
|
||||||
<Border Height="8" Background="#2a2a40" CornerRadius="4" Margin="0,4,0,10">
|
<Border Height="8" Background="{StaticResource Brush.SurfaceContainerHigh}" CornerRadius="4" Margin="0,4,0,10">
|
||||||
<Border Height="8" Background="#e94560" CornerRadius="4" HorizontalAlignment="Left"
|
<Border Height="8" Background="{StaticResource Brush.Tertiary}" CornerRadius="4" HorizontalAlignment="Left"
|
||||||
Width="{Binding Ypp.Tier2SubsBarWidth}"/>
|
Width="{Binding Ypp.Tier2SubsBarWidth}"/>
|
||||||
</Border>
|
</Border>
|
||||||
<TextBlock Text="PUBLIC UPLOADS (90 DAYS)" Style="{StaticResource YtLabel}" Margin="0,0,0,2"/>
|
<TextBlock Text="PUBLIC UPLOADS (90 DAYS)" Style="{StaticResource YtLabel}" Margin="0,0,0,2"/>
|
||||||
<TextBlock Text="{Binding Ypp.UploadsText}" Foreground="#e0e0e0" FontSize="13"/>
|
<TextBlock Text="{Binding Ypp.UploadsText}" Foreground="{StaticResource Brush.OnSurface}" FontSize="13"/>
|
||||||
<Border Height="8" Background="#2a2a40" CornerRadius="4" Margin="0,4,0,6">
|
<Border Height="8" Background="{StaticResource Brush.SurfaceContainerHigh}" CornerRadius="4" Margin="0,4,0,6">
|
||||||
<Border Height="8" Background="#e94560" CornerRadius="4" HorizontalAlignment="Left"
|
<Border Height="8" Background="{StaticResource Brush.Tertiary}" CornerRadius="4" HorizontalAlignment="Left"
|
||||||
Width="{Binding Ypp.UploadsBarWidth}"/>
|
Width="{Binding Ypp.UploadsBarWidth}"/>
|
||||||
</Border>
|
</Border>
|
||||||
<TextBlock Text="LONG-FORM WATCH HOURS + SHORTS VIEWS" Style="{StaticResource YtLabel}" Margin="0,10,0,2"/>
|
<TextBlock Text="LONG-FORM WATCH HOURS + SHORTS VIEWS" Style="{StaticResource YtLabel}" Margin="0,10,0,2"/>
|
||||||
<TextBlock Text="These arrive with the extended analytics update — subscriber + upload + standing progress is live now."
|
<TextBlock Text="These arrive with the extended analytics update — subscriber + upload + standing progress is live now."
|
||||||
Foreground="#666677" FontSize="12" TextWrapping="Wrap"/>
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="12" TextWrapping="Wrap"/>
|
||||||
|
|
||||||
<TextBlock Text="COMPLIANCE CHECKLIST" Style="{StaticResource YtLabel}" Margin="0,14,0,4"/>
|
<TextBlock Text="COMPLIANCE CHECKLIST" Style="{StaticResource YtLabel}" Margin="0,14,0,4"/>
|
||||||
<TextBlock Text="CHANNEL STANDING" Style="{StaticResource YtLabel}" Margin="0,0,0,2"/>
|
<TextBlock Text="CHANNEL STANDING" Style="{StaticResource YtLabel}" Margin="0,0,0,2"/>
|
||||||
<TextBlock Text="{Binding Ypp.StandingDetailText}" Foreground="#888899" FontSize="11"
|
<TextBlock Text="{Binding Ypp.StandingDetailText}" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11"
|
||||||
TextWrapping="Wrap" Margin="0,0,0,8"/>
|
TextWrapping="Wrap" Margin="0,0,0,8"/>
|
||||||
<CheckBox Content="Two-Step Verification switched on" Style="{StaticResource YtCheckBox}"
|
<CheckBox Content="Two-Step Verification switched on" Style="{StaticResource YtCheckBox}"
|
||||||
FontSize="12" Margin="0,2,0,0"
|
FontSize="12" Margin="0,2,0,0"
|
||||||
@@ -726,7 +750,7 @@
|
|||||||
<ContentPresenter/>
|
<ContentPresenter/>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Button.Template>
|
</Button.Template>
|
||||||
<TextBlock Text="Set up on Google →" Foreground="#5aa7ff" FontSize="12" Margin="0,0,0,6"/>
|
<TextBlock Text="Set up on Google →" Foreground="{StaticResource Brush.Tertiary}" FontSize="12" Margin="0,0,0,6"/>
|
||||||
</Button>
|
</Button>
|
||||||
<CheckBox Content="AdSense account linked" Style="{StaticResource YtCheckBox}"
|
<CheckBox Content="AdSense account linked" Style="{StaticResource YtCheckBox}"
|
||||||
FontSize="12" Margin="0,2,0,0"
|
FontSize="12" Margin="0,2,0,0"
|
||||||
@@ -738,11 +762,11 @@
|
|||||||
<ContentPresenter/>
|
<ContentPresenter/>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Button.Template>
|
</Button.Template>
|
||||||
<TextBlock Text="How to link on YouTube →" Foreground="#5aa7ff" FontSize="12" Margin="0,0,0,6"/>
|
<TextBlock Text="How to link on YouTube →" Foreground="{StaticResource Brush.Tertiary}" FontSize="12" Margin="0,0,0,6"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<TextBlock Text="WHAT COUNTS" Style="{StaticResource YtLabel}" Margin="0,10,0,4"/>
|
<TextBlock Text="WHAT COUNTS" Style="{StaticResource YtLabel}" Margin="0,10,0,4"/>
|
||||||
<TextBlock Text="{Binding Ypp.WhatCountsText}" Foreground="#a0a0b0" FontSize="12"
|
<TextBlock Text="{Binding Ypp.WhatCountsText}" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="12"
|
||||||
TextWrapping="Wrap" Margin="0,0,0,6"/>
|
TextWrapping="Wrap" Margin="0,0,0,6"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
@@ -750,12 +774,12 @@
|
|||||||
<StackPanel Grid.Row="2" Margin="0,10,0,0">
|
<StackPanel Grid.Row="2" Margin="0,10,0,0">
|
||||||
<Button Style="{StaticResource YtButton}" Content="Refresh from YouTube"
|
<Button Style="{StaticResource YtButton}" Content="Refresh from YouTube"
|
||||||
Command="{Binding Ypp.RefreshCommand}"/>
|
Command="{Binding Ypp.RefreshCommand}"/>
|
||||||
<TextBlock Text="{Binding Ypp.LastUpdatedText}" Foreground="#888899" FontSize="11" Margin="0,6,0,0"/>
|
<TextBlock Text="{Binding Ypp.LastUpdatedText}" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" Margin="0,6,0,0"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
<!-- The Test-stream drawer (below YPP on the rail) -->
|
<!-- The Test-stream drawer (below YPP on the rail) -->
|
||||||
<Border Background="#16213e" ClipToBounds="True">
|
<Border Background="{StaticResource Brush.SurfaceContainer}" ClipToBounds="True">
|
||||||
<Border.Style>
|
<Border.Style>
|
||||||
<Style TargetType="Border">
|
<Style TargetType="Border">
|
||||||
<Setter Property="Width" Value="0"/>
|
<Setter Property="Width" Value="0"/>
|
||||||
@@ -807,20 +831,20 @@
|
|||||||
<ContentPresenter/>
|
<ContentPresenter/>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Button.Template>
|
</Button.Template>
|
||||||
<TextBlock Text="✕" Foreground="#a0a0b0" FontSize="14" FontWeight="Bold"/>
|
<TextBlock Text="✕" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="14" FontWeight="Bold"/>
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock Text="{Binding TestSession.SessionCaption}"
|
<TextBlock Text="{Binding TestSession.SessionCaption}"
|
||||||
Foreground="#d0d0e0" FontSize="13" TextWrapping="Wrap" Margin="0,0,0,8"/>
|
Foreground="{StaticResource Brush.OnSurface}" FontSize="13" TextWrapping="Wrap" Margin="0,0,0,8"/>
|
||||||
<TextBlock Text="{Binding TestSession.ChatIdLine}"
|
<TextBlock Text="{Binding TestSession.ChatIdLine}"
|
||||||
Foreground="#888899" FontSize="11"
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11"
|
||||||
Visibility="{Binding TestSession.IsTestSession, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding TestSession.IsTestSession, Converter={StaticResource BoolToVis}}"/>
|
||||||
|
|
||||||
<TextBlock Text="MOCK CHAT INPUT" Style="{StaticResource YtLabel}" Margin="0,10,0,3"/>
|
<TextBlock Text="MOCK CHAT INPUT" Style="{StaticResource YtLabel}" Margin="0,10,0,3"/>
|
||||||
<TextBlock Text="Sends a real live chat message — it round-trips through the actual chat poll and renders on your chat overlay."
|
<TextBlock Text="Sends a real live chat message — it round-trips through the actual chat poll and renders on your chat overlay."
|
||||||
Foreground="#a0a0b0" FontSize="11" TextWrapping="Wrap" Margin="0,0,0,4"/>
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" TextWrapping="Wrap" Margin="0,0,0,4"/>
|
||||||
<TextBox Style="{StaticResource YtTextBox}" Margin="0,0,0,6"
|
<TextBox Style="{StaticResource YtTextBox}" Margin="0,0,0,6"
|
||||||
Text="{Binding TestSession.SendMessageText, UpdateSourceTrigger=PropertyChanged}"/>
|
Text="{Binding TestSession.SendMessageText, UpdateSourceTrigger=PropertyChanged}"/>
|
||||||
<Button Style="{StaticResource YtButton}" Content="Send Message"
|
<Button Style="{StaticResource YtButton}" Content="Send Message"
|
||||||
@@ -828,7 +852,7 @@
|
|||||||
|
|
||||||
<TextBlock Text="SIMULATED EVENTS" Style="{StaticResource YtLabel}" Margin="0,14,0,3"/>
|
<TextBlock Text="SIMULATED EVENTS" Style="{StaticResource YtLabel}" Margin="0,14,0,3"/>
|
||||||
<TextBlock Text="Fired into your chat overlay locally — YouTube's insert API only creates text, so these never reach YouTube."
|
<TextBlock Text="Fired into your chat overlay locally — YouTube's insert API only creates text, so these never reach YouTube."
|
||||||
Foreground="#a0a0b0" FontSize="11" TextWrapping="Wrap" Margin="0,0,0,4"/>
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" TextWrapping="Wrap" Margin="0,0,0,4"/>
|
||||||
<StackPanel Orientation="Horizontal" Margin="0,0,0,4">
|
<StackPanel Orientation="Horizontal" Margin="0,0,0,4">
|
||||||
<Button Style="{StaticResource YtButtonSecondary}" Content="Subscriber" Padding="10,4" FontSize="11"
|
<Button Style="{StaticResource YtButtonSecondary}" Content="Subscriber" Padding="10,4" FontSize="11"
|
||||||
Margin="0,0,6,0" Command="{Binding TestSession.SimulateSubscriberCommand}"/>
|
Margin="0,0,6,0" Command="{Binding TestSession.SimulateSubscriberCommand}"/>
|
||||||
@@ -839,7 +863,7 @@
|
|||||||
HorizontalAlignment="Left" Command="{Binding TestSession.SimulateSuperChatCommand}"/>
|
HorizontalAlignment="Left" Command="{Binding TestSession.SimulateSuperChatCommand}"/>
|
||||||
|
|
||||||
<TextBlock Text="{Binding TestSession.LastEventText}"
|
<TextBlock Text="{Binding TestSession.LastEventText}"
|
||||||
Foreground="#22c55e" FontSize="11" TextWrapping="Wrap" Margin="0,10,0,0"
|
Foreground="{StaticResource Brush.Positive}" FontSize="11" TextWrapping="Wrap" Margin="0,10,0,0"
|
||||||
Visibility="{Binding TestSession.LastEventText, Converter={StaticResource NotNullToVis}}"/>
|
Visibility="{Binding TestSession.LastEventText, Converter={StaticResource NotNullToVis}}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
@@ -848,13 +872,13 @@
|
|||||||
Command="{Binding TestSession.EndTestCommand}"
|
Command="{Binding TestSession.EndTestCommand}"
|
||||||
Visibility="{Binding TestSession.IsTestSession, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding TestSession.IsTestSession, Converter={StaticResource BoolToVis}}"/>
|
||||||
<TextBlock Text="Test broadcasts are private — nobody is notified, and it runs through the exact same pipeline as a real live."
|
<TextBlock Text="Test broadcasts are private — nobody is notified, and it runs through the exact same pipeline as a real live."
|
||||||
Foreground="#666677" FontSize="11" TextWrapping="Wrap" Margin="0,6,0,0"/>
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" TextWrapping="Wrap" Margin="0,6,0,0"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
<!-- The stacked white tabs -->
|
<!-- The stacked white tabs -->
|
||||||
<StackPanel Orientation="Vertical" HorizontalAlignment="Right" VerticalAlignment="Stretch">
|
<StackPanel Orientation="Vertical" HorizontalAlignment="Right" VerticalAlignment="Stretch">
|
||||||
<Border Width="30" VerticalAlignment="Center" Background="#ff5451"
|
<Border Width="30" VerticalAlignment="Center" Background="{StaticResource Brush.Youtube}"
|
||||||
CornerRadius="4,0,0,4" Padding="0,10" Cursor="Hand" Margin="0,4,0,0"
|
CornerRadius="4,0,0,4" Padding="0,10" Cursor="Hand" Margin="0,4,0,0"
|
||||||
ToolTip="Broadcast text fields">
|
ToolTip="Broadcast text fields">
|
||||||
<Border.InputBindings>
|
<Border.InputBindings>
|
||||||
@@ -864,7 +888,7 @@
|
|||||||
<StackPanel HorizontalAlignment="Center">
|
<StackPanel HorizontalAlignment="Center">
|
||||||
<Border Width="18" Height="13" CornerRadius="3" Background="White" HorizontalAlignment="Center" Margin="0,0,0,6">
|
<Border Width="18" Height="13" CornerRadius="3" Background="White" HorizontalAlignment="Center" Margin="0,0,0,6">
|
||||||
<Border.LayoutTransform><RotateTransform Angle="90"/></Border.LayoutTransform>
|
<Border.LayoutTransform><RotateTransform Angle="90"/></Border.LayoutTransform>
|
||||||
<Path Data="M0,0 L6,3.5 L0,7 Z" Fill="#ff0000" Width="6" Height="7"
|
<Path Data="M0,0 L6,3.5 L0,7 Z" Fill="{StaticResource Brush.Primary}" Width="6" Height="7"
|
||||||
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||||
</Border>
|
</Border>
|
||||||
<TextBlock Text="Stream Info" Foreground="White" FontWeight="Bold" FontSize="15"
|
<TextBlock Text="Stream Info" Foreground="White" FontWeight="Bold" FontSize="15"
|
||||||
@@ -875,7 +899,7 @@
|
|||||||
</TextBlock>
|
</TextBlock>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
<Border Width="30" VerticalAlignment="Center" Background="#ff5451"
|
<Border Width="30" VerticalAlignment="Center" Background="{StaticResource Brush.Youtube}"
|
||||||
CornerRadius="4,0,0,4" Padding="0,10" Cursor="Hand" Margin="0,4,0,0"
|
CornerRadius="4,0,0,4" Padding="0,10" Cursor="Hand" Margin="0,4,0,0"
|
||||||
ToolTip="YouTube Partner Program progress">
|
ToolTip="YouTube Partner Program progress">
|
||||||
<Border.InputBindings>
|
<Border.InputBindings>
|
||||||
@@ -885,7 +909,7 @@
|
|||||||
<StackPanel HorizontalAlignment="Center">
|
<StackPanel HorizontalAlignment="Center">
|
||||||
<Border Width="18" Height="13" CornerRadius="3" Background="White" HorizontalAlignment="Center" Margin="0,0,0,6">
|
<Border Width="18" Height="13" CornerRadius="3" Background="White" HorizontalAlignment="Center" Margin="0,0,0,6">
|
||||||
<Border.LayoutTransform><RotateTransform Angle="90"/></Border.LayoutTransform>
|
<Border.LayoutTransform><RotateTransform Angle="90"/></Border.LayoutTransform>
|
||||||
<Path Data="M0,0 L6,3.5 L0,7 Z" Fill="#ff0000" Width="6" Height="7"
|
<Path Data="M0,0 L6,3.5 L0,7 Z" Fill="{StaticResource Brush.Primary}" Width="6" Height="7"
|
||||||
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||||
</Border>
|
</Border>
|
||||||
<TextBlock Text="YPP" Foreground="White" FontWeight="Bold" FontSize="15"
|
<TextBlock Text="YPP" Foreground="White" FontWeight="Bold" FontSize="15"
|
||||||
@@ -896,7 +920,7 @@
|
|||||||
</TextBlock>
|
</TextBlock>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
<Border Width="30" VerticalAlignment="Center" Background="#3b82f6"
|
<Border Width="30" VerticalAlignment="Center" Background="{StaticResource Brush.Tertiary}"
|
||||||
CornerRadius="4,0,0,4" Padding="0,10" Cursor="Hand" Margin="0,4,0,0"
|
CornerRadius="4,0,0,4" Padding="0,10" Cursor="Hand" Margin="0,4,0,0"
|
||||||
ToolTip="Add or manage your social handles">
|
ToolTip="Add or manage your social handles">
|
||||||
<Border.InputBindings>
|
<Border.InputBindings>
|
||||||
@@ -904,10 +928,10 @@
|
|||||||
</Border.InputBindings>
|
</Border.InputBindings>
|
||||||
<StackPanel HorizontalAlignment="Center">
|
<StackPanel HorizontalAlignment="Center">
|
||||||
<Path Data="M4,4 m-2,0 a2,2 0 1 0 4,0 a2,2 0 1 0 -4,0 M16,8 m-2,0 a2,2 0 1 0 4,0 a2,2 0 1 0 -4,0 M4,14 m-2,0 a2,2 0 1 0 4,0 a2,2 0 1 0 -4,0 M5.8,5.2 L14.2,7.2 M5.8,12.8 L14.2,8.8"
|
<Path Data="M4,4 m-2,0 a2,2 0 1 0 4,0 a2,2 0 1 0 -4,0 M16,8 m-2,0 a2,2 0 1 0 4,0 a2,2 0 1 0 -4,0 M4,14 m-2,0 a2,2 0 1 0 4,0 a2,2 0 1 0 -4,0 M5.8,5.2 L14.2,7.2 M5.8,12.8 L14.2,8.8"
|
||||||
Stroke="#0b1326" StrokeThickness="1.5" Width="18" Height="18" Stretch="Uniform"
|
Stroke="{StaticResource Brush.Background}" StrokeThickness="1.5" Width="18" Height="18" Stretch="Uniform"
|
||||||
HorizontalAlignment="Center" Margin="0,0,0,6">
|
HorizontalAlignment="Center" Margin="0,0,0,6">
|
||||||
<Path.LayoutTransform><RotateTransform Angle="90"/></Path.LayoutTransform></Path>
|
<Path.LayoutTransform><RotateTransform Angle="90"/></Path.LayoutTransform></Path>
|
||||||
<TextBlock Text="Socials" Foreground="#0b1326" FontWeight="Bold" FontSize="15"
|
<TextBlock Text="Socials" Foreground="{StaticResource Brush.Background}" FontWeight="Bold" FontSize="15"
|
||||||
HorizontalAlignment="Center">
|
HorizontalAlignment="Center">
|
||||||
<TextBlock.LayoutTransform>
|
<TextBlock.LayoutTransform>
|
||||||
<RotateTransform Angle="90"/>
|
<RotateTransform Angle="90"/>
|
||||||
@@ -915,7 +939,7 @@
|
|||||||
</TextBlock>
|
</TextBlock>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
<Border Width="30" VerticalAlignment="Center" Background="#ff8c3a"
|
<Border Width="30" VerticalAlignment="Center" Background="{StaticResource Brush.Attention}"
|
||||||
CornerRadius="4,0,0,4" Padding="0,10" Cursor="Hand" Margin="0,4,0,0"
|
CornerRadius="4,0,0,4" Padding="0,10" Cursor="Hand" Margin="0,4,0,0"
|
||||||
ToolTip="Test stream — mock chat input and simulated events">
|
ToolTip="Test stream — mock chat input and simulated events">
|
||||||
<Border.InputBindings>
|
<Border.InputBindings>
|
||||||
@@ -924,10 +948,10 @@
|
|||||||
</Border.InputBindings>
|
</Border.InputBindings>
|
||||||
<StackPanel HorizontalAlignment="Center">
|
<StackPanel HorizontalAlignment="Center">
|
||||||
<Path Data="M8,2 H16 M9,2 V8 L4,18 H20 L15,8 V2 M7,14 H17"
|
<Path Data="M8,2 H16 M9,2 V8 L4,18 H20 L15,8 V2 M7,14 H17"
|
||||||
Stroke="#0b1326" StrokeThickness="1.5" Width="18" Height="18" Stretch="Uniform"
|
Stroke="{StaticResource Brush.Background}" StrokeThickness="1.5" Width="18" Height="18" Stretch="Uniform"
|
||||||
HorizontalAlignment="Center" Margin="0,0,0,6">
|
HorizontalAlignment="Center" Margin="0,0,0,6">
|
||||||
<Path.LayoutTransform><RotateTransform Angle="90"/></Path.LayoutTransform></Path>
|
<Path.LayoutTransform><RotateTransform Angle="90"/></Path.LayoutTransform></Path>
|
||||||
<TextBlock Text="TEST" Foreground="#0b1326" FontWeight="Bold" FontSize="15"
|
<TextBlock Text="TEST" Foreground="{StaticResource Brush.Background}" FontWeight="Bold" FontSize="15"
|
||||||
HorizontalAlignment="Center">
|
HorizontalAlignment="Center">
|
||||||
<TextBlock.LayoutTransform>
|
<TextBlock.LayoutTransform>
|
||||||
<RotateTransform Angle="90"/>
|
<RotateTransform Angle="90"/>
|
||||||
@@ -947,7 +971,7 @@
|
|||||||
<!-- Line 1: Socials + TRAX -->
|
<!-- Line 1: Socials + TRAX -->
|
||||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,0,0,4">
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,0,0,4">
|
||||||
<!-- TRAX meter -->
|
<!-- TRAX meter -->
|
||||||
<Border Background="#D9000000" CornerRadius="6" Padding="12,8">
|
<Border Background="{StaticResource Brush.ScrimDarkStrong}" CornerRadius="6" Padding="12,8">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<Button Style="{StaticResource YtButtonSecondary}" Padding="8,2"
|
<Button Style="{StaticResource YtButtonSecondary}" Padding="8,2"
|
||||||
FontSize="11" VerticalAlignment="Center" Margin="0,0,8,0"
|
FontSize="11" VerticalAlignment="Center" Margin="0,0,8,0"
|
||||||
@@ -961,34 +985,34 @@
|
|||||||
<TextBlock Text="TRAX"/>
|
<TextBlock Text="TRAX"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
<TextBlock Text="Desktop Audio" Foreground="#a0a0b0" FontSize="11"
|
<TextBlock Text="Desktop Audio" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11"
|
||||||
FontWeight="SemiBold" VerticalAlignment="Center" Margin="0,0,8,0"
|
FontWeight="SemiBold" VerticalAlignment="Center" Margin="0,0,8,0"
|
||||||
ToolTip="Desktop/game audio via WASAPI loopback (automatic); TRAX music rides the same channel"/>
|
ToolTip="Desktop/game audio via WASAPI loopback (automatic); TRAX music rides the same channel"/>
|
||||||
<Border Width="288" Height="14" CornerRadius="7" Background="#3a3b52" Margin="0,0,8,0"
|
<Border Width="288" Height="14" CornerRadius="7" Background="{StaticResource Brush.SurfaceContainerHighest}" Margin="0,0,8,0"
|
||||||
ClipToBounds="True" VerticalAlignment="Center">
|
ClipToBounds="True" VerticalAlignment="Center">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Rectangle Width="57" Fill="#4a4520" HorizontalAlignment="Left" Margin="173,0,0,0"
|
<Rectangle Width="57" Fill="{StaticResource Brush.SecondaryContainer}" HorizontalAlignment="Left" Margin="173,0,0,0"
|
||||||
VerticalAlignment="Stretch"/>
|
VerticalAlignment="Stretch"/>
|
||||||
<Rectangle Width="58" Fill="#4a2222" HorizontalAlignment="Left" Margin="230,0,0,0"
|
<Rectangle Width="58" Fill="{StaticResource Brush.ErrorContainer}" HorizontalAlignment="Left" Margin="230,0,0,0"
|
||||||
VerticalAlignment="Stretch"/>
|
VerticalAlignment="Stretch"/>
|
||||||
<Border HorizontalAlignment="Left" Width="{Binding GameMeterFillWidth}"
|
<Border HorizontalAlignment="Left" Width="{Binding GameMeterFillWidth}"
|
||||||
Background="{Binding GameMeterBrush}" Opacity="0.75"/>
|
Background="{Binding GameMeterBrush}" Opacity="0.75"/>
|
||||||
<Rectangle Width="1" Height="10" Fill="#26000000" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="36,0,0,0"/>
|
<Rectangle Width="1" Height="10" Fill="{StaticResource Brush.ScrimDark}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="36,0,0,0"/>
|
||||||
<Rectangle Width="1" Height="10" Fill="#26000000" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="72,0,0,0"/>
|
<Rectangle Width="1" Height="10" Fill="{StaticResource Brush.ScrimDark}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="72,0,0,0"/>
|
||||||
<Rectangle Width="1" Height="10" Fill="#26000000" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="108,0,0,0"/>
|
<Rectangle Width="1" Height="10" Fill="{StaticResource Brush.ScrimDark}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="108,0,0,0"/>
|
||||||
<Rectangle Width="1" Height="10" Fill="#26000000" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="144,0,0,0"/>
|
<Rectangle Width="1" Height="10" Fill="{StaticResource Brush.ScrimDark}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="144,0,0,0"/>
|
||||||
<Rectangle Width="1" Height="10" Fill="#26000000" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="180,0,0,0"/>
|
<Rectangle Width="1" Height="10" Fill="{StaticResource Brush.ScrimDark}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="180,0,0,0"/>
|
||||||
<Rectangle Width="1" Height="10" Fill="#26000000" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="216,0,0,0"/>
|
<Rectangle Width="1" Height="10" Fill="{StaticResource Brush.ScrimDark}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="216,0,0,0"/>
|
||||||
<Rectangle Width="1" Height="10" Fill="#26000000" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="252,0,0,0"/>
|
<Rectangle Width="1" Height="10" Fill="{StaticResource Brush.ScrimDark}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="252,0,0,0"/>
|
||||||
<Rectangle Width="2" Fill="#00000080" HorizontalAlignment="Left" Margin="173,0,0,0"
|
<Rectangle Width="2" Fill="{StaticResource Brush.ScrimDarkStrong}" HorizontalAlignment="Left" Margin="173,0,0,0"
|
||||||
VerticalAlignment="Stretch"/>
|
VerticalAlignment="Stretch"/>
|
||||||
<Rectangle Width="2" Fill="#00000080" HorizontalAlignment="Left" Margin="230,0,0,0"
|
<Rectangle Width="2" Fill="{StaticResource Brush.ScrimDarkStrong}" HorizontalAlignment="Left" Margin="230,0,0,0"
|
||||||
VerticalAlignment="Stretch"/>
|
VerticalAlignment="Stretch"/>
|
||||||
<!-- TRAX error: a terse message that scrolls across the bar
|
<!-- TRAX error: a terse message that scrolls across the bar
|
||||||
(marquee) while the TRAX dot is red. -->
|
(marquee) while the TRAX dot is red. -->
|
||||||
<Canvas x:Name="TraxErrorMarquee" ClipToBounds="True"
|
<Canvas x:Name="TraxErrorMarquee" ClipToBounds="True"
|
||||||
Visibility="{Binding TraxError, Converter={StaticResource NotNullToVis}}">
|
Visibility="{Binding TraxError, Converter={StaticResource NotNullToVis}}">
|
||||||
<TextBlock x:Name="TraxErrorText" Text="{Binding TraxError}" Foreground="#ff6b81" FontSize="10"
|
<TextBlock x:Name="TraxErrorText" Text="{Binding TraxError}" Foreground="{StaticResource Brush.Error}" FontSize="10"
|
||||||
FontWeight="SemiBold" Canvas.Top="0">
|
FontWeight="SemiBold" Canvas.Top="0">
|
||||||
<TextBlock.RenderTransform>
|
<TextBlock.RenderTransform>
|
||||||
<TranslateTransform x:Name="TraxErrorScroll"/>
|
<TranslateTransform x:Name="TraxErrorScroll"/>
|
||||||
@@ -1011,13 +1035,13 @@
|
|||||||
<Grid Width="16" Height="16" Cursor="Hand" Margin="0,0,8,0"
|
<Grid Width="16" Height="16" Cursor="Hand" Margin="0,0,8,0"
|
||||||
VerticalAlignment="Center" ToolTip="{Binding GameMuteText}"
|
VerticalAlignment="Center" ToolTip="{Binding GameMuteText}"
|
||||||
MouseLeftButtonUp="GameSpeaker_MouseLeftButtonUp">
|
MouseLeftButtonUp="GameSpeaker_MouseLeftButtonUp">
|
||||||
<Path Fill="#d0d0d0" Stretch="Uniform"
|
<Path Fill="{StaticResource Brush.OnSurface}" Stretch="Uniform"
|
||||||
Data="M3,9v6h4l5,5V4L7,9H3zM16.5,12c0,-1.77 -1,-3.29 -2.5,-4.03v8.05c1.5,-0.73 2.5,-2.25 2.5,-4.02zM14,3.23v2.06c2.89,0.86 5,3.54 5,6.71s-2.11,5.85 -5,6.71v2.06c4.01,-0.91 7,-4.49 7,-8.77s-2.99,-7.86 -7,-8.77z"
|
Data="M3,9v6h4l5,5V4L7,9H3zM16.5,12c0,-1.77 -1,-3.29 -2.5,-4.03v8.05c1.5,-0.73 2.5,-2.25 2.5,-4.02zM14,3.23v2.06c2.89,0.86 5,3.54 5,6.71s-2.11,5.85 -5,6.71v2.06c4.01,-0.91 7,-4.49 7,-8.77s-2.99,-7.86 -7,-8.77z"
|
||||||
Visibility="{Binding GameMuted, Converter={StaticResource InverseBoolToVis}}"/>
|
Visibility="{Binding GameMuted, Converter={StaticResource InverseBoolToVis}}"/>
|
||||||
<Path Fill="#ef4444" Stretch="Uniform"
|
<Path Fill="{StaticResource Brush.Error}" Stretch="Uniform"
|
||||||
Data="M3,9v6h4l5,5V4L7,9H3zM16.5,12c0,-1.77 -1,-3.29 -2.5,-4.03v8.05c1.5,-0.73 2.5,-2.25 2.5,-4.02zM14,3.23v2.06c2.89,0.86 5,3.54 5,6.71s-2.11,5.85 -5,6.71v2.06c4.01,-0.91 7,-4.49 7,-8.77s-2.99,-7.86 -7,-8.77z"
|
Data="M3,9v6h4l5,5V4L7,9H3zM16.5,12c0,-1.77 -1,-3.29 -2.5,-4.03v8.05c1.5,-0.73 2.5,-2.25 2.5,-4.02zM14,3.23v2.06c2.89,0.86 5,3.54 5,6.71s-2.11,5.85 -5,6.71v2.06c4.01,-0.91 7,-4.49 7,-8.77s-2.99,-7.86 -7,-8.77z"
|
||||||
Visibility="{Binding GameMuted, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding GameMuted, Converter={StaticResource BoolToVis}}"/>
|
||||||
<Path Stroke="#ef4444" StrokeThickness="2.5" StrokeEndLineCap="Round" Stretch="Uniform"
|
<Path Stroke="{StaticResource Brush.Error}" StrokeThickness="2.5" StrokeEndLineCap="Round" Stretch="Uniform"
|
||||||
Data="M21,3 L3,21"
|
Data="M21,3 L3,21"
|
||||||
Visibility="{Binding GameMuted, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding GameMuted, Converter={StaticResource BoolToVis}}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -1041,42 +1065,42 @@
|
|||||||
<TextBlock Text="MIC"/>
|
<TextBlock Text="MIC"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
<Border Width="288" Height="14" CornerRadius="7" Background="#3a3b52" Margin="0,0,8,0"
|
<Border Width="288" Height="14" CornerRadius="7" Background="{StaticResource Brush.SurfaceContainerHighest}" Margin="0,0,8,0"
|
||||||
ClipToBounds="True" VerticalAlignment="Center">
|
ClipToBounds="True" VerticalAlignment="Center">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Rectangle Width="57" Fill="#4a4520" HorizontalAlignment="Left" Margin="173,0,0,0"
|
<Rectangle Width="57" Fill="{StaticResource Brush.SecondaryContainer}" HorizontalAlignment="Left" Margin="173,0,0,0"
|
||||||
VerticalAlignment="Stretch"/>
|
VerticalAlignment="Stretch"/>
|
||||||
<Rectangle Width="58" Fill="#4a2222" HorizontalAlignment="Left" Margin="230,0,0,0"
|
<Rectangle Width="58" Fill="{StaticResource Brush.ErrorContainer}" HorizontalAlignment="Left" Margin="230,0,0,0"
|
||||||
VerticalAlignment="Stretch"/>
|
VerticalAlignment="Stretch"/>
|
||||||
<TextBlock Text="{Binding MicSourceName}" Foreground="#b8b8c8" FontSize="10"
|
<TextBlock Text="{Binding MicSourceName}" Foreground="{StaticResource Brush.OnSurface}" FontSize="10"
|
||||||
VerticalAlignment="Center" Margin="6,0,0,0" MaxWidth="270"
|
VerticalAlignment="Center" Margin="6,0,0,0" MaxWidth="270"
|
||||||
TextTrimming="CharacterEllipsis"
|
TextTrimming="CharacterEllipsis"
|
||||||
Visibility="{Binding MicSourceName, Converter={StaticResource NotNullToVis}}"/>
|
Visibility="{Binding MicSourceName, Converter={StaticResource NotNullToVis}}"/>
|
||||||
<Border HorizontalAlignment="Left" Width="{Binding MeterFillWidth}"
|
<Border HorizontalAlignment="Left" Width="{Binding MeterFillWidth}"
|
||||||
Background="{Binding MeterBrush}" Opacity="0.75"/>
|
Background="{Binding MeterBrush}" Opacity="0.75"/>
|
||||||
<Rectangle Width="1" Height="10" Fill="#26000000" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="36,0,0,0"/>
|
<Rectangle Width="1" Height="10" Fill="{StaticResource Brush.ScrimDark}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="36,0,0,0"/>
|
||||||
<Rectangle Width="1" Height="10" Fill="#26000000" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="72,0,0,0"/>
|
<Rectangle Width="1" Height="10" Fill="{StaticResource Brush.ScrimDark}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="72,0,0,0"/>
|
||||||
<Rectangle Width="1" Height="10" Fill="#26000000" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="108,0,0,0"/>
|
<Rectangle Width="1" Height="10" Fill="{StaticResource Brush.ScrimDark}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="108,0,0,0"/>
|
||||||
<Rectangle Width="1" Height="10" Fill="#26000000" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="144,0,0,0"/>
|
<Rectangle Width="1" Height="10" Fill="{StaticResource Brush.ScrimDark}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="144,0,0,0"/>
|
||||||
<Rectangle Width="1" Height="10" Fill="#26000000" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="180,0,0,0"/>
|
<Rectangle Width="1" Height="10" Fill="{StaticResource Brush.ScrimDark}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="180,0,0,0"/>
|
||||||
<Rectangle Width="1" Height="10" Fill="#26000000" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="216,0,0,0"/>
|
<Rectangle Width="1" Height="10" Fill="{StaticResource Brush.ScrimDark}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="216,0,0,0"/>
|
||||||
<Rectangle Width="1" Height="10" Fill="#26000000" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="252,0,0,0"/>
|
<Rectangle Width="1" Height="10" Fill="{StaticResource Brush.ScrimDark}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="252,0,0,0"/>
|
||||||
<Rectangle Width="2" Fill="#00000080" HorizontalAlignment="Left" Margin="173,0,0,0"
|
<Rectangle Width="2" Fill="{StaticResource Brush.ScrimDarkStrong}" HorizontalAlignment="Left" Margin="173,0,0,0"
|
||||||
VerticalAlignment="Stretch"/>
|
VerticalAlignment="Stretch"/>
|
||||||
<Rectangle Width="2" Fill="#00000080" HorizontalAlignment="Left" Margin="230,0,0,0"
|
<Rectangle Width="2" Fill="{StaticResource Brush.ScrimDarkStrong}" HorizontalAlignment="Left" Margin="230,0,0,0"
|
||||||
VerticalAlignment="Stretch"/>
|
VerticalAlignment="Stretch"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
<Grid Width="16" Height="16" Cursor="Hand" Margin="0,0,8,0"
|
<Grid Width="16" Height="16" Cursor="Hand" Margin="0,0,8,0"
|
||||||
VerticalAlignment="Center" ToolTip="{Binding MicMuteText}"
|
VerticalAlignment="Center" ToolTip="{Binding MicMuteText}"
|
||||||
MouseLeftButtonUp="MicSpeaker_MouseLeftButtonUp">
|
MouseLeftButtonUp="MicSpeaker_MouseLeftButtonUp">
|
||||||
<Path Fill="#d0d0d0" Stretch="Uniform"
|
<Path Fill="{StaticResource Brush.OnSurface}" Stretch="Uniform"
|
||||||
Data="M12,14c1.66,0 3,-1.34 3,-3V5c0,-1.66 -1.34,-3 -3,-3S9,3.34 9,5v6C9,12.66 10.34,14 12,14zM17.3,11c0,3 -2.54,5.1 -5.3,5.1S6.7,14 6.7,11H5c0,3.41 2.72,6.23 6,6.72V21h2v-3.28c3.28,-0.49 6,-3.31 6,-6.72H17.3z"
|
Data="M12,14c1.66,0 3,-1.34 3,-3V5c0,-1.66 -1.34,-3 -3,-3S9,3.34 9,5v6C9,12.66 10.34,14 12,14zM17.3,11c0,3 -2.54,5.1 -5.3,5.1S6.7,14 6.7,11H5c0,3.41 2.72,6.23 6,6.72V21h2v-3.28c3.28,-0.49 6,-3.31 6,-6.72H17.3z"
|
||||||
Visibility="{Binding MicMuted, Converter={StaticResource InverseBoolToVis}}"/>
|
Visibility="{Binding MicMuted, Converter={StaticResource InverseBoolToVis}}"/>
|
||||||
<Path Fill="#ef4444" Stretch="Uniform"
|
<Path Fill="{StaticResource Brush.Error}" Stretch="Uniform"
|
||||||
Data="M12,14c1.66,0 3,-1.34 3,-3V5c0,-1.66 -1.34,-3 -3,-3S9,3.34 9,5v6C9,12.66 10.34,14 12,14zM17.3,11c0,3 -2.54,5.1 -5.3,5.1S6.7,14 6.7,11H5c0,3.41 2.72,6.23 6,6.72V21h2v-3.28c3.28,-0.49 6,-3.31 6,-6.72H17.3z"
|
Data="M12,14c1.66,0 3,-1.34 3,-3V5c0,-1.66 -1.34,-3 -3,-3S9,3.34 9,5v6C9,12.66 10.34,14 12,14zM17.3,11c0,3 -2.54,5.1 -5.3,5.1S6.7,14 6.7,11H5c0,3.41 2.72,6.23 6,6.72V21h2v-3.28c3.28,-0.49 6,-3.31 6,-6.72H17.3z"
|
||||||
Visibility="{Binding MicMuted, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding MicMuted, Converter={StaticResource BoolToVis}}"/>
|
||||||
<Path Stroke="#ef4444" StrokeThickness="2.5" StrokeEndLineCap="Round" Stretch="Uniform"
|
<Path Stroke="{StaticResource Brush.Error}" StrokeThickness="2.5" StrokeEndLineCap="Round" Stretch="Uniform"
|
||||||
Data="M21,3 L3,21"
|
Data="M21,3 L3,21"
|
||||||
Visibility="{Binding MicMuted, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding MicMuted, Converter={StaticResource BoolToVis}}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -1087,7 +1111,7 @@
|
|||||||
LostMouseCapture="VolumeSlider_LostMouseCapture"/>
|
LostMouseCapture="VolumeSlider_LostMouseCapture"/>
|
||||||
<StackPanel Orientation="Horizontal" Margin="10,0,0,0" VerticalAlignment="Center"
|
<StackPanel Orientation="Horizontal" Margin="10,0,0,0" VerticalAlignment="Center"
|
||||||
ToolTip="Audio sync (−500..+500 ms). Positive: delays the audio when it runs ahead of the video. Negative: advances it (drops the first |N| ms of the recording) when it runs behind. Calibrate with a clap: is the clap late in the video, move negative; early, move positive.">
|
ToolTip="Audio sync (−500..+500 ms). Positive: delays the audio when it runs ahead of the video. Negative: advances it (drops the first |N| ms of the recording) when it runs behind. Calibrate with a clap: is the clap late in the video, move negative; early, move positive.">
|
||||||
<TextBlock Text="AUDIO SYNC" FontSize="9" Foreground="#9898aa"
|
<TextBlock Text="AUDIO SYNC" FontSize="9" Foreground="{StaticResource Brush.OnSurfaceVariant}"
|
||||||
VerticalAlignment="Center" Margin="0,0,5,0"/>
|
VerticalAlignment="Center" Margin="0,0,5,0"/>
|
||||||
<Slider Width="70" Minimum="-500" Maximum="500"
|
<Slider Width="70" Minimum="-500" Maximum="500"
|
||||||
Value="{Binding AudioSyncOffsetMs, Mode=TwoWay}"
|
Value="{Binding AudioSyncOffsetMs, Mode=TwoWay}"
|
||||||
|
|||||||
@@ -365,6 +365,34 @@ public partial class PreviewPane : UserControl
|
|||||||
sb.Children.Add(anim);
|
sb.Children.Add(anim);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>The border-colour submenu is BUILT from the palette on open: the list of
|
||||||
|
/// offered colours lives once, in <see cref="BorderColorPalette"/> (TASK 63's rule —
|
||||||
|
/// a picker never carries its own copy). The generated rows inherit this menu's
|
||||||
|
/// DataContext (the <see cref="SceneElement"/>), so the click handler is unchanged.</summary>
|
||||||
|
private void WebcamBorderColorMenu_SubmenuOpened(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
if (sender is not MenuItem { DataContext: SceneElement element } menu) return;
|
||||||
|
|
||||||
|
menu.Items.Clear();
|
||||||
|
var none = new MenuItem { Header = "None", Tag = string.Empty, IsCheckable = true,
|
||||||
|
IsChecked = string.IsNullOrEmpty(element.BorderColor) };
|
||||||
|
none.Click += WebcamMenu_SetBorderColor;
|
||||||
|
menu.Items.Add(none);
|
||||||
|
|
||||||
|
foreach (var colour in BorderColorPalette.All)
|
||||||
|
{
|
||||||
|
var row = new MenuItem
|
||||||
|
{
|
||||||
|
Header = colour.ToString(),
|
||||||
|
Tag = colour.Hex,
|
||||||
|
IsCheckable = true,
|
||||||
|
IsChecked = string.Equals(element.BorderColor, colour.Hex, StringComparison.OrdinalIgnoreCase),
|
||||||
|
};
|
||||||
|
row.Click += WebcamMenu_SetBorderColor;
|
||||||
|
menu.Items.Add(row);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void WebcamMenu_SetBorderColor(object sender, RoutedEventArgs e)
|
private void WebcamMenu_SetBorderColor(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
if (sender is MenuItem { DataContext: SceneElement element, Tag: string color })
|
if (sender is MenuItem { DataContext: SceneElement element, Tag: string color })
|
||||||
@@ -562,6 +590,12 @@ public partial class PreviewPane : UserControl
|
|||||||
|
|
||||||
private void Preview_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
|
private void Preview_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
|
||||||
{
|
{
|
||||||
|
// Ctrl + right-click opens the element / backdrop context menu — sources and windows can
|
||||||
|
// be changed at ANY time, live or not (creator ruling 2026-10-30). Plain right-click stays
|
||||||
|
// with the zoom box, which is why the menu needed its own chord.
|
||||||
|
// Returning without Handled lets WPF's ContextMenuService open the menu under the cursor.
|
||||||
|
if ((Keyboard.Modifiers & ModifierKeys.Control) != 0) return;
|
||||||
|
|
||||||
var vm = DataContext as MainViewModel;
|
var vm = DataContext as MainViewModel;
|
||||||
if (vm == null) return;
|
if (vm == null) return;
|
||||||
var grid = (Grid)sender;
|
var grid = (Grid)sender;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<UserControl x:Class="ytLive.Controls.SceneThumbnailStrip"
|
<UserControl x:Class="ytLive.Controls.SceneThumbnailStrip"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<Border Background="#0d1117" CornerRadius="4" Padding="4">
|
<Border Background="{StaticResource Brush.SurfaceContainerLowest}" CornerRadius="4" Padding="4">
|
||||||
<ItemsControl ItemsSource="{Binding Scenes}" HorizontalAlignment="Center" VerticalAlignment="Center">
|
<ItemsControl ItemsSource="{Binding Scenes}" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
@@ -16,26 +16,30 @@
|
|||||||
MouseLeftButtonDown="Thumbnail_MouseLeftButtonDown">
|
MouseLeftButtonDown="Thumbnail_MouseLeftButtonDown">
|
||||||
<Border.Style>
|
<Border.Style>
|
||||||
<Style TargetType="Border">
|
<Style TargetType="Border">
|
||||||
<Setter Property="BorderBrush" Value="#333344"/>
|
<Setter Property="BorderBrush" Value="{StaticResource Brush.Outline}"/>
|
||||||
<Style.Triggers>
|
<Style.Triggers>
|
||||||
|
<!-- Active scene = orange (creator ruling 2026-10-30): it marks
|
||||||
|
the stage you are working on, not a selection — blue is
|
||||||
|
the interactive accent and read as "selected". Live
|
||||||
|
stays red. -->
|
||||||
<DataTrigger Binding="{Binding IsStaged}" Value="True">
|
<DataTrigger Binding="{Binding IsStaged}" Value="True">
|
||||||
<Setter Property="BorderBrush" Value="#ff8c3a"/>
|
<Setter Property="BorderBrush" Value="{StaticResource Brush.Attention}"/>
|
||||||
</DataTrigger>
|
</DataTrigger>
|
||||||
<DataTrigger Binding="{Binding IsLive}" Value="True">
|
<DataTrigger Binding="{Binding IsLive}" Value="True">
|
||||||
<Setter Property="BorderBrush" Value="#ff8c3a"/>
|
<Setter Property="BorderBrush" Value="{StaticResource Brush.Primary}"/>
|
||||||
</DataTrigger>
|
</DataTrigger>
|
||||||
</Style.Triggers>
|
</Style.Triggers>
|
||||||
</Style>
|
</Style>
|
||||||
</Border.Style>
|
</Border.Style>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Border CornerRadius="3" Background="#0a0a1a" ClipToBounds="True">
|
<Border CornerRadius="3" Background="{StaticResource Brush.SurfaceContainerLowest}" ClipToBounds="True">
|
||||||
<Image Source="{Binding Snapshot}"
|
<Image Source="{Binding Snapshot}"
|
||||||
Stretch="UniformToFill"
|
Stretch="UniformToFill"
|
||||||
RenderOptions.BitmapScalingMode="LowQuality"/>
|
RenderOptions.BitmapScalingMode="LowQuality"/>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
<Border HorizontalAlignment="Left" VerticalAlignment="Top" Margin="6" Padding="8,3"
|
<Border HorizontalAlignment="Left" VerticalAlignment="Top" Margin="6" Padding="8,3"
|
||||||
CornerRadius="3" Background="#ff8c3a">
|
CornerRadius="3" Background="{StaticResource Brush.Primary}">
|
||||||
<Border.Style>
|
<Border.Style>
|
||||||
<Style TargetType="Border">
|
<Style TargetType="Border">
|
||||||
<Setter Property="Visibility" Value="Collapsed"/>
|
<Setter Property="Visibility" Value="Collapsed"/>
|
||||||
@@ -47,7 +51,7 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</Border.Style>
|
</Border.Style>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<Ellipse Width="8" Height="8" Fill="#ff5451" VerticalAlignment="Center" Margin="0,0,5,0">
|
<Ellipse Width="8" Height="8" Fill="{StaticResource Brush.Primary}" VerticalAlignment="Center" Margin="0,0,5,0">
|
||||||
<Ellipse.Triggers>
|
<Ellipse.Triggers>
|
||||||
<EventTrigger RoutedEvent="FrameworkElement.Loaded">
|
<EventTrigger RoutedEvent="FrameworkElement.Loaded">
|
||||||
<BeginStoryboard>
|
<BeginStoryboard>
|
||||||
@@ -67,13 +71,13 @@
|
|||||||
<TextBlock Text="{Binding HotkeyLabel, Mode=OneWay}" Foreground="White" FontSize="16" FontWeight="SemiBold"/>
|
<TextBlock Text="{Binding HotkeyLabel, Mode=OneWay}" Foreground="White" FontSize="16" FontWeight="SemiBold"/>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
<TextBlock Text="{Binding Name, Mode=OneWay}" Foreground="White" FontSize="16" FontWeight="SemiBold"
|
<!-- The scene name wears the same pill as the hotkey chip, so both
|
||||||
HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="6"
|
labels stay readable over any thumbnail. -->
|
||||||
TextTrimming="CharacterEllipsis">
|
<Border HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="6"
|
||||||
<TextBlock.Effect>
|
Padding="8,2" CornerRadius="10" Background="#000000">
|
||||||
<DropShadowEffect BlurRadius="4" ShadowDepth="0" Opacity="0.9"/>
|
<TextBlock Text="{Binding Name, Mode=OneWay}" Foreground="White" FontSize="15" FontWeight="SemiBold"
|
||||||
</TextBlock.Effect>
|
TextTrimming="CharacterEllipsis"/>
|
||||||
</TextBlock>
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|||||||
+42
-37
@@ -22,10 +22,13 @@
|
|||||||
<ContentPresenter/>
|
<ContentPresenter/>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Button.Template>
|
</Button.Template>
|
||||||
|
<!-- Wordmark: "LlamaCas" + "ty" in YouTube red (creator ruling 2026-10-30 — never
|
||||||
|
re-colour it). The Run elements MUST stay adjacent: whitespace between inline
|
||||||
|
Runs renders as a space and splits the name into "LlamaCas ty". -->
|
||||||
<TextBlock FontSize="22" FontWeight="Bold" VerticalAlignment="Center">
|
<TextBlock FontSize="22" FontWeight="Bold" VerticalAlignment="Center">
|
||||||
<Run Text="LlamaCas" Foreground="#e0e0e0"/><Run Text="ty" Foreground="#e94560"/><Run
|
<Run Text="LlamaCas" Foreground="{StaticResource Brush.OnSurface}"/><Run Text="ty" Foreground="{StaticResource Brush.Youtube}"/><Run
|
||||||
x:Name="BuildIdStamp" Text="{x:Static helpers:BuildStamp.Label}" FontSize="9"
|
x:Name="BuildIdStamp" Text="{x:Static helpers:BuildStamp.Label}" FontSize="9"
|
||||||
BaselineAlignment="Superscript" Foreground="#8888aa"
|
BaselineAlignment="Superscript" Foreground="{StaticResource Brush.OnSurfaceVariant}"
|
||||||
ToolTipService.ToolTip="{x:Static helpers:BuildStamp.Label}"/><Run Text=" " FontSize="4"/>
|
ToolTipService.ToolTip="{x:Static helpers:BuildStamp.Label}"/><Run Text=" " FontSize="4"/>
|
||||||
</TextBlock>
|
</TextBlock>
|
||||||
</Button>
|
</Button>
|
||||||
@@ -44,8 +47,27 @@
|
|||||||
</ContextMenu>
|
</ContextMenu>
|
||||||
</Button.ContextMenu>
|
</Button.ContextMenu>
|
||||||
<Path Data="M19.43,12.98c0.04,-0.32 0.07,-0.65 0.07,-0.98c0,-0.33 -0.03,-0.66 -0.07,-0.98l2.11,-1.65c0.19,-0.15 0.24,-0.42 0.12,-0.64l-2,-3.46c-0.12,-0.22 -0.38,-0.31 -0.61,-0.22l-2.49,1c-0.52,-0.4 -1.08,-0.73 -1.69,-0.98l-0.38,-2.65C14.46,2.18 14.25,2 14,2h-4c-0.25,0 -0.46,0.18 -0.49,0.42l-0.38,2.65c-0.61,0.25 -1.17,0.59 -1.69,0.98l-2.49,-1c-0.23,-0.09 -0.49,0 -0.61,0.22l-2,3.46c-0.13,0.22 -0.07,0.49 0.12,0.64l2.11,1.65c-0.04,0.32 -0.07,0.65 -0.07,0.98c0,0.33 0.03,0.66 0.07,0.98l-2.11,1.65c-0.19,0.15 -0.24,0.42 -0.12,0.64l2,3.46c0.12,0.22 0.38,0.31 0.61,0.22l2.49,-1c0.52,0.4 1.08,0.73 1.69,0.98l0.38,2.65c0.03,0.24 0.24,0.42 0.49,0.42h4c0.25,0 0.46,-0.18 0.49,-0.42l0.38,-2.65c0.61,-0.25 1.17,-0.59 1.69,-0.98l2.49,1c0.23,0.09 0.49,0 0.61,-0.22l2,-3.46c0.12,-0.22 0.07,-0.49 -0.12,-0.64L19.43,12.98zM12,15.5c-1.93,0 -3.5,-1.57 -3.5,-3.5c0,-1.93 1.57,-3.5 3.5,-3.5c1.93,0 3.5,1.57 3.5,3.5C15.5,13.93 13.93,15.5 12,15.5z"
|
<Path Data="M19.43,12.98c0.04,-0.32 0.07,-0.65 0.07,-0.98c0,-0.33 -0.03,-0.66 -0.07,-0.98l2.11,-1.65c0.19,-0.15 0.24,-0.42 0.12,-0.64l-2,-3.46c-0.12,-0.22 -0.38,-0.31 -0.61,-0.22l-2.49,1c-0.52,-0.4 -1.08,-0.73 -1.69,-0.98l-0.38,-2.65C14.46,2.18 14.25,2 14,2h-4c-0.25,0 -0.46,0.18 -0.49,0.42l-0.38,2.65c-0.61,0.25 -1.17,0.59 -1.69,0.98l-2.49,-1c-0.23,-0.09 -0.49,0 -0.61,0.22l-2,3.46c-0.13,0.22 -0.07,0.49 0.12,0.64l2.11,1.65c-0.04,0.32 -0.07,0.65 -0.07,0.98c0,0.33 0.03,0.66 0.07,0.98l-2.11,1.65c-0.19,0.15 -0.24,0.42 -0.12,0.64l2,3.46c0.12,0.22 0.38,0.31 0.61,0.22l2.49,-1c0.52,0.4 1.08,0.73 1.69,0.98l0.38,2.65c0.03,0.24 0.24,0.42 0.49,0.42h4c0.25,0 0.46,-0.18 0.49,-0.42l0.38,-2.65c0.61,-0.25 1.17,-0.59 1.69,-0.98l2.49,1c0.23,0.09 0.49,0 0.61,-0.22l2,-3.46c0.12,-0.22 0.07,-0.49 -0.12,-0.64L19.43,12.98zM12,15.5c-1.93,0 -3.5,-1.57 -3.5,-3.5c0,-1.93 1.57,-3.5 3.5,-3.5c1.93,0 3.5,1.57 3.5,3.5C15.5,13.93 13.93,15.5 12,15.5z"
|
||||||
Fill="#a0a0b0" Width="18" Height="18" Stretch="Uniform"/>
|
Fill="{StaticResource Brush.Attention}" Width="18" Height="18" Stretch="Uniform"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
<!-- EDIT: explicit toggle. Neutral = off (chat), blue = on (layers/properties). The
|
||||||
|
trigger used to set the SAME colour as the resting state, so the button never
|
||||||
|
looked pressed. -->
|
||||||
|
<ToggleButton IsChecked="{Binding EditingActive, Mode=TwoWay}" Content="EDIT"
|
||||||
|
Cursor="Hand" Height="32" Padding="14,0" Margin="18,0,0,2" VerticalAlignment="Center"
|
||||||
|
FontWeight="Bold" FontSize="12" Foreground="{StaticResource Brush.OnAccent}" BorderThickness="0">
|
||||||
|
<ToggleButton.Template>
|
||||||
|
<ControlTemplate TargetType="ToggleButton">
|
||||||
|
<Border x:Name="EditBody" Background="{StaticResource Brush.SurfaceContainerHigh}" CornerRadius="4" Padding="{TemplateBinding Padding}">
|
||||||
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||||
|
</Border>
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<Trigger Property="IsChecked" Value="True">
|
||||||
|
<Setter TargetName="EditBody" Property="Background" Value="{StaticResource Brush.Tertiary}"/>
|
||||||
|
</Trigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</ToggleButton.Template>
|
||||||
|
</ToggleButton>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!-- Session surface (top bar redesign): the bar is ONE surface rendered by
|
<!-- Session surface (top bar redesign): the bar is ONE surface rendered by
|
||||||
@@ -54,52 +76,34 @@
|
|||||||
reality line + End so nothing mid-session can be re-armed. -->
|
reality line + End so nothing mid-session can be re-armed. -->
|
||||||
<StackPanel Grid.Column="1" Orientation="Horizontal"
|
<StackPanel Grid.Column="1" Orientation="Horizontal"
|
||||||
HorizontalAlignment="Center" VerticalAlignment="Center">
|
HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||||
<!-- EDIT: explicit toggle. Blue = off (chat), orange = on (layers/properties). -->
|
|
||||||
<ToggleButton IsChecked="{Binding EditingActive, Mode=TwoWay}" Content="EDIT"
|
|
||||||
Cursor="Hand" Height="32" Padding="14,0" Margin="0,0,24,0" VerticalAlignment="Center"
|
|
||||||
FontWeight="Bold" FontSize="12" Foreground="#0b1326" BorderThickness="0">
|
|
||||||
<ToggleButton.Template>
|
|
||||||
<ControlTemplate TargetType="ToggleButton">
|
|
||||||
<Border x:Name="EditBody" Background="#38bdf8" CornerRadius="4" Padding="{TemplateBinding Padding}">
|
|
||||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
||||||
</Border>
|
|
||||||
<ControlTemplate.Triggers>
|
|
||||||
<Trigger Property="IsChecked" Value="True">
|
|
||||||
<Setter TargetName="EditBody" Property="Background" Value="#ff8c3a"/>
|
|
||||||
</Trigger>
|
|
||||||
</ControlTemplate.Triggers>
|
|
||||||
</ControlTemplate>
|
|
||||||
</ToggleButton.Template>
|
|
||||||
</ToggleButton>
|
|
||||||
<!-- IDLE: the mode switch + the action(s) of the armed world. The three
|
<!-- IDLE: the mode switch + the action(s) of the armed world. The three
|
||||||
controls share one height (build 77 feedback) so they read as one
|
controls share one height (build 77 feedback) so they read as one
|
||||||
family — segments host, Start/Go Live, and Test all sit at 32. -->
|
family — segments host, Start/Go Live, and Test all sit at 32. -->
|
||||||
<StackPanel Orientation="Horizontal"
|
<StackPanel Orientation="Horizontal"
|
||||||
Visibility="{Binding ShowIdleWorld, Converter={StaticResource BoolToVis}}">
|
Visibility="{Binding ShowIdleWorld, Converter={StaticResource BoolToVis}}">
|
||||||
<Border Background="#0f1622" CornerRadius="4" Padding="2" Height="32" VerticalAlignment="Center">
|
<Border Background="{StaticResource Brush.SurfaceContainerLowest}" CornerRadius="4" Padding="2" Height="32" VerticalAlignment="Center">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<ToggleButton Style="{StaticResource SegmentToggle}"
|
<ToggleButton Style="{StaticResource RecordPillToggle}"
|
||||||
IsChecked="{Binding RecordPillOn}">
|
IsChecked="{Binding RecordPillOn}">
|
||||||
<TextBlock Text="REC" Style="{StaticResource SegmentLabel}"/>
|
<!-- the label follows the pill's own foreground: muted when armed-off,
|
||||||
|
dark on red when armed (SegmentLabel pins its own colour) -->
|
||||||
|
<TextBlock Text="REC" FontSize="12" FontWeight="Bold" VerticalAlignment="Center"
|
||||||
|
Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ToggleButton}}"/>
|
||||||
</ToggleButton>
|
</ToggleButton>
|
||||||
<ToggleButton Style="{StaticResource SegmentToggle}"
|
<ToggleButton Style="{StaticResource RecordPillToggle}"
|
||||||
IsChecked="{Binding OnAirPillOn}">
|
IsChecked="{Binding OnAirPillOn}">
|
||||||
<TextBlock Text="ON-AIR" Style="{StaticResource SegmentLabel}"/>
|
<TextBlock Text="ON-AIR" FontSize="12" FontWeight="Bold" VerticalAlignment="Center"
|
||||||
|
Foreground="{Binding Foreground, RelativeSource={RelativeSource AncestorType=ToggleButton}}"/>
|
||||||
</ToggleButton>
|
</ToggleButton>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
<!-- Go face names the world: "Start Recording" vs "Go Live".
|
<!-- Go face names the world: "Start Recording" vs "Go Live".
|
||||||
(Signed-out ON-AIR Start routes to the sign-in — StartSession.) -->
|
(Signed-out ON-AIR Start routes to the sign-in — StartSession.) -->
|
||||||
<Button Content="{Binding PrimaryStartButtonLabel}" Style="{StaticResource YtButton}"
|
<Button Content="{Binding PrimaryStartButtonLabel}" Style="{StaticResource YtButton}"
|
||||||
Height="32" Margin="10,0,0,0" Command="{Binding StartStreamCommand}"
|
Height="32" Margin="10,0,0,0" Command="{Binding PrimaryStartCommand}"
|
||||||
Visibility="{Binding ShowPrimaryStartButton, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding ShowPrimaryStartButton, Converter={StaticResource BoolToVis}}"/>
|
||||||
<!-- Test is a child of Stream — a dry-run of the livestream, so it
|
<!-- No separate TEST button (creator ruling 2026-10-30): EDIT decides whether
|
||||||
exists only inside the Stream world (stream armed + signed in). -->
|
the ON-AIR start is the real livestream or the test one. -->
|
||||||
<Button Content="Test" Style="{StaticResource YtButtonSecondary}" Padding="12,4" FontSize="11"
|
|
||||||
Height="32" Margin="8,0,0,0" VerticalAlignment="Center"
|
|
||||||
Command="{Binding StartTestCommand}"
|
|
||||||
ToolTip="Run a private test broadcast to check your chat overlay."
|
|
||||||
Visibility="{Binding ShowTestButton, Converter={StaticResource BoolToVis}}"/>
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!-- RUNNING: one reality line (dot + word + elapsed) and the stop -->
|
<!-- RUNNING: one reality line (dot + word + elapsed) and the stop -->
|
||||||
@@ -112,7 +116,8 @@
|
|||||||
<TextBlock Text="{Binding LiveElapsedText}" Foreground="White" FontSize="14"
|
<TextBlock Text="{Binding LiveElapsedText}" Foreground="White" FontSize="14"
|
||||||
FontFamily="Consolas" VerticalAlignment="Center" Margin="8,0,0,0"/>
|
FontFamily="Consolas" VerticalAlignment="Center" Margin="8,0,0,0"/>
|
||||||
<Button Content="{Binding EndButtonText}" Style="{StaticResource YtButton}"
|
<Button Content="{Binding EndButtonText}" Style="{StaticResource YtButton}"
|
||||||
Background="#333" Margin="14,0,0,0" Command="{Binding EndStreamCommand}"/>
|
Background="{StaticResource Brush.Primary}" Margin="14,0,0,0"
|
||||||
|
Command="{Binding EndStreamCommand}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
@@ -135,11 +140,11 @@
|
|||||||
<MenuItem Header="Logout" Command="{Binding LogoutCommand}"/>
|
<MenuItem Header="Logout" Command="{Binding LogoutCommand}"/>
|
||||||
</ContextMenu>
|
</ContextMenu>
|
||||||
</Button.ContextMenu>
|
</Button.ContextMenu>
|
||||||
<Border Width="40" Height="40" CornerRadius="20" Background="#16213e"
|
<Border Width="40" Height="40" CornerRadius="20" Background="{StaticResource Brush.SurfaceContainer}"
|
||||||
ClipToBounds="True" BorderBrush="#3a4a66" BorderThickness="1">
|
ClipToBounds="True" BorderBrush="{StaticResource Brush.Outline}" BorderThickness="1">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Image x:Name="AvatarImage" Stretch="UniformToFill"/>
|
<Image x:Name="AvatarImage" Stretch="UniformToFill"/>
|
||||||
<TextBlock x:Name="AvatarInitial" Foreground="#e0e0e0" FontSize="20"
|
<TextBlock x:Name="AvatarInitial" Foreground="{StaticResource Brush.OnSurface}" FontSize="20"
|
||||||
FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"
|
FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||||
Visibility="Collapsed"/>
|
Visibility="Collapsed"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -1,10 +1,16 @@
|
|||||||
# DESIGN.md — LlamaCasty visual design tokens (redesign exploration)
|
# DESIGN.md — LlamaCasty visual design standard
|
||||||
|
|
||||||
> Source: Google Stitch export, 2026-10-26, from the proposed edit-screen mockup. Colors and type
|
> **Status: the standard** (decided 2026-10-30). Token values here are normative;
|
||||||
> only — no layout decisions are captured here. This is a design reference for the UX redesign
|
> `Themes/Tokens.xaml` is the implementation, and no other file may hardcode a hex once the sweep
|
||||||
> in progress; it is not yet wired into the app's theme (`Themes/Controls.xaml`).
|
> lands. Two Google Stitch exports feed it (2026-10-26 edit screen, 2026-10-29 audio dock).
|
||||||
|
>
|
||||||
|
> **The exports' layouts and control drawings are exploratory, not spec.** The dock, the four
|
||||||
|
> bays, the page-nav sidebar and the skeuomorphic faders are *not* adopted — the product's design
|
||||||
|
> principle is a surface so obvious that a right-brained person can use it without a manual, and
|
||||||
|
> hardware cosplay is the opposite of that. Only the colour, type, spacing, radius and elevation
|
||||||
|
> system is adopted.
|
||||||
|
|
||||||
## Color
|
## Colour
|
||||||
|
|
||||||
### Surfaces (dark navy scale, darkest to lightest)
|
### Surfaces (dark navy scale, darkest to lightest)
|
||||||
|
|
||||||
@@ -18,7 +24,11 @@
|
|||||||
| `surface-container-highest` | `#2d3449` | Selected/active row background |
|
| `surface-container-highest` | `#2d3449` | Selected/active row background |
|
||||||
| `surface-bright` | `#31394d` | Lightest surface, rare use (strong hover) |
|
| `surface-bright` | `#31394d` | Lightest surface, rare use (strong hover) |
|
||||||
| `outline` | `#334155` | Borders, dividers |
|
| `outline` | `#334155` | Borders, dividers |
|
||||||
| `outline-variant` | `#1e293b` | Subtle dividers, inactive VU meter segments |
|
| `outline-variant` | `#1e293b` | Subtle dividers, inactive meter segments |
|
||||||
|
| `scrim-soft` | `#22FFFFFF` | Hover/press wash over a surface (13% white) |
|
||||||
|
| `scrim-strong` | `#26FFFFFF` | Stronger wash — selected icon, dimmed image (15% white) |
|
||||||
|
| `scrim-dark` | `#26000000` | Dim strip / shading over the preview (15% black) |
|
||||||
|
| `scrim-dark-strong` | `#00000080` | Heavy overlay — modal veil, poster frame (50% black) |
|
||||||
|
|
||||||
### Text
|
### Text
|
||||||
|
|
||||||
@@ -26,42 +36,157 @@
|
|||||||
|---|---|---|
|
|---|---|---|
|
||||||
| `on-surface` | `#dae2fd` | Primary text |
|
| `on-surface` | `#dae2fd` | Primary text |
|
||||||
| `on-surface-variant` | `#94a3b8` | Secondary / label text |
|
| `on-surface-variant` | `#94a3b8` | Secondary / label text |
|
||||||
|
| `on-surface-disabled` | `#5b6478` | Disabled text and icons |
|
||||||
|
|
||||||
### Accent — one role each, never mixed
|
### Accent — one role each, never mixed
|
||||||
|
|
||||||
| Token | Hex | Role |
|
| Token | Hex | Role |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| `tertiary` (electric blue) | `#38bdf8` | The one interactive accent: selection, focus, sliders, primary buttons, transform handles |
|
| `tertiary` (electric blue) | `#38bdf8` | **The** interactive accent: selection, focus, sliders, primary buttons, transform handles |
|
||||||
| `primary` (red) | `#ff5451` | **Reserved for on-air/recording state only** — LIVE badge, program border, End/Go Live |
|
| `on-tertiary` | `#0b1326` | Dark ink, for large blue **surfaces** only |
|
||||||
|
| `on-accent` | `#ffffff` | Text/icon on any saturated accent fill — the blue EDIT button, the armed REC/ON-AIR pills. One rule: a coloured fill carries white ink |
|
||||||
|
| `primary` (red) | `#ff5451` | **On-air / recording only** — LIVE badge, program border, End/Go Live |
|
||||||
| `primary-container` | `#b91a24` | Red pressed/hover state |
|
| `primary-container` | `#b91a24` | Red pressed/hover state |
|
||||||
| `secondary` (amber) | `#ffb95f` | Game audio channel, Super Chat highlight |
|
| `secondary` (amber) | `#ffb95f` | Game audio channel, Super Chat highlight |
|
||||||
| `secondary-container` | `#ee9800` | Amber pressed/hover state |
|
| `secondary-container` | `#ee9800` | Amber pressed/hover state |
|
||||||
| `error` | `#ef4444` | Error states only (distinct from the on-air red) |
|
| `attention` (orange) | `#ff8c3a` | Dropped frames, the live-screen indicator, blinking warnings |
|
||||||
|
| `positive` | `#22c55e` | **Status only** — connected, applied, healthy. Never an accent, never a button fill |
|
||||||
|
| `error` | `#ef4444` | Error text and icons |
|
||||||
|
| `error-container` | `#93000a` | Error surface (health banner, toast) — keeps error visually distinct from on-air red |
|
||||||
|
| `on-error` | `#ffdad6` | Text on an error surface |
|
||||||
|
| `info-container` | `#3a3b52` | Neutral notice surface (info toast) |
|
||||||
|
| `success-container` | `#1d5c38` | Success notice surface (success toast) |
|
||||||
|
| `warning-container` | `#b8860b` | Warning surface — health banner, warning toast |
|
||||||
|
| `test-container` | `#9c6f1c` | Test-stream chrome: the gold top bar and glow |
|
||||||
|
| `youtube` | `#ff0000` | **YouTube-branded surfaces only** — Stream Info / YPP rails, the YouTube account row, and the wordmark's "ty" (creator ruling: never re-colour it) | — the Stream Info and YPP rails, the YouTube account row. Not for state: live stays `primary` |
|
||||||
|
|
||||||
**Rule carried from the critique sessions:** red must mean "live or recording" and nothing else.
|
**The rule:** red means "live or recording" and nothing else. Never a Send button, a delete action,
|
||||||
Don't reuse it for a Send button, a delete action, or any other control — that was the defect in
|
a brand flourish, or a general accent — that was the defect in the first Stitch draft.
|
||||||
the first Stitch draft of the live screen.
|
|
||||||
|
**`#e94560` is retired** as the app's general accent (it was in 15 files). Blue takes over every
|
||||||
|
interactive role; red keeps only live/record. The brand/wordmark *artwork* is unchanged — those
|
||||||
|
assets are the creator's art, not a theme value.
|
||||||
|
|
||||||
|
### Meter thresholds (both meters, all bays)
|
||||||
|
|
||||||
|
| Band | Range | Brush |
|
||||||
|
|---|---|---|
|
||||||
|
| Nominal | −∞ … −12 dB | `#38bdf8` |
|
||||||
|
| Caution | −12 … −3 dB | `#ffb95f` |
|
||||||
|
| Peak / clip | −3 … 0 dB+ | `#ff5451` |
|
||||||
|
|
||||||
|
Meters are **measured, never decorative** (see `docs/ai/output.md`): the ladder shows the live
|
||||||
|
level scaled by the current gain, not the gain setting.
|
||||||
|
|
||||||
## Typography
|
## Typography
|
||||||
|
|
||||||
| Token | Family | Use |
|
| Token | Family | Use |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| `sans` | Inter (400/500/600/700) | All UI text — labels, buttons, panel titles |
|
| `sans` | Inter (400/500/600/700) | All UI text — labels, buttons, panel titles |
|
||||||
| `mono` | JetBrains Mono (500/600) | All numeric/telemetry values — bitrate, FPS, dB, coordinates, timers. Keeps digits from shifting width as values change. |
|
| `mono` | JetBrains Mono (500/600) | Numeric/telemetry values — bitrate, FPS, dB, coordinates, timers. Tabular figures stop digits shifting width as values change |
|
||||||
|
|
||||||
Icons: Material Symbols Outlined.
|
Icons: Material Symbols Outlined (bundled, not fetched).
|
||||||
|
|
||||||
## Color roles (decided 2026-10-26)
|
### Scale
|
||||||
|
|
||||||
- **Red `#ff5451`:** YouTube references, on-air/GO LIVE, and record only.
|
| Token | Size / line | Weight | Tracking | Use |
|
||||||
- **Attention orange `#ff8c3a`:** dropped packets, the live screen indicator, and blinking warning lights.
|
|---|---|---|---|---|
|
||||||
- **Amber `#ffb95f`:** game audio and Super Chat only.
|
| `headline-lg` | 32 / 40 | 700 | −0.02em | Landing/empty-state titles only |
|
||||||
- **`error` `#ef4444`:** unchanged for now; it sits close to the on-air red and may need revisiting.
|
| `headline-md` | 24 / 32 | 600 | −0.015em | Dialog titles |
|
||||||
|
| `headline-sm` | 18 / 24 | 600 | −0.01em | Panel and section headers |
|
||||||
|
| `body-lg` | 15 / 22 | 400 | — | Default body, chat |
|
||||||
|
| `body-md` | 13 / 18 | 400 | — | Panel rows, form text |
|
||||||
|
| `body-sm` | 12 / 16 | 400 | — | Secondary text, hints |
|
||||||
|
| `label-lg` | 13 / 16 | 600 | 0.02em | `mono` — primary telemetry values |
|
||||||
|
| `label-md` | 11 / 14 | 500 | 0.04em | `mono` — labels, hotkey chips |
|
||||||
|
| `label-sm` | 10 / 12 | 500 | 0.05em | `mono` — dense telemetry only |
|
||||||
|
|
||||||
## Open questions for the next pass
|
**Floors and implementation notes**
|
||||||
|
|
||||||
- These tokens have not been reconciled against the app's current WPF theme
|
- **11px is the default label size; 10px is the absolute floor** and only for dense readouts that
|
||||||
(`Themes/Controls.xaml`). That comparison should happen once the redesign direction is locked,
|
sit beside a larger value. Nothing readable at 100% zoom may be smaller than 10px.
|
||||||
not before — do not retrofit the current theme to these values yet.
|
- **WPF has no letter-spacing.** Tracking values above are design intent, not a property; implement
|
||||||
- No elevation/shadow scale, corner-radius scale, or spacing scale has been captured yet. Add them
|
as-is (no tracking) rather than faking it with padded strings.
|
||||||
here as they're decided, rather than letting them live only in Stitch exports.
|
- Mono numerics use `Typography.NumeralAlignment="Tabular"` so widths stay stable.
|
||||||
|
|
||||||
|
## Spacing
|
||||||
|
|
||||||
|
| Token | px | Use |
|
||||||
|
|---|---|---|
|
||||||
|
| `space-xs` | 4 | Inside a chip, icon-to-text |
|
||||||
|
| `space-sm` | 8 | Between related controls |
|
||||||
|
| `space-md` | 12 | Default gap inside a panel |
|
||||||
|
| `space-lg` | 16 | Panel padding, section separation |
|
||||||
|
| `space-xl` | 24 | Dialog padding, major separation |
|
||||||
|
| `gutter` | 12 | Between page columns |
|
||||||
|
| `margin` | 16 | Window edge to content |
|
||||||
|
| `margin-docked` | 8 | Edge to content when a rail/drawer is docked |
|
||||||
|
|
||||||
|
## Shape
|
||||||
|
|
||||||
|
| Token | px | Use |
|
||||||
|
|---|---|---|
|
||||||
|
| `radius-sm` | 4 | Chips, badges, keycap tags |
|
||||||
|
| `radius-md` | 8 | Buttons, inputs, cards, scene tiles |
|
||||||
|
| `radius-lg` | 16 | Preview viewport, drawers, dialogs |
|
||||||
|
| `radius-full` | pill | Status chips (LIVE, EDIT), toggles |
|
||||||
|
|
||||||
|
Recessed controls (fader wells, inputs) use the same outer radius as their housing so the seams
|
||||||
|
line up — do not mix a 4px well inside an 8px card.
|
||||||
|
|
||||||
|
## Elevation
|
||||||
|
|
||||||
|
| Level | Use | Implementation |
|
||||||
|
|---|---|---|
|
||||||
|
| −1 recessed | Fader wells, input fields, table headers | inset top shadow + `surface-container-lowest` |
|
||||||
|
| 0 panel | The default chassis | `surface-container*` + **1px `outline` border**, no shadow |
|
||||||
|
| 1 raised | Scene tiles, floating chips, action buttons | subtle drop shadow, 0 1px 2px |
|
||||||
|
| 2 floating | Drawers, popups, dialogs | larger spread + 1px top highlight |
|
||||||
|
|
||||||
|
**Budget rule:** `DropShadowEffect` is software-rendered in WPF. Shadows on small controls only —
|
||||||
|
**never** on the preview viewport, the scene strip, or either wing. Depth on large surfaces comes
|
||||||
|
from the surface scale and the 1px border, not from effects.
|
||||||
|
|
||||||
|
## Interaction
|
||||||
|
|
||||||
|
- Focus ring: 1px `#38bdf8` outside a 1px gap — visible against every surface level.
|
||||||
|
- Hover: step one surface level up; active: step two. No colour change on hover except for
|
||||||
|
destructive actions.
|
||||||
|
- Motion: 150ms `CubicEase(EaseOut)` for drawers/popovers; 90ms for hover/press. No springs —
|
||||||
|
WPF has no spring easing and hand-rolled overshoot reads as jank at 60Hz.
|
||||||
|
- Every action produces a visible outcome. No dead ends, no silent failures.
|
||||||
|
|
||||||
|
## Not in this standard
|
||||||
|
|
||||||
|
- The audio dock, its four bays, per-bay faders, 24-segment ladders, transport controls, lip-sync
|
||||||
|
slider and master telemetry strip — **exploratory**. The controls they re-house already exist in
|
||||||
|
the app; whether any of them gets a dock is a separate product decision.
|
||||||
|
- The page-nav sidebar (Broadcast Studio / Audio Mixer / Scene Matrix / Telemetry / Hotkeys) — the
|
||||||
|
app is one surface with an EDIT toggle and drawers, not a page router.
|
||||||
|
- CPU / GPU / NVENC readouts — no telemetry exists, and none of it changes a live decision.
|
||||||
|
- Acrylic/backdrop blur — WPF has no sub-region backdrop blur; panels are solid.
|
||||||
|
- **On-stream output** (chat box, social bar, alerts, brand flash) is styled by its own renderers,
|
||||||
|
not by this theme. Do not apply UI tokens to the broadcast picture.
|
||||||
|
|
||||||
|
## Rejected from the 2026-10-29 export
|
||||||
|
|
||||||
|
The export is a Material-3 dump from a warm seed; four tokens came out tinted by that seed and are
|
||||||
|
rejected in favour of the values above.
|
||||||
|
|
||||||
|
| Export value | Token | Why rejected |
|
||||||
|
|---|---|---|
|
||||||
|
| `#4cd7f6` | `tertiary` | Neon cyan beside the amber reads "toy"; `#38bdf8` is calmer and already used in-app |
|
||||||
|
| `#ab8986` | `outline` | Warm pink borders from the seed — wrong for a navy chassis |
|
||||||
|
| `#5b403e` | `outline-variant` | Same seed artifact |
|
||||||
|
| `#e4beba` | `on-surface-variant` | Pink secondary text; slate `#94a3b8` is legible and neutral |
|
||||||
|
|
||||||
|
## Implementation status
|
||||||
|
|
||||||
|
- **`Themes/Tokens.xaml` exists and is merged first in `App.xaml`** (2026-10-30). Guard:
|
||||||
|
`ytLive.Tests/DesignTokensTests.cs` — it parses this document and fails if a documented token has
|
||||||
|
no brush, if a value disagrees, or if the retired `#e94560` returns as a token.
|
||||||
|
- **Still to sweep:** `Themes/Controls.xaml` and the dozens of hardcoded hexes in XAML/C# still use
|
||||||
|
the legacy palette. Surfaces convert one at a time; the end state is that every colour, radius and
|
||||||
|
spacing value resolves from `Tokens.xaml` and a guard fails on any raw `#hex` outside it.
|
||||||
|
- **Fonts ship with the app** (`Assets/Fonts/*.ttf`, OFL-1.1) — no installation, no network, no
|
||||||
|
dependence on what the machine happens to have. Notice and license text travel with them (`THIRD-PARTY-NOTICES.txt` items 13-14).
|
||||||
|
|||||||
+11
-11
@@ -1,10 +1,10 @@
|
|||||||
<Window x:Class="ytLive.GoLiveWindow"
|
<Window x:Class="ytLive.GoLiveWindow"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
Title="Start Stream" Height="480" Width="520"
|
Title="Start Stream" Height="480" Width="520"
|
||||||
Icon="/Assets/llamacasty-icon.png"
|
Icon="/Assets/llamacasty-icon.png"
|
||||||
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
|
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
|
||||||
ShowInTaskbar="False" Background="#1a1a2e">
|
ShowInTaskbar="False" Background="{StaticResource Brush.Background}">
|
||||||
|
|
||||||
<Window.Resources>
|
<Window.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
@@ -22,12 +22,12 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<TextBlock Grid.Row="0" Text="Start Stream" FontSize="18" FontWeight="Bold"
|
<TextBlock Grid.Row="0" Text="Start Stream" FontSize="18" FontWeight="Bold"
|
||||||
Foreground="#e0e0e0" Margin="0,0,0,16"/>
|
Foreground="{StaticResource Brush.OnSurface}" Margin="0,0,0,16"/>
|
||||||
|
|
||||||
<!-- ACCOUNT -->
|
<!-- ACCOUNT -->
|
||||||
<StackPanel Grid.Row="1" Margin="0,0,0,16">
|
<StackPanel Grid.Row="1" Margin="0,0,0,16">
|
||||||
<TextBlock Text="ACCOUNT" FontSize="12" FontWeight="SemiBold"
|
<TextBlock Text="ACCOUNT" FontSize="12" FontWeight="SemiBold"
|
||||||
Foreground="#a0a0b0" Margin="0,0,0,8"/>
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" Margin="0,0,0,8"/>
|
||||||
|
|
||||||
<!-- signed in -->
|
<!-- signed in -->
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
@@ -41,11 +41,11 @@
|
|||||||
</Style.Triggers>
|
</Style.Triggers>
|
||||||
</Style>
|
</Style>
|
||||||
</StackPanel.Style>
|
</StackPanel.Style>
|
||||||
<Border Width="34" Height="34" CornerRadius="17" Background="#16213e" ClipToBounds="True"
|
<Border Width="34" Height="34" CornerRadius="17" Background="{StaticResource Brush.SurfaceContainer}" ClipToBounds="True"
|
||||||
VerticalAlignment="Center" Margin="0,0,10,0">
|
VerticalAlignment="Center" Margin="0,0,10,0">
|
||||||
<Image Source="{Binding AccountAvatarUrl}" Stretch="UniformToFill"/>
|
<Image Source="{Binding AccountAvatarUrl}" Stretch="UniformToFill"/>
|
||||||
</Border>
|
</Border>
|
||||||
<TextBlock Text="{Binding AccountDisplayName}" Foreground="#e0e0e0" FontSize="14"
|
<TextBlock Text="{Binding AccountDisplayName}" Foreground="{StaticResource Brush.OnSurface}" FontSize="14"
|
||||||
VerticalAlignment="Center" Margin="0,0,12,0"/>
|
VerticalAlignment="Center" Margin="0,0,12,0"/>
|
||||||
<Button Content="Change Account" Command="{Binding SignInCommand}"
|
<Button Content="Change Account" Command="{Binding SignInCommand}"
|
||||||
Style="{StaticResource YtButtonSecondary}" VerticalAlignment="Center"/>
|
Style="{StaticResource YtButtonSecondary}" VerticalAlignment="Center"/>
|
||||||
@@ -65,12 +65,12 @@
|
|||||||
</StackPanel.Style>
|
</StackPanel.Style>
|
||||||
<Button Content="Sign in to YouTube" Command="{Binding SignInCommand}"
|
<Button Content="Sign in to YouTube" Command="{Binding SignInCommand}"
|
||||||
Style="{StaticResource YtButtonSecondary}" Margin="0,0,10,0"/>
|
Style="{StaticResource YtButtonSecondary}" Margin="0,0,10,0"/>
|
||||||
<TextBlock Text="Going live requires a YouTube account." Foreground="#a0a0b0" FontSize="12"
|
<TextBlock Text="Going live requires a YouTube account." Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="12"
|
||||||
VerticalAlignment="Center"/>
|
VerticalAlignment="Center"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<TextBlock Text="Signing in… open the browser to authorize, then come back here."
|
<TextBlock Text="Signing in… open the browser to authorize, then come back here."
|
||||||
Foreground="#e94560" FontSize="12" Margin="0,8,0,0">
|
Foreground="{StaticResource Brush.Error}" FontSize="12" Margin="0,8,0,0">
|
||||||
<TextBlock.Style>
|
<TextBlock.Style>
|
||||||
<Style TargetType="TextBlock">
|
<Style TargetType="TextBlock">
|
||||||
<Setter Property="Visibility" Value="Collapsed"/>
|
<Setter Property="Visibility" Value="Collapsed"/>
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
<!-- STREAM METADATA -->
|
<!-- STREAM METADATA -->
|
||||||
<StackPanel Grid.Row="2">
|
<StackPanel Grid.Row="2">
|
||||||
<TextBlock Text="STREAM DETAILS" FontSize="12" FontWeight="SemiBold"
|
<TextBlock Text="STREAM DETAILS" FontSize="12" FontWeight="SemiBold"
|
||||||
Foreground="#a0a0b0" Margin="0,0,0,8"/>
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" Margin="0,0,0,8"/>
|
||||||
|
|
||||||
<TextBlock Text="Title" Style="{StaticResource YtLabel}"/>
|
<TextBlock Text="Title" Style="{StaticResource YtLabel}"/>
|
||||||
<TextBox Style="{StaticResource YtTextBox}" Margin="0,0,0,12"
|
<TextBox Style="{StaticResource YtTextBox}" Margin="0,0,0,12"
|
||||||
@@ -100,10 +100,10 @@
|
|||||||
|
|
||||||
<TextBlock Text="Visibility" Style="{StaticResource YtLabel}"/>
|
<TextBlock Text="Visibility" Style="{StaticResource YtLabel}"/>
|
||||||
<StackPanel Orientation="Horizontal" Margin="0,0,0,12">
|
<StackPanel Orientation="Horizontal" Margin="0,0,0,12">
|
||||||
<TextBlock Text="Private" Foreground="#e0e0e0" FontSize="14"
|
<TextBlock Text="Private" Foreground="{StaticResource Brush.OnSurface}" FontSize="14"
|
||||||
VerticalAlignment="Center"/>
|
VerticalAlignment="Center"/>
|
||||||
<TextBlock Text="Streams always start Private — change it on YouTube after going live."
|
<TextBlock Text="Streams always start Private — change it on YouTube after going live."
|
||||||
Foreground="#a0a0b0" FontSize="12" TextWrapping="Wrap"
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="12" TextWrapping="Wrap"
|
||||||
Margin="10,0,0,0" VerticalAlignment="Center"/>
|
Margin="10,0,0,0" VerticalAlignment="Center"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|||||||
+29
-432
@@ -1,440 +1,37 @@
|
|||||||
# HANDOFF — 2026-10-28 (selected-layer stacking and App Settings UX; suite green)
|
# HANDOFF — 2026-10-30 (design conversion complete; spacing is a layout pass, not a sweep)
|
||||||
|
|
||||||
## Current state
|
## State
|
||||||
- **Branch `main`, tracking `origin/main`; the selected-layer fix and test refresh were pushed as
|
|
||||||
`769c616`.** The five
|
|
||||||
feature commits since the previous `7ae30d4` checkpoint are `90cd039` (fade starts from outgoing picture), `f67a263`
|
|
||||||
(transition picker), `b86b6bb` (Wipe), `841c905` (brand logo layer), and `7da2872` (preview and
|
|
||||||
program transitions); they are included in the pushed history.
|
|
||||||
- **Four UI-redesign commits already on `origin/main` were missing from the older handoff:**
|
|
||||||
`24aca7d` moved the scene strip above the preview and removed the default CRT/on-air image seeds;
|
|
||||||
`3239808` added the Scene Layers header/count and layer icons plus scene-card names, hotkeys, and
|
|
||||||
PROGRAM badge; `a8814b4` added the explicit EDIT toggle and fixed the scene-card/left-column
|
|
||||||
sizing; `7ae30d4` moved readouts/resolution into the top-left cell, added the Socials rail drawer,
|
|
||||||
and restored webcam/chat border controls and vertical 1080p30. `b7ab169` added [`DESIGN.md`](DESIGN.md)
|
|
||||||
with exploratory color/type tokens; it explicitly is not a layout spec or a theme implementation.
|
|
||||||
`ai.md` and `Controls/index.md` now describe the landed surface. No new task was added to the queue.
|
|
||||||
- **Shipped in those commits:** type/duration picker persisted with the layout; CPU left-to-right
|
|
||||||
Wipe; one locked Brand logo image layer per scene; preview transition animation in every mode;
|
|
||||||
program transitions while recording or streaming. The 7da2872 commit omitted a memory update;
|
|
||||||
`TASKS.md` and `ai.md` now reflect it.
|
|
||||||
- **Current work unit:** when a draggable element is selected from the layer list, `PreviewPane`
|
|
||||||
temporarily raises its item container and gives it priority in the custom preview hit test. On
|
|
||||||
deselection, normal preview stacking returns; the scene collection order and saved/program z-order
|
|
||||||
never change. `SelectedLayerPreviewHitTestingTests` verifies the overlapping Brand logo/webcam
|
|
||||||
visual hit, custom hit priority, and deselection restore.
|
|
||||||
- **The six prior suite failures are resolved in their tests, not by reverting current behavior:**
|
|
||||||
LayerReorder now accounts for the permanent Brand logo after Background; BorderColorPicker validates
|
|
||||||
every palette picker and scopes its rendered-widget lookup to the visible webcam control; both
|
|
||||||
thumbnail cases persist explicit tile assets instead of relying on removed default seed files;
|
|
||||||
SourceNaming only considers user-created Text overlays; ZoomBox locates its placeholder by type,
|
|
||||||
not a list index changed by Brand logo.
|
|
||||||
- **The App Settings UX update is now committed and pushed:** `Controls/OverlayHost.xaml` groups
|
|
||||||
settings into Recordings, Brand logo, Preview, and Scene transition sections with compact controls.
|
|
||||||
Right-clicking the gear opens App Settings directly; left-click still opens the existing menu.
|
|
||||||
The on-screen verification is still pending.
|
|
||||||
- **The three edits that were previously uncommitted are now included in that update:**
|
|
||||||
`Controls/OverlayHost.xaml` groups App Settings into Recordings, Brand logo, Preview, and Scene
|
|
||||||
transition sections with compact controls; `Controls/TopBar.xaml` wires right-click on the gear;
|
|
||||||
`Controls/TopBar.xaml.cs` opens App Settings directly on right-click while left-click keeps the
|
|
||||||
menu.
|
|
||||||
- **Worktree is clean after the push.**
|
|
||||||
- **Next:** verify the App Settings/gear changes, transitions, and Brand logo on-screen. The earlier
|
|
||||||
vertical-webcam hands-on check is also still
|
|
||||||
pending unless the creator confirms it was completed. Move's persistent-layer behavior and Cube
|
|
||||||
remain queued; distribution remains deferred until near v1.
|
|
||||||
- **Verification state:** `verify.sh` passed: clean build with 0 warnings, **444/444 tests passed**,
|
|
||||||
and scope check passed. The new selected-layer integration test also passes by itself.
|
|
||||||
- **Follow-up, not fixed here:** `ytLive.csproj`'s `GenerateBuildStamp` comment still describes a
|
|
||||||
commit-count-based `+1 per commit` counter, but the target now reads/writes local `BuildCounter.txt`
|
|
||||||
and increments it per build. `ai.md` records the code's current behavior; correct the stale source
|
|
||||||
comment in a separately scoped change. `ViewModels/MainViewModel.Socials.cs` also still calls the
|
|
||||||
Socials surface a modal dialog in its method comment; the committed UI is now a preview-rail drawer.
|
|
||||||
Correct that source comment separately if the file is next in scope. The new deterministic WPF
|
|
||||||
hit-test recipe is in `MyMistakes.md`; the final commit cites its Microsoft reference.
|
|
||||||
- **WPF references:** [`Panel.ZIndex`](https://learn.microsoft.com/en-us/dotnet/api/system.windows.controls.panel.zindex?view=windowsdesktop-10.0)
|
|
||||||
governs preview container order; [`PreviewMouseRightButtonDown`](https://learn.microsoft.com/en-us/dotnet/api/system.windows.uielement.previewmouserightbuttondown?view=windowsdesktop-10.0)
|
|
||||||
is used for the gear's direct settings action. The selected-layer fix also prioritizes the selected
|
|
||||||
element in `HitElementAt`, because the custom hit test does not consult WPF's visual z-order. The
|
|
||||||
deterministic test recipe and reference are recorded in `MyMistakes.md`.
|
|
||||||
|
|
||||||
---
|
- Branch `main`, worktree clean. **~20 commits, unpushed** (push at your checkpoint).
|
||||||
|
- **The design conversion is done**: `DESIGN.md` is the contract, `Themes/Tokens.xaml` implements
|
||||||
|
it, and every surface consumes it — UI chrome, all dialogs (typeface included), the VM's state
|
||||||
|
colours via `Helpers/ThemeBrush`, and the on-stream graphics via `Services/Compositor/OutputPalette`
|
||||||
|
(which mirrors the tokens and is checked against them, because the pump thread cannot read app
|
||||||
|
resources). Blue `#38bdf8` is the only interactive accent; red `#ff5451` is live/record;
|
||||||
|
`#e94560` is gone from the product.
|
||||||
|
- Four guards hold it: `DesignTokensTests` (doc ↔ brushes; converted files may not regress to a
|
||||||
|
literal), `ThemeResourceTests` (no dangling `StaticResource` — the class of crash that killed the
|
||||||
|
app on a slider), `OutputPaletteTests` (on-stream ↔ theme), `SocialsPreviewTests` (a real
|
||||||
|
MainWindow, real preview elements) and `DialogTypographyTests` (dialogs inherit Inter).
|
||||||
|
|
||||||
## Historical notes (retained reference; current checkout state is above)
|
## Next action
|
||||||
|
|
||||||
### At a glance (2026-10-26 docs session)
|
Nothing queued for the design. The **one** item deliberately not swept: the spacing scale. Margins
|
||||||
- **`ai.md` is being split into `docs/ai/*.md`** (user-approved: verbatim move, staged units, "ai.md
|
and paddings are per-side `Thickness`, not the single values `DESIGN.md` defines, so converting
|
||||||
only"). Three units landed as separate commits, **docs only, not pushed**:
|
them mechanically would change layout without a rationale — that is a layout pass (a designer's
|
||||||
`804b1d2` (frame pipeline: cadence/timing/budget/compositor/pump),
|
job), not a colour-style sweep. Radii are tokenised where a token was honest; component geometry
|
||||||
`096bf6d` (capture: backdrop/webcam/background effects/vertical tier),
|
(pill halves, 2.5px hairlines) stays literal on purpose.
|
||||||
`a4dfca6` (output: ffmpeg/encoder/recording/audio). Each move is byte-identical in the new file;
|
|
||||||
`ai.md` keeps a short stub with the load-bearing invariants + a link. `docs/ai/index.md` routes.
|
|
||||||
**`ai.md` is now 1,289 lines (~32k tokens), down from 2,702 (~64k)** — more than half the
|
|
||||||
mandatory-read cost is gone.
|
|
||||||
- **Also landed (docs only, not pushed):** `ef60f1f` — distribution & packaging deferred until near
|
|
||||||
v1 (creator ruling 2026-10-26); see "Next step" below for the still-open route contradiction.
|
|
||||||
- **Remaining split candidates in `ai.md`** (not yet moved — smaller, more interleaved with law that
|
|
||||||
should stay): Architecture's "Social bar" (46) + "Toast notifications" (24) + "Licensing — do not
|
|
||||||
violate" (60); "YouTube Live API — design constraints" incl. "Native events & alerts" (349 total,
|
|
||||||
99 of it alerts); "Monetization" (136); "Windows packaging & distribution" (135, frozen per the
|
|
||||||
deferral above). None of these is urgent — pick back up only if the user asks to continue the split.
|
|
||||||
- **Scope-check passed on all three commits**; no source touched this session.
|
|
||||||
|
|
||||||
---
|
## Landmines
|
||||||
|
|
||||||
### Earlier detailed state (2026-10-22) — properties-panel asks shipped, incl. TASK 63, and pushed; vv webcam Units 1+2 state below
|
- **Not every hex is a theme colour.** `BorderColorPalette` and the chat/socials config defaults
|
||||||
|
are USER DATA — they keep their literals. On-stream graphics now come from `OutputPalette`,
|
||||||
|
never from a literal or from app resources (the pump thread must not touch them).
|
||||||
|
- A red settings control is a bug now — red means live/record.
|
||||||
|
- Pre-existing: the **full test suite hangs** (WASAPI teardown). Per-class runs are the way.
|
||||||
|
|
||||||
## At a glance
|
## Pending
|
||||||
- **Branch** main, tracking `origin/main`. **The six-commit properties-panel batch is PUSHED**
|
|
||||||
(2026-10-22, as a sub-milestone): TASK 58 the theme sweep, TASK 59 the properties hierarchy,
|
|
||||||
TASK 60 the colour names, a docs commit, TASK 61+62 the geometry field widths and the colour
|
|
||||||
name beside the hex, and TASK 63 the border-colour picker as the app's own drop-down — the
|
|
||||||
creator's properties-panel asks, done in one batch. `origin/main` is now `987fdda`.
|
|
||||||
- The vv feature (Units 1+2) **was** pushed at its close (2026-10-21 — the creator approved
|
|
||||||
the Unit 1 push after testing it, and the completed feature is a milestone).
|
|
||||||
- **The push path changed:** `origin` is now
|
|
||||||
`https://llgit.llamachile.tube/gramps/LlamaCasty.git` (HTTPS + the credential helper
|
|
||||||
`/home/gramps/bin/gitea-credential`, which reads the password from the gitignored
|
|
||||||
`CREDENTIALS.md`; plain `git push` works). The old SSH remote was broken twice over: the repo
|
|
||||||
was **renamed `gramps/ytLlive` → `gramps/LlamaCasty`**, and `llgit:2214` refuses the publickey
|
|
||||||
of this machine's key even though it IS registered (account key id 6 "Corsair VSC"). Ask the
|
|
||||||
Gitea REST API, don't do key archaeology — recipe in `MyMistakes.md` → 2026-10-21.
|
|
||||||
- **This session shipped vv webcam Units 1+2** (the vertical 9:16 tier keeps its OWN camera placement
|
|
||||||
per scene; 16:9 restores the desktop layout exactly; the Chat scene in vv is rect-only and can be
|
|
||||||
enlarged to fill a whole 607×540 area). Code + memory in ONE commit each; the ONE Good Dog tests
|
|
||||||
are `ytLive.Tests/VerticalWebcamLayoutTests.cs` (Unit 1) and
|
|
||||||
`ytLive.Tests/VerticalChatCameraLayoutTests.cs` (Unit 2). **Only the creator's hands-on check is
|
|
||||||
left** — see the vv section.
|
|
||||||
- **TASK 58 — the properties panel now wears the theme** (shipped 2026-10-21). The creator's
|
|
||||||
"why is the drop-down not in the same style as the others?" was a real defect: those drop-downs
|
|
||||||
(and every check box, and every properties field) had been hand-painted with a `Background`/
|
|
||||||
`Foreground` instead of a style, so WPF drew the **light system template** on top of the dark
|
|
||||||
panel. Now: `ComboBox` → `YtComboBox`, `CheckBox` → `YtCheckBox` (new), properties fields →
|
|
||||||
`YtTextBoxCompact` (new, BasedOn `YtTextBox`). Guard:
|
|
||||||
`ytLive.Tests/PropertiesStyleTests.cs`.
|
|
||||||
- **TASK 59 — the properties panel is a hierarchy** (shipped 2026-10-21). A title owns its
|
|
||||||
content and the content is indented one level (10px): `Shape` (new title) over the
|
|
||||||
Mirror switch and the shape choice, the drag hint indented under that row, Geometry /
|
|
||||||
Border Color / Border Thickness as titles with their fields indented, Background's
|
|
||||||
Remove + Blur indented, and Strength one level deeper under Blur. **The shape became a
|
|
||||||
CHOICE**: `Rect` | `Circle` as two segment options with **Rect selected by default**
|
|
||||||
(the old single button showed the *next* action, "Round"). The mutual exclusion lives
|
|
||||||
in the model (`IsRectShape`/`IsRoundShape` on `SceneElement`) — a WPF `RadioButton`
|
|
||||||
group would kill the bindings. Guard: `ytLive.Tests/PropertiesHierarchyTests.cs`.
|
|
||||||
- **TASK 60 — the border-colour drop-down names every colour** (shipped 2026-10-21). The creator:
|
|
||||||
*"the #hex values are good, but add a corresponding color name/label next to the value"* — each row
|
|
||||||
now reads `#e94560 Crimson` (the name dimmed, the tooltip "Crimson (#e94560)"). The 14 colours
|
|
||||||
moved out of the click handler into `Models/BorderColorPalette.cs` (`NamedColor(Hex, Name)` +
|
|
||||||
`NameOf(hex)`), so the list is testable and extensible. Guard:
|
|
||||||
`ytLive.Tests/BorderColorPaletteTests.cs`.
|
|
||||||
- **TASK 61 + 62 — the geometry fields and the border-colour field** (shipped 2026-10-21).
|
|
||||||
- **61:** the X/Y/W/H fields share ONE fixed width (44px — the largest geometry value, 1920,
|
|
||||||
plus a sign) and their rows set `LastChildFill="False"`, so Y/H no longer stretch to fill
|
|
||||||
the row while X/W sized themselves to their text. Guard: `ytLive.Tests/GeometryFieldWidthTests.cs`
|
|
||||||
(it MEASURES the widest value with WPF's `FormattedText` — measure, don't guess).
|
|
||||||
- **62:** the border-colour field shows the palette's **name beside the hex**
|
|
||||||
(`SceneElement.BorderColorName`, empty for a custom hex), and the hex field keeps a fixed
|
|
||||||
width so the name stays next to the hex. The field stays editable (a custom hex can
|
|
||||||
still be typed). Guard: `ytLive.Tests/BorderColorNameTests.cs`.
|
|
||||||
- **TASK 63 - the border-colour picker IS the app's drop-down** (shipped 2026-10-21; **popup click
|
|
||||||
deselection fixed 2026-10-22**). The creator:
|
|
||||||
*"why does the drop down under the web cam properties not show the same style for the border
|
|
||||||
color drop down list box?"* and *"we established look-and-feel standards. And yet you keep
|
|
||||||
ignoring these and I'm wondering why."* **Root cause of the miss:** the TASK 58 sweep looked for
|
|
||||||
control **types** (`ComboBox`/`CheckBox`/`TextBox`) without a theme style - and the border picker
|
|
||||||
was NONE of those: it was a `...` `Button` whose `Click` handler built a `ContextMenu` in code.
|
|
||||||
It was never in the sweep's scope, and `PropertiesStyleTests.cs` (a type-based guard) could not
|
|
||||||
see it either. Now: the picker is a **`YtComboBox`** bound to the palette
|
|
||||||
(`SelectedElement.BorderColorOptions` / `BorderColorEntry`), the **closed box shows the swatch +
|
|
||||||
the colour's NAME**, the **rows show swatch + hex + name**, the hex field stays for a custom
|
|
||||||
colour, the swatch is painted by the theme's `HexToBrush` converter, and the hand-built menu +
|
|
||||||
`WebcamBorderColorPicker_Click` are **gone**. The closed box != the rows only through
|
|
||||||
`Helpers/ClosedBoxTemplateSelector.cs` (WPF copies `ItemTemplate` into the read-only
|
|
||||||
`SelectionBoxItemTemplate`; the selector is told them apart by the `ContentPresenter`'s
|
|
||||||
templated parent - `ComboBox` = closed box, `ComboBoxItem` = a row). **2026-10-22 creator bug fix:**
|
|
||||||
clicking a colour in the open `ComboBox` popup registered as an exit from the properties listing
|
|
||||||
because `LeftPanel.IsDescendantOf` used `child is Visual ? VisualTreeHelper.GetParent(child) :
|
|
||||||
LogicalTreeHelper.GetParent(child)` — at `PopupRoot` (which IS a `Visual`),
|
|
||||||
`VisualTreeHelper.GetParent` returns `null`, so `IsDescendantOf` stopped without crossing
|
|
||||||
`PopupRoot`'s logical parent (`PART_Popup` → `ComboBox` → `ElementsScrollViewer`), and
|
|
||||||
`MainWindow.Window_PreviewMouseLeftButtonDown` cleared `SelectedElement = null`. Fixed by falling
|
|
||||||
back to `LogicalTreeHelper.GetParent` / `TemplatedParent` when `VisualTreeHelper.GetParent`
|
|
||||||
returns `null`. Guard: `ytLive.Tests/BorderColorPickerTests.cs` (model + panel + the **real
|
|
||||||
widget**, including `LeftPanel.IsClickInside` on an open popup row and clicking a row to change
|
|
||||||
`BorderColor`). The TASK 60
|
|
||||||
guard (`BorderColorPaletteTests`) was updated to guard the new wiring (the drop-down is bound to
|
|
||||||
the palette; no second list of colours anywhere).
|
|
||||||
- **TASK 55 slice 1 — the log is capped (shipped 2026-10-22).** `startup.log` was uncapped (23 MB
|
|
||||||
and growing every few seconds — ffmpeg logs every stderr line). Now it rolls to `startup.1.log`
|
|
||||||
at 5 MB (one rolled copy kept), so the growth is bounded. The policy is
|
|
||||||
`Helpers/LogRotation.cs` (a pure function over a path — `AppLog`'s 156-call-site surface is
|
|
||||||
unchanged; the seams are two `internal` properties). Guard:
|
|
||||||
`ytLive.Tests/AppLogRotationTests.cs`. Slices 2 (temp alert-clip cleanup) and 3 (low-disk
|
|
||||||
guard before recording) are still open.
|
|
||||||
- **TASK 48 slice 2 — the app PACKS as a Store MSIX (shipped 2026-10-22).** `Packaging/Package.appxmanifest`
|
|
||||||
(full trust: `Windows.FullTrustApplication` + `uap10:TrustLevel=mediumIL` +
|
|
||||||
`uap10:RuntimeBehavior=packagedClassicApp` + `rescap runFullTrust`, plus webcam/microphone
|
|
||||||
`DeviceCapability`s, x64, en-US only) + `Packaging/Assets/` (four logo tiles generated from the
|
|
||||||
app's own artwork by `scripts/make-store-logos.py`) + `scripts/package-msix.sh` (publish
|
|
||||||
`Release -r win-x64 --self-contained` → stage → `makeappx pack`, optional `MSIX_PFX` signing).
|
|
||||||
**First real package built: `artifacts/LlamaCasty.msix`, 159 MB, 509 files, `Package creation
|
|
||||||
succeeded`** (`artifacts/` is gitignored). Guard:
|
|
||||||
`StorePackagingTests.The_package_manifest_declares_full_trust_camera_and_microphone`.
|
|
||||||
⚠️ Before submission the manifest's `Identity/@Publisher` and `PublisherDisplayName` must be
|
|
||||||
set to the exact values Partner Center shows — a mismatch is a rejection.
|
|
||||||
- **TASK 48 slice 3 — the self-updater is gone (shipped 2026-10-22).** The Store route (creator
|
|
||||||
ruling 2026-09-27) means the Store updates the app, so the Velopack package + bootstrap were
|
|
||||||
**deleted** (`ytLive.csproj`, `App.xaml.cs`) — a compliance action, not cleanup: the updater
|
|
||||||
downloaded *and executed*, which Store policy 10.2.2 does not permit. The DO update-URL droplet
|
|
||||||
dies with it. Guard: `ytLive.Tests/StorePackagingTests.cs` (no updater package, no updater API
|
|
||||||
in any app source file). The app was smoke-tested after the removal: `MainWindow loaded`, no
|
|
||||||
exceptions. **Still open on TASK 48:** slice 2 (the `Package.appxmanifest` + packaging project),
|
|
||||||
slice 6 (the full-trust recording invariant comment), slice 7 (disqualifier re-check), slice 8
|
|
||||||
(the pre-submission gates) — and slices 4/5 are the creator's (Certification Kit, Partner
|
|
||||||
Center listing, the demo account).
|
|
||||||
- **The previous session (HA lights) produced NO ytLive code** — it was spent on the creator's Home
|
|
||||||
Assistant light alert system (off-repo, `192.168.50.145`). See `MyMistakes.md` → 2026-10-21: the plan
|
|
||||||
was one tweak to a verified-working script; the script was rewritten twice, the alert path broke, and
|
|
||||||
the day was burned. **The HA work landed OK in the end** (recipes + measurements now in
|
|
||||||
`MyMistakes.md`). Records below so the next session does not re-hunt.
|
|
||||||
|
|
||||||
## HA light alert system — current, verified state (2026-10-21)
|
- **Launch and eyeball**: fonts render (pack-URI resolution cannot be proven in the test host),
|
||||||
Five Tapo bulbs: `light.br1`, `light.br2`, `light.officeone`, `light.officetwo`,
|
the blue accent, blue-staged / red-live tiles, and mono telemetry.
|
||||||
`light.death_star_light`. Purpose: the creator is **deaf** — lights are the alert channel; the phone
|
- Vertical-tier camera check; webcam-cadence take in the failing geometry.
|
||||||
(`notify.mobile_app_mis_lx9`) is secondary. **The iPhone is gone — never notify it.**
|
|
||||||
|
|
||||||
| State | br1 / officeone | br2 / officetwo | Death Star |
|
|
||||||
|---|---|---|---|
|
|
||||||
| Idle | off | off | off |
|
|
||||||
| Pump running | off | **off** | **blue only** (creator directive) |
|
|
||||||
| Leak | warm-white 100% | purple | purple |
|
|
||||||
| Alarm | warm-white 100% | red | red |
|
|
||||||
| Doorbell | green, 8s | green, 8s | green, 8s |
|
|
||||||
| Doorbell during an alert | — | suppressed — | — |
|
|
||||||
| Clear | off | off | off |
|
|
||||||
|
|
||||||
**Architecture:** `script.alerts_arm` / `alerts_clear` write only `input_text.light_alert`
|
|
||||||
(`none|leak|alarm|motion`, restart-surviving). **`script.alerts_render_lights` is the single writer of
|
|
||||||
the bulbs** — flat top-level `if`/`else` blocks (nested `if` and `choose:` both silently lit nothing;
|
|
||||||
do not "improve" the shape). Priority: an alert always beats pump status.
|
|
||||||
|
|
||||||
**⛔ THE ENTITY-ID TRAP (cost this session hours):** the YAML key is `alerts_render` but the entity id is
|
|
||||||
**`script.alerts_render_lights`**. `script.turn_on` on a non-existent entity returns **HTTP 200 and does
|
|
||||||
nothing** — no error, no log. All callers now use the `_lights` id. Check this first on any "script does
|
|
||||||
nothing" symptom.
|
|
||||||
|
|
||||||
**Pump status** is a *status*, not an alert (auto-clearing), and is keyed off
|
|
||||||
`sensor.water_pump_current_consumption` — **never** `switch.water_pump_2`, which was observed latched
|
|
||||||
`on` for hours at 0.0A draw and painted the bedroom blue at 5am.
|
|
||||||
|
|
||||||
**HA files touched** (`/config`, root-owned → writes need `sudo`): `scripts.yaml`, `automations.yaml`,
|
|
||||||
`configuration.yaml` (added `input_text.light_alert` / `_prev`). Backups: `scripts.yaml.bak-alertbuild`,
|
|
||||||
`automations.yaml.bak-alertbuild`, `automations.yaml.bak-notify-20261020`, `configuration.yaml.bak-tplinkfix`.
|
|
||||||
Zombie entities deleted from the registry: `script.leak_strobe`, `script.doorbell_flash` (old one),
|
|
||||||
`automation.leak_strobe_notify_clear_restore`, `script.alerts_render_lights_2`.
|
|
||||||
**Leak sensor is healthy** (`binary_sensor.pump_leak_moisture` = off, battery 100, signal 3) — an earlier
|
|
||||||
"unavailable" claim was a bad read during a reload; `alert_leak_on` now also triggers on the latched
|
|
||||||
`sensor.pump_leak_last_water_leak_alert`.
|
|
||||||
|
|
||||||
## vv webcam feature — locked rules (creator, 2026-10-17) — **Units 1+2 shipped 2026-10-21**
|
|
||||||
| mode | shape | size | position |
|
|
||||||
|---|---|---|---|
|
|
||||||
| 16:9 | as today | as today | as today |
|
|
||||||
| **vv · Live** | **circle OR rect, creator's choice** | small tile | one of six spots: top/bottom × L/C/R |
|
|
||||||
| **vv · Chat** | **rect only — no circle option** | normal, or enlarged to fill one area (607×540) | enlarged → top or bottom |
|
|
||||||
| Starting / BRB / Ending | unchanged | unchanged | unchanged |
|
|
||||||
|
|
||||||
- **Placement is set by tap/click-drag with snap, exactly like the socials today**, plus manual entry in
|
|
||||||
properties. **vv keeps its own camera position, size and shape per scene** — switching back to 16:9
|
|
||||||
restores the desktop layout exactly.
|
|
||||||
- **No explicit borderless/no-background mode is needed** (round + border/bg options already allow it).
|
|
||||||
- Creator's "square" means the rectangular view (the camera's own aspect), not a literal 1:1 box.
|
|
||||||
|
|
||||||
### What the code already gives us (do not re-hunt)
|
|
||||||
- **vv = the active tier's centred band crop.** 1080p60-vertical: master band **x 656.25–1263.75
|
|
||||||
(607.5 wide), full height**, upscaled to 1080×1920 (`MainViewModel.Streaming.cs` `ApplyStreamQuality`
|
|
||||||
→ `OutputRect*`). The band splits into **two 607×540 areas** (top/bottom).
|
|
||||||
- **The Live webcam sits at x≈1425 → entirely outside the band** — in vv it is invisible. That is the
|
|
||||||
whole motivation.
|
|
||||||
- **Geometry only — no render-path change.** Preview (`Controls/PreviewPane.xaml` 144–230) and compositor
|
|
||||||
(`Services/Compositor/SceneCompositor.cs` 389–397) both read the element's own `X/Y/W/H` + `ClipShape`.
|
|
||||||
- **Round / border / background are independent:** `ClipShape.Round`; `HasBorder` = width > 0 AND valid
|
|
||||||
6-hex colour; `BackgroundEffect` = None/Remove/Blur.
|
|
||||||
- **Per-scene camera size policy exists**: `MaxWebcamWidthFor/HeightFor` (Chat 1358×764, others 960×540)
|
|
||||||
+ `ClampWebcamToBounds`. **A 607×540 tile sits inside both → no clamp change.**
|
|
||||||
- **Storage:** `WebcamSceneConfig` table; new columns via `MigrateWebcamConfigTable()` as idempotent
|
|
||||||
`ALTER TABLE … ADD COLUMN` guarded on `PRAGMA table_info` + `LayoutStore.Save.cs` INSERT and
|
|
||||||
`LayoutStore.Load.cs` SELECT.
|
|
||||||
- **Precedent for remembered geometry:** `RectWidth/RectHeight` + `ToggleClipShape`
|
|
||||||
(`Models/SceneElement.cs` 124–152).
|
|
||||||
|
|
||||||
### What shipped in Unit 1 (2026-10-21) — do not re-hunt
|
|
||||||
- **Geometry only — NO render-path change.** The tier switch swaps the element's LIVE geometry; the
|
|
||||||
preview and the compositor read `X/Y/W/H` + `ClipShape` exactly as before.
|
|
||||||
- `Models/VerticalCameraLayout.cs` (new): the pure math — band x 656.25, w 607.5, h 1080; two
|
|
||||||
607×540 areas; six spots; default tile **270×152 master px** (= 480×270 in the 1080×1920 output),
|
|
||||||
**bottom-right** spot; inset 32 master px.
|
|
||||||
- `Models/WebcamSceneConfig.cs`: the vertical placement is persisted in **seven additive columns**
|
|
||||||
(`VerticalX/Y/Width/Height/VerticalClipShape/VerticalRectWidth/VerticalRectHeight`, NULL = "this
|
|
||||||
scene has no vertical placement yet"); the 16:9 layout stays in the old columns and is **parked** in
|
|
||||||
the transient `Landscape*` fields while the vertical tier is live. `BeginVerticalLayout` /
|
|
||||||
`EndVerticalLayout` / `CommitLiveLayoutToVertical` do the swap.
|
|
||||||
- `Models/SceneElement.cs`: `X/Y/Width/Height` are now **`virtual`** so the webcam clamps EVERY write
|
|
||||||
(drag, resize, typed fields) into the band — outside the band = invisible in vv.
|
|
||||||
- `ViewModels/MainViewModel.Webcam.cs`: `IsVerticalTier`/`VerticalBand` + `ResolveVerticalCameraLayouts`
|
|
||||||
(the tier swap; the **Live scene gets its tile automatically** on the first vertical switch) +
|
|
||||||
`MoveWebcamInVerticalTier`/`SnapWebcamInVerticalTier` (the six-spot snap, by the tile's CENTRE).
|
|
||||||
`MainViewModel.Streaming.cs` `ApplyStreamQuality` is the tier-change hook.
|
|
||||||
- `Controls/LeftPanel.xaml`: the webcam properties gained a **Geometry** section (X/Y/W/H) bound to
|
|
||||||
the live placement, gated on the VM's `IsWebcamSelected` (NOT `SelectedElement.IsWebcam` — the TASK 51
|
|
||||||
test finds that panel by binding text and would match twice).
|
|
||||||
- `Controls/PreviewPane.xaml.cs`: dragging/resizing a webcam under the vertical tier routes through the
|
|
||||||
VM's snap instead of free-floating over the master.
|
|
||||||
- Test seam: the drag lives in a **VM method**, so the test drives it without synthesising mouse input.
|
|
||||||
|
|
||||||
### What shipped in Unit 2 (the Chat scene, 2026-10-21) — do not re-hunt
|
|
||||||
- **Rect only, and the lock is on the MODEL, not the UI.** `WebcamSceneConfig.VerticalShapeLocked`
|
|
||||||
(set per scene by the VM) **overrides the `ClipShape` property** → a locked camera cannot become
|
|
||||||
Round by any writer (the toggle, the Shape button, the placement swap). `SceneElement.ClipShape`
|
|
||||||
and `SceneElement.ToggleClipShape()` are `virtual` for this. The lock is cleared **before** the
|
|
||||||
16:9 layout comes back, so the desktop shape is restored.
|
|
||||||
- **The circle is not OFFERED:** `MainViewModel.CanToggleClipShape` is false for a Chat camera in the
|
|
||||||
vertical tier → the Shape button in the webcam's properties **disappears** (not just disabled).
|
|
||||||
`MainViewModel.cs` raises it on the selection change; `MainViewModel.Streaming.cs` on the tier change.
|
|
||||||
- **Two sizes, snapped by the nearer one:** `VerticalCameraLayout.SizeFor(band, requestedWidth)` →
|
|
||||||
the small tile (270×152) or one whole area (607.5×540). The resize handle therefore has two
|
|
||||||
detents instead of any size in between.
|
|
||||||
- **An enlarged camera fills the area its centre is in** — top or bottom (`VerticalCameraLayout.AreaFor`).
|
|
||||||
- **The Chat camera is auto-tiled** like the Live one when the vertical tier is picked (otherwise the
|
|
||||||
vertical chat stream has no camera at all). `ResolveVerticalCameraLayout` now auto-tiles Live **and**
|
|
||||||
Chat; Starting/BRB/Ending keep their 16:9 placement.
|
|
||||||
- The preview's resize routes through `MainViewModel.ResizeWebcamInVerticalTier` (the Chat camera's
|
|
||||||
discrete size + the snap); the drag routes through `MoveWebcamInVerticalTier` (assign → clamp →
|
|
||||||
snap, so the enlarged camera can be dragged from the top area to the bottom one).
|
|
||||||
- *Test:* `ytLive.Tests/VerticalChatCameraLayoutTests.cs` — **PASSES** (in Chat under the vertical
|
|
||||||
tier, enlarging fills the full top area and the circle option is not offered).
|
|
||||||
|
|
||||||
### Units (each: ONE Good Dog integration test, own commit, memory in the same commit)
|
|
||||||
1. ✅ **vv camera layout (Unit 1)** — shipped 2026-10-21. Stored separately per scene, resolved when the
|
|
||||||
tier changes. Live: small tile (circle or rect) snapped to one of six spots; drag like the socials +
|
|
||||||
properties entry.
|
|
||||||
*Test:* `ytLive.Tests/VerticalWebcamLayoutTests.cs` — with the vertical tier active, dragging the Live
|
|
||||||
camera to top-right places it top-right inside the band; switching back to 16:9 restores the original
|
|
||||||
layout exactly; both placements survive a save + reload. **PASSES.**
|
|
||||||
2. ✅ **vv · Chat (Unit 2)** — shipped 2026-10-21. Rect enforced with the circle option unavailable, plus
|
|
||||||
enlarge-to-one-area (607×540) filling the top or the bottom area by where the camera is.
|
|
||||||
*Test:* `ytLive.Tests/VerticalChatCameraLayoutTests.cs` — in Chat under the vertical tier, enlarge sets
|
|
||||||
the full top area and the circle option is not offered. **PASSES.**
|
|
||||||
|
|
||||||
## Historical next step (2026-10-22; superseded by Current state above)
|
|
||||||
- **✅ TASK 63 + popup-click fix verified by creator (2026-10-22)** — clicking a colour in the
|
|
||||||
Border Color `YtComboBox` dropdown now stays inside `LeftPanel` (`IsDescendantOf` crosses
|
|
||||||
`PopupRoot` → `PART_Popup` via `LogicalTreeHelper.GetParent`), updates the webcam border colour,
|
|
||||||
and does not exit the properties listing.
|
|
||||||
- **Creator check (needs the creator's hands)** — the last piece of the vv feature: switch the
|
|
||||||
resolution dropdown to "Vertical 1080p60", confirm the Live camera tile lands inside the band and
|
|
||||||
the **Circle** option (TASK 59 turned the Shape button into a Rect | Circle choice) turns the tile
|
|
||||||
into a circle there, open the **Chat** scene and confirm the **Circle** option is **gone** (rect only)
|
|
||||||
and that dragging the tile up and enlarging it fills a whole 607×540 area, then
|
|
||||||
switch back and confirm the desktop layout is untouched. The unit tests cover the geometry, not the
|
|
||||||
eyeball.
|
|
||||||
- **⏸ Distribution & packaging is DEFERRED (creator ruling 2026-10-26) — do not pick it up until
|
|
||||||
we are close to v1.** The creator's reasons: the remaining programming tasks are far from
|
|
||||||
release, and a **complete UX redesign is about to start** — so packaging/signing/updater/route
|
|
||||||
decisions would chase scope that is about to move. Nothing distribution-related is urgent now.
|
|
||||||
Frozen: TASK 48 items 6-8, the signing decision, the updater choice, and the **route contradiction**
|
|
||||||
(`ai.md` says Store route DEAD → direct + Steam; `TASKS.md`/`TASKS/task-48-…`/this file still say
|
|
||||||
Store MSIX + Store IAP). That contradiction is to be settled in ONE distribution sweep at the
|
|
||||||
revisit, not patched piecemeal in the meantime. Detail: `TASKS.md` → Open items → the ⏸ TASK 48
|
|
||||||
bullet.
|
|
||||||
- Nothing else is queued for llamacasty — the creator queues work.
|
|
||||||
|
|
||||||
## Open (operational)
|
|
||||||
- **Follow-up (not fixed — out of scope for TASK 61):** the **web source** block's geometry rows in
|
|
||||||
`Controls/LeftPanel.xaml` (the `SelectedElement.IsWebSource` panel, ~lines 387-402) have the
|
|
||||||
identical shape and the identical defect as the webcam's did — the Y/H fields stretch to fill the
|
|
||||||
row. Same one-line-per-field fix as TASK 61, when the creator wants it.
|
|
||||||
- **✅ FIXED in TASK 63:** the border-colour swatches now carry a 1px `BorderBrush="#2a3a5e"`, so
|
|
||||||
the black (`#000000`) and dark swatches are visible against the dark menu (`#16213e`).
|
|
||||||
- **Follow-up spotted while doing TASK 63 (not fixed — out of scope for that change):** the theme has
|
|
||||||
**no implicit `Button` style**, so every plain `<Button>` in the app still renders with the light
|
|
||||||
WPF system template (`Controls/LeftPanel.xaml` ×7, `Controls/CameraPickerDialog.xaml` ×2). The
|
|
||||||
border picker's `...` button was one of them and is gone; the rest are still there. A theme-level
|
|
||||||
implicit `Button` style would fix them all at once — that is a creator-queued task, not a silent edit.
|
|
||||||
- **GOG Galaxy launcher shows "offline" (2026-10-21) — GOG's own overnight outage, NOT Windows.** GOG
|
|
||||||
put `www.gog.com` behind a maintenance page (503) and their Fastly services for `auth.gog.com` /
|
|
||||||
`api.gog.com` / `remote-config.gog.com` return `500 "Fastly error: unknown domain"`; the page itself
|
|
||||||
says *"Galaxy Launcher will also be down."* **Window: 00:00–08:11 local on 2026-10-21** — the Wayback
|
|
||||||
snapshot of `www.gog.com/en/` at 06:56 UTC is HTTP 200 with the full live storefront. `status.gog.com`
|
|
||||||
is NXDOMAIN globally. Local exoneration chain: genuine `GOG sp. z o.o → DigiCert` cert (no MITM),
|
|
||||||
local DNS == Google's authoritative answers, real Fastly POP headers, and GOG's own non-Fastly servers
|
|
||||||
still answering. **Nothing to fix locally** — wait for GOG. Galaxy's logs (incl. the rotated ones) show
|
|
||||||
no API-status failures between Oct 10 and Oct 20. Diagnosis recipe + the `webfetch`-is-not-an-
|
|
||||||
independent-egress trap: `MyMistakes.md` → 2026-10-21 GOG Galaxy "offline". Galaxy 2.0 logs live in
|
|
||||||
`C:\ProgramData\GOG.com\Galaxy\logs\` (NOT `%LOCALAPPDATA%`). ⚠️ that folder also holds a **2.7 GB
|
|
||||||
`cef.log`** (since Jul 13) — disk hygiene, see TASK 55.
|
|
||||||
- **verify.sh's known-failure whitelist is too loose** (confirmed twice 2026-10-16): require EVERY failure
|
|
||||||
line to be whitelisted, and add `MasterLimiter_CapsTheLiveMix_OnThePipe` +
|
|
||||||
`RealMouseDrag_OnTheLayerList_PersistsTheReorder` to the list.
|
|
||||||
- **A pre-existing stash is still sitting there:** `stash@{0}` = "WIP on main: 0464593 Compositor:
|
|
||||||
fast-path opaque 1:1 when source fills canvas" (NOT this session's; do not drop blindly).
|
|
||||||
- The judder reproduction take in the FAILING geometry (vertical 1080p60 first) is still outstanding — no
|
|
||||||
fix until a take names the stage.
|
|
||||||
- ⛔ Sudo password rotation pending (user; then update both `CREDENTIALS.md` password lines).
|
|
||||||
- ✅ **TASK 56 secret scan — DONE 2026-10-22, CLEAN.** 432 reachable commits (all branches, 35
|
|
||||||
tags, reflog, stash) + 63 dangling commits + the worktree: **0 real secrets**. 4 rule hits, all
|
|
||||||
false positives (`README.md:79` = the `your-client-secret` doc placeholder;
|
|
||||||
`TokenStoreTests.cs:22` = a 9-char test dummy). `CREDENTIALS.md`/`MARCOM.md`/
|
|
||||||
`Helpers/OAuthCredentials.cs` were never tracked. ⚠️ the repo was **already public** (anonymous
|
|
||||||
GET → 200, API `private = false`) when the scan ran — the gate came late, but nothing leaked.
|
|
||||||
Method + verdict: `TASKS/task-56-secret-scan.md`.
|
|
||||||
- TASK 55 disk hygiene: slice 1 (log rotation) **shipped 2026-10-22** — see the At-a-glance bullet.
|
|
||||||
Slices 2 (temp alert-clip cleanup) + 3 (low-disk guard before recording) are open. (The GOG
|
|
||||||
Galaxy `cef.log` at 2.7 GB is NOT ours.)
|
|
||||||
|
|
||||||
## Tests
|
|
||||||
- Last full run: **438/438 passed, 0 warnings** (2026-10-22 — after TASK 48 slice 2's
|
|
||||||
manifest guard; the run before was 437/437 after slice 3's `StorePackagingTests`, then
|
|
||||||
436/436 after TASK 55 slice 1's `AppLogRotationTests` and 435/435 after TASK 63). The one
|
|
||||||
failure seen earlier in the
|
|
||||||
session was `LayerReorderPersistenceTests.RealMouseDrag_OnTheLayerList_PersistsTheReorder`,
|
|
||||||
which **passes in isolation** (re-run: 3/3) — the known real-mouse flake, not a regression.
|
|
||||||
- Known flaky-by-environment (all pass in isolation): `AudioPipelineTests.Mix_HonorsProviderGains…`,
|
|
||||||
`MasterLimiter_CapsTheLiveMix_OnThePipe`, `LayerReorderPersistenceTests.RealMouseDrag…`,
|
|
||||||
`Round_Clip_Corner…`.
|
|
||||||
- ⚠️ **`LayerReorderPersistenceTests.RealMouseDrag_OnTheLayerList_PersistsTheReorder` is NOT
|
|
||||||
"passes in isolation" any more.** During this session it FAILED ALONE on a **clean tree** at
|
|
||||||
`58b9a7d` (the vv work stashed) with the same "Expected: ImgC / Actual: ImgA" — i.e. it is an
|
|
||||||
environment/real-mouse flake, **not** a regression from the vv work — and it PASSES in the
|
|
||||||
full-suite run (429/429). Treat it as environment-dependent, and don't chase it as a regression
|
|
||||||
without stashing first.
|
|
||||||
|
|
||||||
## Secrets / paths (do not re-hunt)
|
|
||||||
- Layout DB: `%APPDATA%\ytLlive\ytLlive.db` (SQLite, full-rewrite per save). Auth:
|
|
||||||
`%APPDATA%\ytLlive\ytLlive.auth` (DPAPI). Startup log: `%APPDATA%\ytLlive\startup.log`
|
|
||||||
(23MB — now CAPPED at 5 MB with one rolled copy, TASK 55).
|
|
||||||
- Recordings land in `C:\Users\gramp\Downloads\recordings\` (`ty-<date>-<time>-<ms>-<seq>.mp4`; a
|
|
||||||
duplicate name gets a `-2` suffix).
|
|
||||||
- **Conversation history:** `~/.local/share/opencode/opencode.db`, table **`session_message`** — creator
|
|
||||||
turns are `type='user'` with text in `data.text`; my turns are `type='assistant'` with reasoning AND the
|
|
||||||
rendered reply concatenated into `content[0].text`. The **reply marker's verbatim string is recorded in
|
|
||||||
`MyMistakes.md`**.
|
|
||||||
- LAN credentials: `CREDENTIALS.md` (gitignored) — **⚠️ stale for HA: it says `192.168.50.144`, the real
|
|
||||||
Home Assistant is `192.168.50.145`** (`homeassistant.local`, HAOS 18.2, Core 2026.10.1, SSH
|
|
||||||
`gramps`/`einstein`, `/config` root-owned). `gordito` is `.144`. Fix this file when next editing it.
|
|
||||||
- Google Cloud OAuth project number `198374416003`, owned by `llamachile.shop@gmail.com` — verify at
|
|
||||||
`https://console.cloud.google.com/apis/credentials?project=198374416003`.
|
|
||||||
|
|
||||||
## Open (operational) — officerFriendly / PS5 "DNS errors" (2026-10-17, off-repo)
|
|
||||||
- **Root cause: a ~43 h-wrong system clock on officerFriendly × `dnssec = true`.** Pi 400, **no RTC
|
|
||||||
hardware at all**, healthy oscillator (−7.39 ppm). Journal shows +54 min, +7 h, +42.9 h steps.
|
|
||||||
`pihole-FTL.db`: **1,688,396 `dnssec=3` rows on 10-11, 839,276 on 10-12 vs ≤23 other days**, hitting
|
|
||||||
PSN endpoints = the PS5's "DNS errors". KSK-rollover theory **retracted**.
|
|
||||||
- **Pending creator decision (do not apply unilaterally):** tighten
|
|
||||||
`/etc/systemd/timesyncd.conf.d/lan.conf` to `PollIntervalMinSec=16` / `PollIntervalMaxSec=64` /
|
|
||||||
`ConnectionRetrySec=8` / `SaveIntervalSec=30`, and/or add a DS3231 RTC (`i2c-tools` already installed).
|
|
||||||
- **LAN DNS routing vs creator intent:** DHCP still hands out `.26` + `.1` (clients query Pi-hole
|
|
||||||
directly) whereas the creator wants everything → `.1` with BBR forwarding. Also `dnssec = true` on
|
|
||||||
Pi-hole duplicates dnscrypt-proxy's `require_dnssec = true`. Both offered-for-veto, not done.
|
|
||||||
- Router is the DHCP server (ASUS ROG GT-BE98 Pro `.1`) — **Pi-hole `.26` is DNS only**, its
|
|
||||||
`dhcp.leases` is 0 bytes.
|
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Media;
|
||||||
|
|
||||||
|
namespace ytLive.Helpers;
|
||||||
|
|
||||||
|
/// <summary>Resolves a design token for code that cannot bind — view-model state colours (the
|
||||||
|
/// top bar, the health banner, the meters, toast tints). The values live once, in
|
||||||
|
/// <c>Themes/Tokens.xaml</c>; this reads them from the application resources.
|
||||||
|
///
|
||||||
|
/// <para>Why not a Brush field per colour: a second list in C# would drift from the theme. Why not
|
||||||
|
/// OutputPalette: that one exists for the frame-pump thread, which must not touch resources; these
|
||||||
|
/// properties are read by bindings on the UI thread.</para>
|
||||||
|
///
|
||||||
|
/// <para>Without an Application (unit tests, design-time) a neutral grey comes back: visibly wrong
|
||||||
|
/// rather than silently plausible, and never a crash.</para></summary>
|
||||||
|
internal static class ThemeBrush
|
||||||
|
{
|
||||||
|
private static readonly SolidColorBrush Missing = Frozen(Color.FromRgb(0x80, 0x80, 0x80));
|
||||||
|
|
||||||
|
/// <summary>The brush for a token key, e.g. <c>ThemeBrush.Get("Brush.Primary")</c>.</summary>
|
||||||
|
public static SolidColorBrush Get(string key)
|
||||||
|
=> Application.Current?.TryFindResource(key) as SolidColorBrush ?? Missing;
|
||||||
|
|
||||||
|
/// <summary>The token's colour as a browser-style hex string, for APIs that take one
|
||||||
|
/// (Notification.Wpf's <c>NotificationColor.FromHex</c>, for instance).</summary>
|
||||||
|
public static string Hex(string key)
|
||||||
|
{
|
||||||
|
var c = Get(key).Color;
|
||||||
|
return c.A == 255
|
||||||
|
? $"#{c.R:x2}{c.G:x2}{c.B:x2}"
|
||||||
|
: $"#{c.A:x2}{c.R:x2}{c.G:x2}{c.B:x2}";
|
||||||
|
}
|
||||||
|
|
||||||
|
private static SolidColorBrush Frozen(Color colour)
|
||||||
|
{
|
||||||
|
var brush = new SolidColorBrush(colour);
|
||||||
|
brush.Freeze();
|
||||||
|
return brush;
|
||||||
|
}
|
||||||
|
}
|
||||||
+10
-10
@@ -1,10 +1,10 @@
|
|||||||
<Window x:Class="ytLive.HotkeyConfigDialog"
|
<Window x:Class="ytLive.HotkeyConfigDialog"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
Title="Global Hotkey Bindings" Height="520" Width="480"
|
Title="Global Hotkey Bindings" Height="520" Width="480"
|
||||||
Icon="/Assets/llamacasty-icon.png"
|
Icon="/Assets/llamacasty-icon.png"
|
||||||
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
|
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
|
||||||
ShowInTaskbar="False" Background="#1a1a2e">
|
ShowInTaskbar="False" Background="{StaticResource Brush.Background}">
|
||||||
|
|
||||||
<Window.Resources>
|
<Window.Resources>
|
||||||
<BooleanToVisibilityConverter x:Key="BoolToVis"/>
|
<BooleanToVisibilityConverter x:Key="BoolToVis"/>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<TextBlock Grid.Row="0" Text="Global Hotkey Bindings" FontSize="18" FontWeight="Bold"
|
<TextBlock Grid.Row="0" Text="Global Hotkey Bindings" FontSize="18" FontWeight="Bold"
|
||||||
Foreground="#e0e0e0" Margin="0,0,0,12"/>
|
Foreground="{StaticResource Brush.OnSurface}" Margin="0,0,0,12"/>
|
||||||
|
|
||||||
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
||||||
<ItemsControl ItemsSource="{Binding Rows}">
|
<ItemsControl ItemsSource="{Binding Rows}">
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<TextBlock Grid.Column="0" Text="{Binding ActionName}"
|
<TextBlock Grid.Column="0" Text="{Binding ActionName}"
|
||||||
Foreground="#e0e0e0" FontSize="13"
|
Foreground="{StaticResource Brush.OnSurface}" FontSize="13"
|
||||||
VerticalAlignment="Center" Margin="0,0,12,0"/>
|
VerticalAlignment="Center" Margin="0,0,12,0"/>
|
||||||
|
|
||||||
<Button Grid.Column="1" Click="ChordButton_Click"
|
<Button Grid.Column="1" Click="ChordButton_Click"
|
||||||
@@ -42,8 +42,8 @@
|
|||||||
HorizontalAlignment="Left" MinWidth="140"
|
HorizontalAlignment="Left" MinWidth="140"
|
||||||
Padding="10,5" FontSize="13"
|
Padding="10,5" FontSize="13"
|
||||||
VerticalAlignment="Center">
|
VerticalAlignment="Center">
|
||||||
<Border Background="#16213e" CornerRadius="4" Padding="10,5">
|
<Border Background="{StaticResource Brush.SurfaceContainer}" CornerRadius="4" Padding="10,5">
|
||||||
<TextBlock Text="{Binding DisplayText}" Foreground="#e0e0e0"
|
<TextBlock Text="{Binding DisplayText}" Foreground="{StaticResource Brush.OnSurface}"
|
||||||
FontSize="13"/>
|
FontSize="13"/>
|
||||||
</Border>
|
</Border>
|
||||||
</Button>
|
</Button>
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
<Button Grid.Column="2" Content="✕" Click="UnbindButton_Click"
|
<Button Grid.Column="2" Content="✕" Click="UnbindButton_Click"
|
||||||
Tag="{Binding}" Cursor="Hand"
|
Tag="{Binding}" Cursor="Hand"
|
||||||
ToolTip="Remove binding"
|
ToolTip="Remove binding"
|
||||||
FontSize="12" Foreground="#8a93a8"
|
FontSize="12" Foreground="{StaticResource Brush.OnSurfaceVariant}"
|
||||||
Background="Transparent" BorderThickness="0"
|
Background="Transparent" BorderThickness="0"
|
||||||
Padding="6,4" VerticalAlignment="Center">
|
Padding="6,4" VerticalAlignment="Center">
|
||||||
<Button.Style>
|
<Button.Style>
|
||||||
@@ -71,8 +71,8 @@
|
|||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
|
|
||||||
<!-- Conflict warning: hidden when no message -->
|
<!-- Conflict warning: hidden when no message -->
|
||||||
<Border Grid.Row="2" Background="#3d1a1a" CornerRadius="4" Padding="10,8"
|
<Border Grid.Row="2" Background="{StaticResource Brush.ErrorContainer}" CornerRadius="4" Padding="10,8"
|
||||||
Margin="0,8,0,0" BorderBrush="#e94560" BorderThickness="1">
|
Margin="0,8,0,0" BorderBrush="{StaticResource Brush.Error}" BorderThickness="1">
|
||||||
<Border.Style>
|
<Border.Style>
|
||||||
<Style TargetType="Border">
|
<Style TargetType="Border">
|
||||||
<Style.Triggers>
|
<Style.Triggers>
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
</Style.Triggers>
|
</Style.Triggers>
|
||||||
</Style>
|
</Style>
|
||||||
</Border.Style>
|
</Border.Style>
|
||||||
<TextBlock Text="{Binding ConflictMessage}" Foreground="#e94560"
|
<TextBlock Text="{Binding ConflictMessage}" Foreground="{StaticResource Brush.Error}"
|
||||||
FontSize="12" TextWrapping="Wrap"/>
|
FontSize="12" TextWrapping="Wrap"/>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<Window x:Class="ytLive.KeepBroadcastDialog"
|
<Window x:Class="ytLive.KeepBroadcastDialog"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
Title="Keep this broadcast?" Height="240" Width="460"
|
Title="Keep this broadcast?" Height="240" Width="460"
|
||||||
Icon="/ytLive;component/Assets/llamacasty-icon.png"
|
Icon="/ytLive;component/Assets/llamacasty-icon.png"
|
||||||
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
|
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
|
||||||
ShowInTaskbar="False" Background="#1a1a2e">
|
ShowInTaskbar="False" Background="{StaticResource Brush.Background}">
|
||||||
|
|
||||||
<Grid Margin="24">
|
<Grid Margin="24">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
@@ -14,9 +14,9 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<TextBlock Grid.Row="0" Text="Keep this broadcast?" FontSize="18" FontWeight="Bold"
|
<TextBlock Grid.Row="0" Text="Keep this broadcast?" FontSize="18" FontWeight="Bold"
|
||||||
Foreground="#e0e0e0" Margin="0,0,0,12"/>
|
Foreground="{StaticResource Brush.OnSurface}" Margin="0,0,0,12"/>
|
||||||
|
|
||||||
<TextBlock Grid.Row="1" x:Name="MessageText" TextWrapping="Wrap" Foreground="#a0a0b0" FontSize="13"
|
<TextBlock Grid.Row="1" x:Name="MessageText" TextWrapping="Wrap" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="13"
|
||||||
Margin="0,0,0,16"/>
|
Margin="0,0,0,16"/>
|
||||||
|
|
||||||
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
|
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
|
||||||
|
|||||||
+13
-12
@@ -12,7 +12,8 @@
|
|||||||
Title="{Binding WindowTitle}" Height="1040" Width="1920"
|
Title="{Binding WindowTitle}" Height="1040" Width="1920"
|
||||||
MinWidth="1366" MinHeight="768"
|
MinWidth="1366" MinHeight="768"
|
||||||
Icon="/ytLive;component/Assets/llamacasty-icon.png"
|
Icon="/ytLive;component/Assets/llamacasty-icon.png"
|
||||||
Background="#1a1a2e"
|
Background="{StaticResource Brush.Background}"
|
||||||
|
FontFamily="{StaticResource FontFamily.Sans}"
|
||||||
WindowStartupLocation="Manual"
|
WindowStartupLocation="Manual"
|
||||||
Closing="MainWindow_Closing"
|
Closing="MainWindow_Closing"
|
||||||
Loaded="MainWindow_Loaded"
|
Loaded="MainWindow_Loaded"
|
||||||
@@ -38,7 +39,7 @@
|
|||||||
<DrawingImage x:Key="LiveOverlay">
|
<DrawingImage x:Key="LiveOverlay">
|
||||||
<DrawingImage.Drawing>
|
<DrawingImage.Drawing>
|
||||||
<DrawingGroup>
|
<DrawingGroup>
|
||||||
<GeometryDrawing Brush="#e94560">
|
<GeometryDrawing Brush="{StaticResource Brush.Tertiary}">
|
||||||
<GeometryDrawing.Geometry>
|
<GeometryDrawing.Geometry>
|
||||||
<EllipseGeometry Center="8,8" RadiusX="8" RadiusY="8"/>
|
<EllipseGeometry Center="8,8" RadiusX="8" RadiusY="8"/>
|
||||||
</GeometryDrawing.Geometry>
|
</GeometryDrawing.Geometry>
|
||||||
@@ -81,7 +82,7 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<!-- STREAM READOUTS (top-left cell, above the layers) + resolution -->
|
<!-- STREAM READOUTS (top-left cell, above the layers) + resolution -->
|
||||||
<Border Grid.Row="0" Grid.Column="0" Background="#0d1117" CornerRadius="4" Padding="10,8" Margin="0,0,8,0">
|
<Border Grid.Row="0" Grid.Column="0" Background="{StaticResource Brush.SurfaceContainerLowest}" CornerRadius="4" Padding="10,8" Margin="0,0,8,0">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
@@ -96,17 +97,17 @@
|
|||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<TextBlock Grid.Row="0" Grid.Column="0" Text="Bitrate" Foreground="#94a3b8" FontSize="12" Margin="0,0,12,2"/>
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="Bitrate" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="12" Margin="0,0,12,2"/>
|
||||||
<TextBlock Grid.Row="0" Grid.Column="1" Foreground="#dae2fd" FontSize="13" HorizontalAlignment="Right" Margin="0,0,0,2">
|
<TextBlock Grid.Row="0" Grid.Column="1" Foreground="{StaticResource Brush.OnSurface}" FontSize="13" FontFamily="{StaticResource FontFamily.Mono}" HorizontalAlignment="Right" Margin="0,0,0,2">
|
||||||
<Run Text="{Binding CurrentHealth.CurrentBitrate, Mode=OneWay, StringFormat={}{0:0.0}}"/><Run Text=" Mbps"/>
|
<Run Text="{Binding CurrentHealth.CurrentBitrate, Mode=OneWay, StringFormat={}{0:0.0}}"/><Run Text=" Mbps"/>
|
||||||
</TextBlock>
|
</TextBlock>
|
||||||
|
|
||||||
<TextBlock Grid.Row="1" Grid.Column="0" Text="FPS" Foreground="#94a3b8" FontSize="12" Margin="0,0,12,2"/>
|
<TextBlock Grid.Row="1" Grid.Column="0" Text="FPS" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="12" Margin="0,0,12,2"/>
|
||||||
<TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding CurrentHealth.FPS, Mode=OneWay, StringFormat={}{0:0}}"
|
<TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding CurrentHealth.FPS, Mode=OneWay, StringFormat={}{0:0}}"
|
||||||
Foreground="#dae2fd" FontSize="13" HorizontalAlignment="Right" Margin="0,0,0,2"/>
|
Foreground="{StaticResource Brush.OnSurface}" FontSize="13" FontFamily="{StaticResource FontFamily.Mono}" HorizontalAlignment="Right" Margin="0,0,0,2"/>
|
||||||
|
|
||||||
<TextBlock Grid.Row="2" Grid.Column="0" Text="Dropped" Foreground="#94a3b8" FontSize="12" Margin="0,0,12,2"/>
|
<TextBlock Grid.Row="2" Grid.Column="0" Text="Dropped" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="12" Margin="0,0,12,2"/>
|
||||||
<TextBlock Grid.Row="2" Grid.Column="1" FontSize="13" HorizontalAlignment="Right" Margin="0,0,0,2"
|
<TextBlock Grid.Row="2" Grid.Column="1" FontSize="13" FontFamily="{StaticResource FontFamily.Mono}" HorizontalAlignment="Right" Margin="0,0,0,2"
|
||||||
Foreground="{Binding CurrentHealth.DroppedFrames, Converter={StaticResource DroppedToBrush}}">
|
Foreground="{Binding CurrentHealth.DroppedFrames, Converter={StaticResource DroppedToBrush}}">
|
||||||
<TextBlock.Text>
|
<TextBlock.Text>
|
||||||
<MultiBinding Converter="{StaticResource DroppedPercent}">
|
<MultiBinding Converter="{StaticResource DroppedPercent}">
|
||||||
@@ -117,12 +118,12 @@
|
|||||||
</TextBlock.Text>
|
</TextBlock.Text>
|
||||||
</TextBlock>
|
</TextBlock>
|
||||||
|
|
||||||
<TextBlock Grid.Row="3" Grid.Column="0" Text="Live:" Foreground="#94a3b8" FontSize="12" Margin="0,0,12,2"/>
|
<TextBlock Grid.Row="3" Grid.Column="0" Text="Live:" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="12" Margin="0,0,12,2"/>
|
||||||
<TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding CurrentHealth.StreamDuration, Mode=OneWay, StringFormat={}{0:hh\:mm\:ss}}"
|
<TextBlock Grid.Row="3" Grid.Column="1" Text="{Binding CurrentHealth.StreamDuration, Mode=OneWay, StringFormat={}{0:hh\:mm\:ss}}"
|
||||||
Foreground="#ff8c3a" FontSize="13" FontWeight="SemiBold" HorizontalAlignment="Right" Margin="0,0,0,2"/>
|
Foreground="{StaticResource Brush.Attention}" FontSize="13" FontFamily="{StaticResource FontFamily.Mono}" FontWeight="SemiBold" HorizontalAlignment="Right" Margin="0,0,0,2"/>
|
||||||
|
|
||||||
<TextBlock Grid.Row="4" Grid.ColumnSpan="2" Text="{Binding CurrentHealth.HealthMessage}"
|
<TextBlock Grid.Row="4" Grid.ColumnSpan="2" Text="{Binding CurrentHealth.HealthMessage}"
|
||||||
Foreground="#ff8c3a" FontSize="12" TextWrapping="Wrap" Margin="0,0,0,6"/>
|
Foreground="{StaticResource Brush.Attention}" FontSize="12" TextWrapping="Wrap" Margin="0,0,0,6"/>
|
||||||
|
|
||||||
<ComboBox Grid.Row="5" Grid.ColumnSpan="2" VerticalAlignment="Bottom" Style="{StaticResource YtComboBox}"
|
<ComboBox Grid.Row="5" Grid.ColumnSpan="2" VerticalAlignment="Bottom" Style="{StaticResource YtComboBox}"
|
||||||
ItemsSource="{Binding QualityOptions}"
|
ItemsSource="{Binding QualityOptions}"
|
||||||
|
|||||||
+10
-10
@@ -1,10 +1,10 @@
|
|||||||
<Window x:Class="ytLive.MicPickerDialog"
|
<Window x:Class="ytLive.MicPickerDialog"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
Title="Select Microphone" Height="340" Width="460"
|
Title="Select Microphone" Height="340" Width="460"
|
||||||
Icon="/Assets/llamacasty-icon.png"
|
Icon="/Assets/llamacasty-icon.png"
|
||||||
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
|
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
|
||||||
ShowInTaskbar="False" Background="#1a1a2e">
|
ShowInTaskbar="False" Background="{StaticResource Brush.Background}">
|
||||||
|
|
||||||
<Window.Resources>
|
<Window.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
@@ -21,10 +21,10 @@
|
|||||||
</Border>
|
</Border>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="IsMouseOver" Value="True">
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
<Setter TargetName="Bd" Property="Background" Value="#1c2a52"/>
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Brush.SurfaceContainerHigh}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsSelected" Value="True">
|
<Trigger Property="IsSelected" Value="True">
|
||||||
<Setter TargetName="Bd" Property="Background" Value="#2a2450"/>
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Brush.SurfaceContainerHigh}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</ControlTemplate.Triggers>
|
</ControlTemplate.Triggers>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
@@ -43,10 +43,10 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<TextBlock Grid.Row="0" Text="Select Microphone" FontSize="18" FontWeight="Bold"
|
<TextBlock Grid.Row="0" Text="Select Microphone" FontSize="18" FontWeight="Bold"
|
||||||
Foreground="#e0e0e0" Margin="0,0,0,14"/>
|
Foreground="{StaticResource Brush.OnSurface}" Margin="0,0,0,14"/>
|
||||||
|
|
||||||
<TextBlock Grid.Row="1" Text="Pick the microphone to use as your voice source."
|
<TextBlock Grid.Row="1" Text="Pick the microphone to use as your voice source."
|
||||||
Foreground="#a0a0b0" FontSize="13" TextWrapping="Wrap" Margin="0,0,0,12"/>
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="13" TextWrapping="Wrap" Margin="0,0,0,12"/>
|
||||||
|
|
||||||
<Grid Grid.Row="2">
|
<Grid Grid.Row="2">
|
||||||
<ListBox Background="Transparent" BorderThickness="0"
|
<ListBox Background="Transparent" BorderThickness="0"
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<TextBlock Text="🎙️" FontSize="15" VerticalAlignment="Center" Margin="0,0,10,0"/>
|
<TextBlock Text="🎙️" FontSize="15" VerticalAlignment="Center" Margin="0,0,10,0"/>
|
||||||
<TextBlock Text="{Binding Name}" Foreground="#e0e0e0" FontSize="13"
|
<TextBlock Text="{Binding Name}" Foreground="{StaticResource Brush.OnSurface}" FontSize="13"
|
||||||
VerticalAlignment="Center" TextTrimming="CharacterEllipsis"/>
|
VerticalAlignment="Center" TextTrimming="CharacterEllipsis"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
@@ -67,15 +67,15 @@
|
|||||||
|
|
||||||
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"
|
||||||
Visibility="{Binding IsLoading, Converter={StaticResource BoolToVis}}">
|
Visibility="{Binding IsLoading, Converter={StaticResource BoolToVis}}">
|
||||||
<TextBlock Text="Searching for microphones…" Foreground="#a0a0b0" FontSize="13"/>
|
<TextBlock Text="Searching for microphones…" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="13"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<StackPanel VerticalAlignment="Center"
|
<StackPanel VerticalAlignment="Center"
|
||||||
Visibility="{Binding NoMicrophones, Converter={StaticResource BoolToVis}}">
|
Visibility="{Binding NoMicrophones, Converter={StaticResource BoolToVis}}">
|
||||||
<TextBlock Text="No microphones found" Foreground="#e0e0e0" FontSize="15"
|
<TextBlock Text="No microphones found" Foreground="{StaticResource Brush.OnSurface}" FontSize="15"
|
||||||
FontWeight="SemiBold" HorizontalAlignment="Center"/>
|
FontWeight="SemiBold" HorizontalAlignment="Center"/>
|
||||||
<TextBlock Text="Check that a microphone is connected and that Windows microphone access is enabled."
|
<TextBlock Text="Check that a microphone is connected and that Windows microphone access is enabled."
|
||||||
Foreground="#a0a0b0" FontSize="13" TextWrapping="Wrap" MaxWidth="360"
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="13" TextWrapping="Wrap" MaxWidth="360"
|
||||||
TextAlignment="Center" HorizontalAlignment="Center" Margin="0,8,0,0"/>
|
TextAlignment="Center" HorizontalAlignment="Center" Margin="0,8,0,0"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -0,0 +1,56 @@
|
|||||||
|
namespace ytLive.Models;
|
||||||
|
|
||||||
|
/// <summary>What the top bar's primary action button will do.</summary>
|
||||||
|
public enum SessionStartKind
|
||||||
|
{
|
||||||
|
Record,
|
||||||
|
Live,
|
||||||
|
Test,
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Creator ruling (2026-10-30): the primary button is context-sensitive, so the separate
|
||||||
|
/// TEST button is gone.
|
||||||
|
///
|
||||||
|
/// <list type="bullet">
|
||||||
|
/// <item>EDIT off + ON-AIR armed → Go Live (the livestream message)</item>
|
||||||
|
/// <item>EDIT on + ON-AIR armed → Test Stream (the test-livestream message) — a dry run you
|
||||||
|
/// cannot leak, because every broadcast is private pre-v1 anyway</item>
|
||||||
|
/// <item>REC armed → Start Recording, whatever EDIT says (there is no test recording)</item>
|
||||||
|
/// </list>
|
||||||
|
///
|
||||||
|
/// <para>Pure so the whole matrix is testable without a window.</para></summary>
|
||||||
|
public static class SessionStartDecision
|
||||||
|
{
|
||||||
|
public static SessionStartKind For(bool recordArmed, bool onAirArmed, bool editing)
|
||||||
|
{
|
||||||
|
// Neither pill armed still starts something: local recording needs no account, and the
|
||||||
|
// no-dead-ends rule forbids an inert primary button.
|
||||||
|
if (recordArmed || !onAirArmed) return SessionStartKind.Record;
|
||||||
|
return editing ? SessionStartKind.Test : SessionStartKind.Live;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>What pressing the button actually does, given whether YouTube is connected.
|
||||||
|
/// A signed-out ON-AIR press must start the SIGN-IN flow, not sit there disabled — a dead
|
||||||
|
/// primary button is the dead end the design principle forbids (creator, 2026-10-30).</summary>
|
||||||
|
public enum Route
|
||||||
|
{
|
||||||
|
SignIn,
|
||||||
|
Record,
|
||||||
|
Live,
|
||||||
|
Test,
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Route RouteFor(SessionStartKind kind, bool connected) => kind switch
|
||||||
|
{
|
||||||
|
SessionStartKind.Record => Route.Record,
|
||||||
|
SessionStartKind.Test => connected ? Route.Test : Route.SignIn,
|
||||||
|
_ => connected ? Route.Live : Route.SignIn,
|
||||||
|
};
|
||||||
|
|
||||||
|
public static string LabelFor(SessionStartKind kind) => kind switch
|
||||||
|
{
|
||||||
|
SessionStartKind.Record => "Start Recording",
|
||||||
|
SessionStartKind.Test => "Test Stream",
|
||||||
|
_ => "Go Live",
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -70,6 +70,50 @@ public sealed class SocialsConfig : INotifyPropertyChanged
|
|||||||
set => Set(ref _barPosition, value);
|
set => Set(ref _barPosition, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ─── Bar appearance (creator request 2026-10-30) ───────────────────────────
|
||||||
|
// The bar used to be hard-wired white-on-transparent. These five knobs are the whole
|
||||||
|
// appearance surface: text colour, an optional plate behind it, and a text shadow.
|
||||||
|
|
||||||
|
private string _barTextColor = "#FFFFFF";
|
||||||
|
/// <summary>Text and logo colour of the bar (hex, straight alpha).</summary>
|
||||||
|
public string BarTextColor
|
||||||
|
{
|
||||||
|
get => _barTextColor;
|
||||||
|
set => Set(ref _barTextColor, string.IsNullOrWhiteSpace(value) ? "#FFFFFF" : value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool _barBackgroundEnabled;
|
||||||
|
/// <summary>Draw a rounded plate behind the entries. Off by default — the bar shipped
|
||||||
|
/// transparent and most creators keep it that way.</summary>
|
||||||
|
public bool BarBackgroundEnabled
|
||||||
|
{
|
||||||
|
get => _barBackgroundEnabled;
|
||||||
|
set => Set(ref _barBackgroundEnabled, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _barBackgroundColor = "#000000";
|
||||||
|
public string BarBackgroundColor
|
||||||
|
{
|
||||||
|
get => _barBackgroundColor;
|
||||||
|
set => Set(ref _barBackgroundColor, string.IsNullOrWhiteSpace(value) ? "#000000" : value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private double _barBackgroundOpacity = 0.55;
|
||||||
|
/// <summary>0 = invisible plate, 1 = solid. Only meaningful when the plate is on.</summary>
|
||||||
|
public double BarBackgroundOpacity
|
||||||
|
{
|
||||||
|
get => _barBackgroundOpacity;
|
||||||
|
set => Set(ref _barBackgroundOpacity, Math.Clamp(value, 0, 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool _barTextShadow;
|
||||||
|
/// <summary>A soft black drop shadow behind the glyphs, for a bright or busy scene.</summary>
|
||||||
|
public bool BarTextShadow
|
||||||
|
{
|
||||||
|
get => _barTextShadow;
|
||||||
|
set => Set(ref _barTextShadow, value);
|
||||||
|
}
|
||||||
|
|
||||||
public event PropertyChangedEventHandler? PropertyChanged;
|
public event PropertyChangedEventHandler? PropertyChanged;
|
||||||
private bool Set<T>(ref T field, T value, [CallerMemberName] string? name = null)
|
private bool Set<T>(ref T field, T value, [CallerMemberName] string? name = null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<Window x:Class="ytLive.RenameRecordingDialog"
|
<Window x:Class="ytLive.RenameRecordingDialog"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
Title="Rename Recording" Height="304" Width="460"
|
Title="Rename Recording" Height="304" Width="460"
|
||||||
Icon="/ytLive;component/Assets/llamacasty-icon.png"
|
Icon="/ytLive;component/Assets/llamacasty-icon.png"
|
||||||
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
|
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
|
||||||
ShowInTaskbar="False" Background="#1a1a2e">
|
ShowInTaskbar="False" Background="{StaticResource Brush.Background}">
|
||||||
|
|
||||||
<Grid Margin="24">
|
<Grid Margin="24">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
@@ -16,9 +16,9 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<TextBlock Grid.Row="0" Text="Rename Recording" FontSize="18" FontWeight="Bold"
|
<TextBlock Grid.Row="0" Text="Rename Recording" FontSize="18" FontWeight="Bold"
|
||||||
Foreground="#e0e0e0" Margin="0,0,0,12"/>
|
Foreground="{StaticResource Brush.OnSurface}" Margin="0,0,0,12"/>
|
||||||
|
|
||||||
<TextBlock Grid.Row="1" TextWrapping="Wrap" Foreground="#a0a0b0" FontSize="13"
|
<TextBlock Grid.Row="1" TextWrapping="Wrap" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="13"
|
||||||
Margin="0,0,0,16">
|
Margin="0,0,0,16">
|
||||||
The recording is saved with an auto-generated name. Give it a clearer name —
|
The recording is saved with an auto-generated name. Give it a clearer name —
|
||||||
leave it empty to keep the auto name.
|
leave it empty to keep the auto name.
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<Window x:Class="ytLive.ReuseImageDialog"
|
<Window x:Class="ytLive.ReuseImageDialog"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
Title="Add Image" Height="380" Width="460"
|
Title="Add Image" Height="380" Width="460"
|
||||||
Icon="/Assets/llamacasty-icon.png"
|
Icon="/Assets/llamacasty-icon.png"
|
||||||
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
|
WindowStartupLocation="CenterOwner" ResizeMode="NoResize"
|
||||||
ShowInTaskbar="False" Background="#1a1a2e">
|
ShowInTaskbar="False" Background="{StaticResource Brush.Background}">
|
||||||
|
|
||||||
<Window.Resources>
|
<Window.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
@@ -20,10 +20,10 @@
|
|||||||
</Border>
|
</Border>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="IsMouseOver" Value="True">
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
<Setter TargetName="Bd" Property="Background" Value="#1c2a52"/>
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Brush.SurfaceContainerHigh}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsSelected" Value="True">
|
<Trigger Property="IsSelected" Value="True">
|
||||||
<Setter TargetName="Bd" Property="Background" Value="#2a2450"/>
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Brush.SurfaceContainerHigh}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</ControlTemplate.Triggers>
|
</ControlTemplate.Triggers>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
@@ -42,10 +42,10 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<TextBlock Grid.Row="0" Text="Add Image" FontSize="18" FontWeight="Bold"
|
<TextBlock Grid.Row="0" Text="Add Image" FontSize="18" FontWeight="Bold"
|
||||||
Foreground="#e0e0e0" Margin="0,0,0,14"/>
|
Foreground="{StaticResource Brush.OnSurface}" Margin="0,0,0,14"/>
|
||||||
|
|
||||||
<TextBlock Grid.Row="1" Text="Re-use an image that's already in your stream, or add a new one?"
|
<TextBlock Grid.Row="1" Text="Re-use an image that's already in your stream, or add a new one?"
|
||||||
Foreground="#a0a0b0" FontSize="13" TextWrapping="Wrap" Margin="0,0,0,12"/>
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="13" TextWrapping="Wrap" Margin="0,0,0,12"/>
|
||||||
|
|
||||||
<ListBox Grid.Row="2" Background="Transparent" BorderThickness="0"
|
<ListBox Grid.Row="2" Background="Transparent" BorderThickness="0"
|
||||||
ItemContainerStyle="{StaticResource CandidateItem}"
|
ItemContainerStyle="{StaticResource CandidateItem}"
|
||||||
@@ -59,11 +59,11 @@
|
|||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<Border Background="#0f3460" CornerRadius="3" Width="48" Height="27" ClipToBounds="True">
|
<Border Background="{StaticResource Brush.SurfaceContainerHigh}" CornerRadius="3" Width="48" Height="27" ClipToBounds="True">
|
||||||
<Image Source="{Binding Thumbnail}" Stretch="Uniform" Margin="1"/>
|
<Image Source="{Binding Thumbnail}" Stretch="Uniform" Margin="1"/>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
<TextBlock Grid.Column="1" Text="{Binding Header}" Foreground="#e0e0e0" FontSize="13"
|
<TextBlock Grid.Column="1" Text="{Binding Header}" Foreground="{StaticResource Brush.OnSurface}" FontSize="13"
|
||||||
VerticalAlignment="Center" Margin="10,0,0,0"
|
VerticalAlignment="Center" Margin="10,0,0,0"
|
||||||
TextTrimming="CharacterEllipsis"/>
|
TextTrimming="CharacterEllipsis"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
+19
-18
@@ -3,6 +3,7 @@ using System.Windows;
|
|||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
using System.Windows.Media.Imaging;
|
using System.Windows.Media.Imaging;
|
||||||
using ytLive.Models;
|
using ytLive.Models;
|
||||||
|
using ytLive.Services.Compositor;
|
||||||
|
|
||||||
namespace ytLive.Services;
|
namespace ytLive.Services;
|
||||||
|
|
||||||
@@ -27,9 +28,9 @@ public sealed class AlertRenderer
|
|||||||
private static readonly Color White = Colors.White;
|
private static readonly Color White = Colors.White;
|
||||||
private static readonly Color[] ConfettiPalette =
|
private static readonly Color[] ConfettiPalette =
|
||||||
{
|
{
|
||||||
Color.FromRgb(0xf4, 0x2f, 0x5f), Color.FromRgb(0xff, 0xd1, 0x66),
|
OutputPalette.Crimson, OutputPalette.Gold,
|
||||||
Color.FromRgb(0x38, 0xb6, 0xf8), Color.FromRgb(0xa7, 0x8b, 0xfa),
|
OutputPalette.Tertiary, OutputPalette.Violet,
|
||||||
Color.FromRgb(0x39, 0xd3, 0x53),
|
OutputPalette.Positive,
|
||||||
};
|
};
|
||||||
|
|
||||||
public VideoFrame Render(ChatMessage e, double t01, int width, int height)
|
public VideoFrame Render(ChatMessage e, double t01, int width, int height)
|
||||||
@@ -70,10 +71,10 @@ public sealed class AlertRenderer
|
|||||||
var shownAmount = e.SuperChatDisplayString
|
var shownAmount = e.SuperChatDisplayString
|
||||||
?? (e.SuperChatCurrency is { Length: > 0 } cur ? $"{cur}{e.SuperChatAmount:0.00}" : $"${e.SuperChatAmount:0.00}");
|
?? (e.SuperChatCurrency is { Length: > 0 } cur ? $"{cur}{e.SuperChatAmount:0.00}" : $"${e.SuperChatAmount:0.00}");
|
||||||
var fontSize = cardH * 0.24;
|
var fontSize = cardH * 0.24;
|
||||||
DrawCentered(ctx, shownAmount, cardCX, cardY + cardH * 0.24, fontSize, FontWeights.Bold, Color.FromRgb(0xff, 0xd1, 0x66), cardW);
|
DrawCentered(ctx, shownAmount, cardCX, cardY + cardH * 0.24, fontSize, FontWeights.Bold, OutputPalette.Gold, cardW);
|
||||||
|
|
||||||
DrawCentered(ctx, e.AuthorName, cardCX, cardY + cardH * 0.56, cardH * 0.13, FontWeights.SemiBold, White, cardW);
|
DrawCentered(ctx, e.AuthorName, cardCX, cardY + cardH * 0.56, cardH * 0.13, FontWeights.SemiBold, White, cardW);
|
||||||
DrawCentered(ctx, e.Message, cardCX, cardY + cardH * 0.74, cardH * 0.10, FontWeights.Normal, Color.FromRgb(0xdd, 0xff, 0xf0), cardW * 0.92);
|
DrawCentered(ctx, e.Message, cardCX, cardY + cardH * 0.74, cardH * 0.10, FontWeights.Normal, OutputPalette.MintText, cardW * 0.92);
|
||||||
|
|
||||||
if (t >= EnterEnd && t <= ExitStart)
|
if (t >= EnterEnd && t <= ExitStart)
|
||||||
{
|
{
|
||||||
@@ -122,10 +123,10 @@ public sealed class AlertRenderer
|
|||||||
var desc = string.IsNullOrWhiteSpace(e.SuperStickerDescription) ? "SUPER STICKER" : e.SuperStickerDescription.ToUpperInvariant();
|
var desc = string.IsNullOrWhiteSpace(e.SuperStickerDescription) ? "SUPER STICKER" : e.SuperStickerDescription.ToUpperInvariant();
|
||||||
DrawCentered(ctx, desc, cardCX, h / 2.0 - cardH * 0.12, cardH * 0.17, FontWeights.Bold, White, cardW * 0.9);
|
DrawCentered(ctx, desc, cardCX, h / 2.0 - cardH * 0.12, cardH * 0.17, FontWeights.Bold, White, cardW * 0.9);
|
||||||
|
|
||||||
DrawCentered(ctx, e.AuthorName, cardCX, h / 2.0 + cardH * 0.16, cardH * 0.12, FontWeights.SemiBold, Color.FromRgb(0xff, 0xb3, 0xd9), cardW * 0.9);
|
DrawCentered(ctx, e.AuthorName, cardCX, h / 2.0 + cardH * 0.16, cardH * 0.12, FontWeights.SemiBold, OutputPalette.Pink, cardW * 0.9);
|
||||||
var tier = e.SuperChatDisplayString ?? (e.SuperChatCurrency is { Length: > 0 } cur ? $"{cur}{e.SuperChatAmount:0.00}" : null);
|
var tier = e.SuperChatDisplayString ?? (e.SuperChatCurrency is { Length: > 0 } cur ? $"{cur}{e.SuperChatAmount:0.00}" : null);
|
||||||
if (!string.IsNullOrWhiteSpace(tier))
|
if (!string.IsNullOrWhiteSpace(tier))
|
||||||
DrawCentered(ctx, tier, cardCX, h / 2.0 + cardH * 0.32, cardH * 0.10, FontWeights.Bold, Color.FromRgb(0xff, 0xd1, 0x66), cardW * 0.9);
|
DrawCentered(ctx, tier, cardCX, h / 2.0 + cardH * 0.32, cardH * 0.10, FontWeights.Bold, OutputPalette.Gold, cardW * 0.9);
|
||||||
|
|
||||||
ctx.Pop();
|
ctx.Pop();
|
||||||
ctx.Pop();
|
ctx.Pop();
|
||||||
@@ -163,10 +164,10 @@ public sealed class AlertRenderer
|
|||||||
}
|
}
|
||||||
|
|
||||||
DrawCentered(ctx, e.AuthorName, cardCX, cardY + cardH * 0.36, cardH * 0.22, FontWeights.Bold, White, cardW * 0.9);
|
DrawCentered(ctx, e.AuthorName, cardCX, cardY + cardH * 0.36, cardH * 0.22, FontWeights.Bold, White, cardW * 0.9);
|
||||||
DrawCentered(ctx, "JOINED THE MEMBERSHIP", cardCX, cardY + cardH * 0.62, cardH * 0.11, FontWeights.SemiBold, Color.FromRgb(0xf5, 0xd0, 0xfe), cardW * 0.9);
|
DrawCentered(ctx, "JOINED THE MEMBERSHIP", cardCX, cardY + cardH * 0.62, cardH * 0.11, FontWeights.SemiBold, OutputPalette.Lilac, cardW * 0.9);
|
||||||
|
|
||||||
var level = string.IsNullOrWhiteSpace(e.MembershipLevel) ? "MEMBER" : e.MembershipLevel.ToUpperInvariant();
|
var level = string.IsNullOrWhiteSpace(e.MembershipLevel) ? "MEMBER" : e.MembershipLevel.ToUpperInvariant();
|
||||||
DrawCentered(ctx, level, cardCX, cardY + cardH * 0.80, cardH * 0.10, FontWeights.Bold, Color.FromRgb(0xff, 0xd1, 0x66), cardW * 0.9);
|
DrawCentered(ctx, level, cardCX, cardY + cardH * 0.80, cardH * 0.10, FontWeights.Bold, OutputPalette.Gold, cardW * 0.9);
|
||||||
}
|
}
|
||||||
return CreateFrame(visual, w, h, dpi);
|
return CreateFrame(visual, w, h, dpi);
|
||||||
}
|
}
|
||||||
@@ -193,7 +194,7 @@ public sealed class AlertRenderer
|
|||||||
var count = Math.Max(1, e.GiftNewMembersCount);
|
var count = Math.Max(1, e.GiftNewMembersCount);
|
||||||
var spread = 1.0 - exit;
|
var spread = 1.0 - exit;
|
||||||
var hero = count > 1 ? $"×{count}" : "MEMBERSHIP";
|
var hero = count > 1 ? $"×{count}" : "MEMBERSHIP";
|
||||||
DrawCentered(ctx, hero, cardCX, margin + cardH * 0.24, cardH * 0.26, FontWeights.Bold, Color.FromRgb(0xff, 0xd1, 0x66), cardW * 0.8);
|
DrawCentered(ctx, hero, cardCX, margin + cardH * 0.24, cardH * 0.26, FontWeights.Bold, OutputPalette.Gold, cardW * 0.8);
|
||||||
DrawCentered(ctx, $"{e.AuthorName} is gifting", cardCX, margin + cardH * 0.52, cardH * 0.11, FontWeights.SemiBold, White, cardW * 0.9);
|
DrawCentered(ctx, $"{e.AuthorName} is gifting", cardCX, margin + cardH * 0.52, cardH * 0.11, FontWeights.SemiBold, White, cardW * 0.9);
|
||||||
|
|
||||||
var chipCount = Math.Min(count, 6);
|
var chipCount = Math.Min(count, 6);
|
||||||
@@ -204,7 +205,7 @@ public sealed class AlertRenderer
|
|||||||
var chipX = cardCX + (i - slot) * gap;
|
var chipX = cardCX + (i - slot) * gap;
|
||||||
var chipY = margin + cardH * 0.70 + Math.Sin((i + t * 6) * 2.4) * cardH * 0.015;
|
var chipY = margin + cardH * 0.70 + Math.Sin((i + t * 6) * 2.4) * cardH * 0.015;
|
||||||
ctx.DrawRoundedRectangle(
|
ctx.DrawRoundedRectangle(
|
||||||
new SolidColorBrush(Color.FromRgb(0xff, 0xf3, 0xc4)),
|
new SolidColorBrush(OutputPalette.GoldPale),
|
||||||
null,
|
null,
|
||||||
new Rect(chipX - cardH * 0.05, chipY, cardH * 0.10, cardH * 0.10),
|
new Rect(chipX - cardH * 0.05, chipY, cardH * 0.10, cardH * 0.10),
|
||||||
cardH * 0.03, cardH * 0.03);
|
cardH * 0.03, cardH * 0.03);
|
||||||
@@ -252,10 +253,10 @@ public sealed class AlertRenderer
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DrawCentered(ctx, "GIFTED MEMBERSHIP", cardCX, margin + cardH * 0.22, cardH * 0.12, FontWeights.Bold, Color.FromRgb(0xff, 0xd1, 0x66), cardW * 0.9);
|
DrawCentered(ctx, "GIFTED MEMBERSHIP", cardCX, margin + cardH * 0.22, cardH * 0.12, FontWeights.Bold, OutputPalette.Gold, cardW * 0.9);
|
||||||
var giver = string.IsNullOrWhiteSpace(e.GifterName) ? e.AuthorName : e.GifterName;
|
var giver = string.IsNullOrWhiteSpace(e.GifterName) ? e.AuthorName : e.GifterName;
|
||||||
DrawCentered(ctx, giver, cardCX, margin + cardH * 0.42, cardH * 0.20, FontWeights.Bold, White, cardW * 0.9);
|
DrawCentered(ctx, giver, cardCX, margin + cardH * 0.42, cardH * 0.20, FontWeights.Bold, White, cardW * 0.9);
|
||||||
DrawCentered(ctx, "gave you a membership — celebrate!", cardCX, margin + cardH * 0.68, cardH * 0.11, FontWeights.Normal, Color.FromRgb(0xdb, 0xff, 0xf0), cardW * 0.9);
|
DrawCentered(ctx, "gave you a membership — celebrate!", cardCX, margin + cardH * 0.68, cardH * 0.11, FontWeights.Normal, OutputPalette.MintText, cardW * 0.9);
|
||||||
|
|
||||||
ctx.Pop();
|
ctx.Pop();
|
||||||
ctx.Pop();
|
ctx.Pop();
|
||||||
@@ -283,17 +284,17 @@ public sealed class AlertRenderer
|
|||||||
DrawBrand(ctx, margin, cardY, cardW, cardH);
|
DrawBrand(ctx, margin, cardY, cardW, cardH);
|
||||||
|
|
||||||
var hero = e.MilestoneMonths > 0 ? $"{e.MilestoneMonths}" : "MILESTONE";
|
var hero = e.MilestoneMonths > 0 ? $"{e.MilestoneMonths}" : "MILESTONE";
|
||||||
DrawCentered(ctx, hero, cardCX, cardY + cardH * 0.26, cardH * 0.30, FontWeights.Bold, Color.FromRgb(0xff, 0xdd, 0x66), cardW * 0.8);
|
DrawCentered(ctx, hero, cardCX, cardY + cardH * 0.26, cardH * 0.30, FontWeights.Bold, OutputPalette.GoldBright, cardW * 0.8);
|
||||||
|
|
||||||
var sub = e.MilestoneMonths > 0 ? "MONTHS STRONG" : "SUPPORTING THE STREAM";
|
var sub = e.MilestoneMonths > 0 ? "MONTHS STRONG" : "SUPPORTING THE STREAM";
|
||||||
DrawCentered(ctx, sub, cardCX, cardY + cardH * 0.52, cardH * 0.11, FontWeights.SemiBold, White, cardW * 0.9);
|
DrawCentered(ctx, sub, cardCX, cardY + cardH * 0.52, cardH * 0.11, FontWeights.SemiBold, White, cardW * 0.9);
|
||||||
DrawCentered(ctx, "— " + e.AuthorName + " —", cardCX, cardY + cardH * 0.70, cardH * 0.10, FontWeights.Normal, Color.FromRgb(0xff, 0xe8, 0xd0), cardW * 0.9);
|
DrawCentered(ctx, "— " + e.AuthorName + " —", cardCX, cardY + cardH * 0.70, cardH * 0.10, FontWeights.Normal, OutputPalette.WarmCream, cardW * 0.9);
|
||||||
|
|
||||||
// Tenure bar: grows through the first half, retracts on exit.
|
// Tenure bar: grows through the first half, retracts on exit.
|
||||||
var barP = Clamp01((t - 0.10) / 0.55) * (1 - exit);
|
var barP = Clamp01((t - 0.10) / 0.55) * (1 - exit);
|
||||||
var barW = cardW * 0.6 * barP;
|
var barW = cardW * 0.6 * barP;
|
||||||
ctx.DrawRoundedRectangle(
|
ctx.DrawRoundedRectangle(
|
||||||
new SolidColorBrush(Color.FromRgb(0xff, 0xd1, 0x66)),
|
new SolidColorBrush(OutputPalette.Gold),
|
||||||
null,
|
null,
|
||||||
new Rect(cardCX - barW / 2, cardY + cardH * 0.84, barW, cardH * 0.045),
|
new Rect(cardCX - barW / 2, cardY + cardH * 0.84, barW, cardH * 0.045),
|
||||||
4, 4);
|
4, 4);
|
||||||
@@ -313,7 +314,7 @@ public sealed class AlertRenderer
|
|||||||
{
|
{
|
||||||
var formatted = new FormattedText(
|
var formatted = new FormattedText(
|
||||||
Brand, Invariant, FlowDirection.LeftToRight,
|
Brand, Invariant, FlowDirection.LeftToRight,
|
||||||
new Typeface(new FontFamily("Segoe UI"), FontStyles.Normal, FontWeights.Normal, FontStretches.Normal),
|
new Typeface(OutputPalette.Sans, FontStyles.Normal, FontWeights.Normal, FontStretches.Normal),
|
||||||
Math.Max(9, h * 0.055),
|
Math.Max(9, h * 0.055),
|
||||||
new SolidColorBrush(Color.FromArgb(0x88, 0xff, 0xff, 0xff)),
|
new SolidColorBrush(Color.FromArgb(0x88, 0xff, 0xff, 0xff)),
|
||||||
96.0);
|
96.0);
|
||||||
@@ -324,7 +325,7 @@ public sealed class AlertRenderer
|
|||||||
{
|
{
|
||||||
var formatted = new FormattedText(
|
var formatted = new FormattedText(
|
||||||
text, Invariant, FlowDirection.LeftToRight,
|
text, Invariant, FlowDirection.LeftToRight,
|
||||||
new Typeface(new FontFamily("Segoe UI"), FontStyles.Normal, weight, FontStretches.Normal),
|
new Typeface(OutputPalette.Sans, FontStyles.Normal, weight, FontStretches.Normal),
|
||||||
size,
|
size,
|
||||||
new SolidColorBrush(color),
|
new SolidColorBrush(color),
|
||||||
96.0);
|
96.0);
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ public static class AlertTickerRenderer
|
|||||||
const double padX = 16;
|
const double padX = 16;
|
||||||
const double gap = 8;
|
const double gap = 8;
|
||||||
|
|
||||||
var font = new Typeface(new FontFamily("Segoe UI"), FontStyles.Normal, FontWeights.SemiBold, FontStretches.Normal);
|
var font = new Typeface(OutputPalette.Sans, FontStyles.Normal, FontWeights.SemiBold, FontStretches.Normal);
|
||||||
var ft = new FormattedText(text, CultureInfo.InvariantCulture, FlowDirection.LeftToRight,
|
var ft = new FormattedText(text, CultureInfo.InvariantCulture, FlowDirection.LeftToRight,
|
||||||
font, 22, Brushes.White, 1.0);
|
font, 22, Brushes.White, 1.0);
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ public static class AlertTickerRenderer
|
|||||||
{
|
{
|
||||||
var pill = new Rect(0, top, pillW, pillHeight);
|
var pill = new Rect(0, top, pillW, pillHeight);
|
||||||
dc.DrawRoundedRectangle(new SolidColorBrush(Color.FromArgb(0xE6, 0x10, 0x13, 0x24)), null, pill, pillHeight / 2, pillHeight / 2);
|
dc.DrawRoundedRectangle(new SolidColorBrush(Color.FromArgb(0xE6, 0x10, 0x13, 0x24)), null, pill, pillHeight / 2, pillHeight / 2);
|
||||||
dc.DrawRoundedRectangle(new SolidColorBrush(Color.FromRgb(0xe9, 0x45, 0x60)), null,
|
dc.DrawRoundedRectangle(new SolidColorBrush(OutputPalette.Live), null,
|
||||||
new Rect(padX, top + (pillHeight - 12) / 2.0, accentW, 12), 2, 2);
|
new Rect(padX, top + (pillHeight - 12) / 2.0, accentW, 12), 2, 2);
|
||||||
dc.DrawText(ft, new Point(padX + accentW + gap, textTop));
|
dc.DrawText(ft, new Point(padX + accentW + gap, textTop));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,8 +53,8 @@ public sealed class BrandFlashPresenter : IDisposable
|
|||||||
/// red and blue channels pushed in OPPOSITE directions — Maxon's "Chromatic Glow"
|
/// red and blue channels pushed in OPPOSITE directions — Maxon's "Chromatic Glow"
|
||||||
/// notes the green channel is all but invisible behind white text once R and B are
|
/// notes the green channel is all but invisible behind white text once R and B are
|
||||||
/// split, which is exactly the look.</summary>
|
/// split, which is exactly the look.</summary>
|
||||||
private static readonly Color NeonRed = Color.FromRgb(0xe9, 0x45, 0x60); // brand red, exact
|
private static readonly Color NeonRed = OutputPalette.NeonRed; // one red: the standard live red
|
||||||
private static readonly Color NeonBlue = Color.FromRgb(0x4d, 0x8b, 0xff); // brand blue #0f3460 lifted for luminance
|
private static readonly Color NeonBlue = OutputPalette.NeonBlue; // lifted for luminance against video
|
||||||
private static readonly Color CoreColor = Colors.White;
|
private static readonly Color CoreColor = Colors.White;
|
||||||
|
|
||||||
/// <summary>Font size chosen so the credit spans roughly half the master width:
|
/// <summary>Font size chosen so the credit spans roughly half the master width:
|
||||||
@@ -354,7 +354,7 @@ public sealed class BrandFlashPresenter : IDisposable
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
var font = new Typeface(new FontFamily("Segoe UI"), FontStyles.Normal,
|
var font = new Typeface(OutputPalette.Sans, FontStyles.Normal,
|
||||||
FontWeights.Bold, FontStretches.Normal);
|
FontWeights.Bold, FontStretches.Normal);
|
||||||
var probe = new FormattedText(text, CultureInfo.InvariantCulture,
|
var probe = new FormattedText(text, CultureInfo.InvariantCulture,
|
||||||
FlowDirection.LeftToRight, font, FontSize, Brushes.White, 1.0);
|
FlowDirection.LeftToRight, font, FontSize, Brushes.White, 1.0);
|
||||||
|
|||||||
@@ -0,0 +1,80 @@
|
|||||||
|
using System.Windows.Media;
|
||||||
|
|
||||||
|
namespace ytLive.Services.Compositor;
|
||||||
|
|
||||||
|
/// <summary>The colours and typefaces the ON-STREAM graphics paint with.
|
||||||
|
///
|
||||||
|
/// <para>Why this exists rather than reading <c>Themes/Tokens.xaml</c>: the renderers run on the
|
||||||
|
/// frame-pump thread and must never touch application resources or a dispatcher. They need frozen
|
||||||
|
/// values they can read from any thread.</para>
|
||||||
|
///
|
||||||
|
/// <para>Two groups live here, deliberately separated:</para>
|
||||||
|
/// <list type="bullet">
|
||||||
|
/// <item><b>Brand tokens</b> — a mirror of DESIGN.md. <c>OutputPaletteTests</c> parses the design
|
||||||
|
/// document and fails if any of these drifts from the theme, so the duplication cannot rot.</item>
|
||||||
|
/// <item><b>Event accents</b> — the alert box's own six-event colour language (gold for Super
|
||||||
|
/// Chats, violet for members, …). These are content, not chrome: the design standard has no
|
||||||
|
/// purple and should not grow one, but they still belong in ONE place instead of 57 scattered
|
||||||
|
/// literals.</item>
|
||||||
|
/// </list></summary>
|
||||||
|
public static class OutputPalette
|
||||||
|
{
|
||||||
|
// ─── Brand tokens (must equal Themes/Tokens.xaml; guarded) ────────────────
|
||||||
|
public static readonly Color Live = Color.FromRgb(0xff, 0x54, 0x51); // primary
|
||||||
|
public static readonly Color LiveDark = Color.FromRgb(0xb9, 0x1a, 0x24); // primary-container
|
||||||
|
public static readonly Color Amber = Color.FromRgb(0xff, 0xb9, 0x5f); // secondary
|
||||||
|
public static readonly Color Attention = Color.FromRgb(0xff, 0x8c, 0x3a);
|
||||||
|
public static readonly Color Positive = Color.FromRgb(0x22, 0xc5, 0x5e);
|
||||||
|
public static readonly Color Error = Color.FromRgb(0xef, 0x44, 0x44);
|
||||||
|
public static readonly Color ErrorSurface = Color.FromRgb(0x93, 0x00, 0x0a);
|
||||||
|
public static readonly Color Tertiary = Color.FromRgb(0x38, 0xbd, 0xf8);
|
||||||
|
public static readonly Color TextPrimary = Color.FromRgb(0xda, 0xe2, 0xfd);
|
||||||
|
public static readonly Color TextMuted = Color.FromRgb(0x94, 0xa3, 0xb8);
|
||||||
|
public static readonly Color Background = Color.FromRgb(0x0b, 0x13, 0x26);
|
||||||
|
public static readonly Color Surface = Color.FromRgb(0x17, 0x1f, 0x33);
|
||||||
|
public static readonly Color SurfaceHigh = Color.FromRgb(0x22, 0x2a, 0x3d);
|
||||||
|
public static readonly Color Outline = Color.FromRgb(0x33, 0x41, 0x55);
|
||||||
|
|
||||||
|
// ─── Alert event accents (content language, not chrome) ───────────────────
|
||||||
|
public static readonly Color Gold = Color.FromRgb(0xff, 0xd1, 0x66);
|
||||||
|
public static readonly Color GoldBright = Color.FromRgb(0xff, 0xdd, 0x66);
|
||||||
|
public static readonly Color GoldPale = Color.FromRgb(0xff, 0xf3, 0xc4);
|
||||||
|
public static readonly Color WarmCream = Color.FromRgb(0xff, 0xe8, 0xd0);
|
||||||
|
public static readonly Color Pink = Color.FromRgb(0xff, 0xb3, 0xd9);
|
||||||
|
public static readonly Color Lilac = Color.FromRgb(0xf5, 0xd0, 0xfe);
|
||||||
|
public static readonly Color Crimson = Color.FromRgb(0xf4, 0x2f, 0x5f);
|
||||||
|
public static readonly Color MintText = Color.FromRgb(0xdb, 0xff, 0xf0);
|
||||||
|
public static readonly Color Violet = Color.FromRgb(0xa7, 0x8b, 0xfa);
|
||||||
|
|
||||||
|
/// <summary>The branding flash's halo channels. Red is the standard live red — one red in the
|
||||||
|
/// product, including the credit — and the blue is lifted for luminance against a video feed.</summary>
|
||||||
|
public static readonly Color NeonRed = Live;
|
||||||
|
public static readonly Color NeonBlue = Color.FromRgb(0x4d, 0x8b, 0xff);
|
||||||
|
|
||||||
|
// ─── Typefaces ───────────────────────────────────────────────────────────
|
||||||
|
/// <summary>Bundled families (OFL). Resolved from the pack folder so on-stream graphics wear
|
||||||
|
/// the same faces as the UI; a failure falls back to the system face rather than throwing
|
||||||
|
/// inside a render tick.</summary>
|
||||||
|
private static readonly System.Lazy<FontFamily> SansFamily = new(() => Family("Inter"));
|
||||||
|
private static readonly System.Lazy<FontFamily> MonoFamily = new(() => Family("JetBrains Mono"));
|
||||||
|
|
||||||
|
public static FontFamily Sans => SansFamily.Value;
|
||||||
|
public static FontFamily Mono => MonoFamily.Value;
|
||||||
|
|
||||||
|
/// <summary>The pack scheme only exists once WPF has registered it, so a static initializer
|
||||||
|
/// must not build a pack URI: it throws a TypeInitializationException in any host without an
|
||||||
|
/// Application (exactly what the first version did in the test process). Fall back to the
|
||||||
|
/// family name, which resolves from the bundled resource or the system face.</summary>
|
||||||
|
private static FontFamily Family(string name)
|
||||||
|
{
|
||||||
|
try { return new FontFamily(new System.Uri("pack://application:,,,/"), "/Assets/Fonts/#" + name); }
|
||||||
|
catch (System.Exception) { return new FontFamily(name); }
|
||||||
|
}
|
||||||
|
|
||||||
|
public static SolidColorBrush Brush(Color colour)
|
||||||
|
{
|
||||||
|
var brush = new SolidColorBrush(colour);
|
||||||
|
brush.Freeze();
|
||||||
|
return brush;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -33,8 +33,11 @@ public static class SocialBarRenderer
|
|||||||
public const int Width = 1920;
|
public const int Width = 1920;
|
||||||
|
|
||||||
/// <summary>Returns the strip frame, or null when there is nothing to render.</summary>
|
/// <summary>Returns the strip frame, or null when there is nothing to render.</summary>
|
||||||
public static VideoFrame? Render(IEnumerable<SocialEntry>? entries)
|
public static VideoFrame? Render(IEnumerable<SocialEntry>? entries, SocialBarStyle? style = null)
|
||||||
{
|
{
|
||||||
|
var look = style ?? SocialBarStyle.Default;
|
||||||
|
var textBrush = look.TextBrush;
|
||||||
|
var glyphEffect = look.TextShadow ? ShadowEffect() : null;
|
||||||
var list = entries?.Where(e => e != null).ToList();
|
var list = entries?.Where(e => e != null).ToList();
|
||||||
if (list == null || list.Count == 0) return null;
|
if (list == null || list.Count == 0) return null;
|
||||||
|
|
||||||
@@ -51,7 +54,8 @@ public static class SocialBarRenderer
|
|||||||
item.Children.Add(new Path
|
item.Children.Add(new Path
|
||||||
{
|
{
|
||||||
Data = Geometry.Parse(entry.LogoData),
|
Data = Geometry.Parse(entry.LogoData),
|
||||||
Fill = Brushes.White,
|
Fill = textBrush,
|
||||||
|
Effect = glyphEffect,
|
||||||
Width = 24,
|
Width = 24,
|
||||||
Height = 24,
|
Height = 24,
|
||||||
Stretch = Stretch.Uniform,
|
Stretch = Stretch.Uniform,
|
||||||
@@ -60,7 +64,8 @@ public static class SocialBarRenderer
|
|||||||
item.Children.Add(new TextBlock
|
item.Children.Add(new TextBlock
|
||||||
{
|
{
|
||||||
Text = entry.Handle,
|
Text = entry.Handle,
|
||||||
Foreground = Brushes.White,
|
Foreground = textBrush,
|
||||||
|
Effect = glyphEffect,
|
||||||
FontSize = 14,
|
FontSize = 14,
|
||||||
VerticalAlignment = VerticalAlignment.Center,
|
VerticalAlignment = VerticalAlignment.Center,
|
||||||
Margin = new Thickness(8, 0, 0, 0),
|
Margin = new Thickness(8, 0, 0, 0),
|
||||||
@@ -77,7 +82,22 @@ public static class SocialBarRenderer
|
|||||||
Effect = new DropShadowEffect { Color = Color.FromRgb(0x2e, 0xcc, 0x71), BlurRadius = 18, ShadowDepth = 0, Opacity = 0.9 },
|
Effect = new DropShadowEffect { Color = Color.FromRgb(0x2e, 0xcc, 0x71), BlurRadius = 18, ShadowDepth = 0, Opacity = 0.9 },
|
||||||
};
|
};
|
||||||
var centered = new Grid { HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, GlowPad, 0, 0) };
|
var centered = new Grid { HorizontalAlignment = HorizontalAlignment.Center, Margin = new Thickness(0, GlowPad, 0, 0) };
|
||||||
centered.Children.Add(row);
|
if (look.BackgroundEnabled)
|
||||||
|
{
|
||||||
|
// The plate hugs the entries, so it reads as a caption bar rather than a band across
|
||||||
|
// the frame; 20px radius matches the pill language used elsewhere.
|
||||||
|
centered.Children.Add(new Border
|
||||||
|
{
|
||||||
|
Background = look.BackgroundBrush,
|
||||||
|
CornerRadius = new CornerRadius(20),
|
||||||
|
Padding = new Thickness(18, 6, 18, 6),
|
||||||
|
Child = row,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
centered.Children.Add(row);
|
||||||
|
}
|
||||||
container.Children.Add(centered);
|
container.Children.Add(centered);
|
||||||
|
|
||||||
container.Measure(new Size(Width, height));
|
container.Measure(new Size(Width, height));
|
||||||
@@ -102,4 +122,52 @@ public static class SocialBarRenderer
|
|||||||
|
|
||||||
return new VideoFrame(Width, height, pixels);
|
return new VideoFrame(Width, height, pixels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static DropShadowEffect ShadowEffect() => new()
|
||||||
|
{
|
||||||
|
Color = Colors.Black,
|
||||||
|
BlurRadius = 4,
|
||||||
|
ShadowDepth = 2,
|
||||||
|
Direction = 315,
|
||||||
|
Opacity = 0.85,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>How the social bar is painted (creator request 2026-10-30: text colour, an optional
|
||||||
|
/// plate with its own colour and opacity, and a text drop shadow).
|
||||||
|
///
|
||||||
|
/// <para>It is a separate value type, not <see cref="SocialsConfig"/>, so the renderer stays a
|
||||||
|
/// pure function of "entries + look" and the preview/output can never read a half-applied
|
||||||
|
/// config mid-edit.</para></summary>
|
||||||
|
public readonly record struct SocialBarStyle(
|
||||||
|
string TextColor,
|
||||||
|
bool BackgroundEnabled,
|
||||||
|
string BackgroundColor,
|
||||||
|
double BackgroundOpacity,
|
||||||
|
bool TextShadow)
|
||||||
|
{
|
||||||
|
public static SocialBarStyle Default => new("#FFFFFF", false, "#000000", 0.55, false);
|
||||||
|
|
||||||
|
public static SocialBarStyle From(SocialsConfig? config) => config is null
|
||||||
|
? Default
|
||||||
|
: new(config.BarTextColor, config.BarBackgroundEnabled, config.BarBackgroundColor,
|
||||||
|
config.BarBackgroundOpacity, config.BarTextShadow);
|
||||||
|
|
||||||
|
/// <summary>Glyph colour. A malformed hex falls back to white rather than throwing inside a
|
||||||
|
/// render tick — a bad colour must never kill the output.</summary>
|
||||||
|
public SolidColorBrush TextBrush => Solid(TextColor, 1.0, Colors.White);
|
||||||
|
|
||||||
|
/// <summary>Plate colour carrying the configured opacity in its alpha.</summary>
|
||||||
|
public SolidColorBrush BackgroundBrush
|
||||||
|
=> Solid(BackgroundColor, Math.Clamp(BackgroundOpacity, 0, 1), Colors.Black);
|
||||||
|
|
||||||
|
private static SolidColorBrush Solid(string hex, double opacity, Color fallback)
|
||||||
|
{
|
||||||
|
Color colour;
|
||||||
|
try { colour = (Color)ColorConverter.ConvertFromString(hex); }
|
||||||
|
catch (Exception) { colour = fallback; }
|
||||||
|
var brush = new SolidColorBrush(Color.FromArgb((byte)Math.Round(opacity * 255), colour.R, colour.G, colour.B));
|
||||||
|
brush.Freeze();
|
||||||
|
return brush;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,11 @@ public partial class LayoutStore : IDisposable
|
|||||||
|
|
||||||
using (var cmd = _connection.CreateCommand())
|
using (var cmd = _connection.CreateCommand())
|
||||||
{
|
{
|
||||||
cmd.CommandText = "SELECT Id, BarPosition, BarEnabled FROM Socials LIMIT 1;";
|
cmd.CommandText = """
|
||||||
|
SELECT Id, BarPosition, BarEnabled, TextColor, BackgroundEnabled,
|
||||||
|
BackgroundColor, BackgroundOpacity, TextShadow
|
||||||
|
FROM Socials LIMIT 1;
|
||||||
|
""";
|
||||||
using var reader = cmd.ExecuteReader();
|
using var reader = cmd.ExecuteReader();
|
||||||
if (reader.Read())
|
if (reader.Read())
|
||||||
{
|
{
|
||||||
@@ -58,6 +62,11 @@ public partial class LayoutStore : IDisposable
|
|||||||
{
|
{
|
||||||
BarPosition = Enum.TryParse<SocialBarPosition>(reader.GetString(1), out var pos) ? pos : SocialBarPosition.Bottom,
|
BarPosition = Enum.TryParse<SocialBarPosition>(reader.GetString(1), out var pos) ? pos : SocialBarPosition.Bottom,
|
||||||
BarEnabled = reader.FieldCount > 2 && !reader.IsDBNull(2) && reader.GetInt32(2) != 0,
|
BarEnabled = reader.FieldCount > 2 && !reader.IsDBNull(2) && reader.GetInt32(2) != 0,
|
||||||
|
BarTextColor = reader.FieldCount > 3 && !reader.IsDBNull(3) ? reader.GetString(3) : "#FFFFFF",
|
||||||
|
BarBackgroundEnabled = reader.FieldCount > 4 && !reader.IsDBNull(4) && reader.GetInt32(4) != 0,
|
||||||
|
BarBackgroundColor = reader.FieldCount > 5 && !reader.IsDBNull(5) ? reader.GetString(5) : "#000000",
|
||||||
|
BarBackgroundOpacity = reader.FieldCount > 6 && !reader.IsDBNull(6) ? reader.GetDouble(6) : 0.55,
|
||||||
|
BarTextShadow = reader.FieldCount > 7 && !reader.IsDBNull(7) && reader.GetInt32(7) != 0,
|
||||||
};
|
};
|
||||||
var socialsId = reader.GetString(0);
|
var socialsId = reader.GetString(0);
|
||||||
|
|
||||||
|
|||||||
@@ -591,11 +591,23 @@ public partial class LayoutStore : IDisposable
|
|||||||
columns.Add(reader.GetString(1));
|
columns.Add(reader.GetString(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (columns.Contains("BarEnabled")) return;
|
// Each column is added on its own, guarded by presence — the same idempotent pattern the
|
||||||
|
// webcam table uses, so a half-migrated DB heals instead of failing.
|
||||||
|
AddColumnIfMissing("BarEnabled", "INTEGER NOT NULL DEFAULT 1");
|
||||||
|
AddColumnIfMissing("TextColor", "TEXT NOT NULL DEFAULT '#FFFFFF'");
|
||||||
|
AddColumnIfMissing("BackgroundEnabled", "INTEGER NOT NULL DEFAULT 0");
|
||||||
|
AddColumnIfMissing("BackgroundColor", "TEXT NOT NULL DEFAULT '#000000'");
|
||||||
|
AddColumnIfMissing("BackgroundOpacity", "REAL NOT NULL DEFAULT 0.55");
|
||||||
|
AddColumnIfMissing("TextShadow", "INTEGER NOT NULL DEFAULT 0");
|
||||||
|
|
||||||
using var alter = _connection.CreateCommand();
|
void AddColumnIfMissing(string name, string spec)
|
||||||
alter.CommandText = "ALTER TABLE Socials ADD COLUMN BarEnabled INTEGER NOT NULL DEFAULT 1;";
|
{
|
||||||
alter.ExecuteNonQuery();
|
if (columns.Contains(name)) return;
|
||||||
|
using var alter = _connection.CreateCommand();
|
||||||
|
alter.CommandText = $"ALTER TABLE Socials ADD COLUMN {name} {spec};";
|
||||||
|
alter.ExecuteNonQuery();
|
||||||
|
columns.Add(name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// v8 → v9: SocialEntry gains Software (the fediverse instance's nodeinfo
|
// v8 → v9: SocialEntry gains Software (the fediverse instance's nodeinfo
|
||||||
|
|||||||
@@ -314,11 +314,20 @@ public partial class LayoutStore : IDisposable
|
|||||||
var socialsId = Guid.NewGuid().ToString();
|
var socialsId = Guid.NewGuid().ToString();
|
||||||
using (var cmd = _connection.CreateCommand())
|
using (var cmd = _connection.CreateCommand())
|
||||||
{
|
{
|
||||||
cmd.CommandText = "INSERT INTO Socials (Id, BarPosition, BarEnabled) VALUES ($id, $pos, $enabled);";
|
cmd.CommandText = """
|
||||||
|
INSERT INTO Socials (Id, BarPosition, BarEnabled, TextColor, BackgroundEnabled,
|
||||||
|
BackgroundColor, BackgroundOpacity, TextShadow)
|
||||||
|
VALUES ($id, $pos, $enabled, $text, $bgen, $bg, $bgopacity, $shadow);
|
||||||
|
""";
|
||||||
cmd.Transaction = tx;
|
cmd.Transaction = tx;
|
||||||
cmd.Parameters.AddWithValue("$id", socialsId);
|
cmd.Parameters.AddWithValue("$id", socialsId);
|
||||||
cmd.Parameters.AddWithValue("$pos", socials.BarPosition.ToString());
|
cmd.Parameters.AddWithValue("$pos", socials.BarPosition.ToString());
|
||||||
cmd.Parameters.AddWithValue("$enabled", socials.BarEnabled ? 1 : 0);
|
cmd.Parameters.AddWithValue("$enabled", socials.BarEnabled ? 1 : 0);
|
||||||
|
cmd.Parameters.AddWithValue("$text", socials.BarTextColor);
|
||||||
|
cmd.Parameters.AddWithValue("$bgen", socials.BarBackgroundEnabled ? 1 : 0);
|
||||||
|
cmd.Parameters.AddWithValue("$bg", socials.BarBackgroundColor);
|
||||||
|
cmd.Parameters.AddWithValue("$bgopacity", socials.BarBackgroundOpacity);
|
||||||
|
cmd.Parameters.AddWithValue("$shadow", socials.BarTextShadow ? 1 : 0);
|
||||||
cmd.ExecuteNonQuery();
|
cmd.ExecuteNonQuery();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,10 +20,10 @@ public sealed class NotificationService : INotificationService
|
|||||||
internal static readonly IReadOnlyDictionary<AppNotificationSeverity, (string BackgroundHex, double ExpirationSeconds)> Cards
|
internal static readonly IReadOnlyDictionary<AppNotificationSeverity, (string BackgroundHex, double ExpirationSeconds)> Cards
|
||||||
= new Dictionary<AppNotificationSeverity, (string, double)>
|
= new Dictionary<AppNotificationSeverity, (string, double)>
|
||||||
{
|
{
|
||||||
[AppNotificationSeverity.Info] = ("#3a3b52", 4),
|
[AppNotificationSeverity.Info] = (ThemeBrush.Hex("Brush.InfoContainer"), 4),
|
||||||
[AppNotificationSeverity.Success] = ("#1d5c38", 4),
|
[AppNotificationSeverity.Success] = (ThemeBrush.Hex("Brush.SuccessContainer"), 4),
|
||||||
[AppNotificationSeverity.Warning] = ("#b8860b", 8),
|
[AppNotificationSeverity.Warning] = (ThemeBrush.Hex("Brush.WarningContainer"), 8),
|
||||||
[AppNotificationSeverity.Error] = ("#8f1f1f", 0),
|
[AppNotificationSeverity.Error] = (ThemeBrush.Hex("Brush.ErrorContainer"), 0),
|
||||||
};
|
};
|
||||||
|
|
||||||
private readonly NotificationManager _manager = new();
|
private readonly NotificationManager _manager = new();
|
||||||
@@ -54,7 +54,7 @@ public sealed class NotificationService : INotificationService
|
|||||||
.Create(title, message)
|
.Create(title, message)
|
||||||
.InArea(AreaName)
|
.InArea(AreaName)
|
||||||
.WithBackground(NotificationColor.FromHex(backgroundHex))
|
.WithBackground(NotificationColor.FromHex(backgroundHex))
|
||||||
.WithForeground(NotificationColor.FromHex("#FFFFFF"));
|
.WithForeground(NotificationColor.FromHex(ThemeBrush.Hex("Brush.OnSurface")));
|
||||||
|
|
||||||
if (severity == AppNotificationSeverity.Error)
|
if (severity == AppNotificationSeverity.Error)
|
||||||
builder.NeverExpires();
|
builder.NeverExpires();
|
||||||
|
|||||||
+55
-16
@@ -1,4 +1,4 @@
|
|||||||
<UserControl x:Class="ytLive.SocialsDialog"
|
<UserControl x:Class="ytLive.SocialsDialog"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
|
|
||||||
@@ -18,26 +18,65 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<TextBlock Grid.Row="0" Text="Social Media Site Promotion" FontSize="18" FontWeight="Bold"
|
<TextBlock Grid.Row="0" Text="Social Media Site Promotion" FontSize="18" FontWeight="Bold"
|
||||||
Foreground="#e0e0e0" Margin="0,0,0,12"/>
|
Foreground="{StaticResource Brush.OnSurface}" Margin="0,0,0,12"/>
|
||||||
|
|
||||||
<!-- Show/hide the bar on the stream -->
|
<!-- Show/hide the bar on the stream + how it is painted -->
|
||||||
<CheckBox Grid.Row="1" IsChecked="{Binding BarEnabled}" Style="{StaticResource YtCheckBox}" Margin="0,0,0,10">
|
<StackPanel Grid.Row="1" Margin="0,0,0,10">
|
||||||
<TextBlock Text="Show the social bar on the stream" Foreground="#e0e0e0" FontSize="13"/>
|
<CheckBox IsChecked="{Binding BarEnabled}" Style="{StaticResource YtCheckBox}">
|
||||||
</CheckBox>
|
<TextBlock Text="Show the social bar on the stream" Foreground="{StaticResource Brush.OnSurface}" FontSize="13"/>
|
||||||
|
</CheckBox>
|
||||||
|
|
||||||
|
<StackPanel Margin="18,6,0,0" IsEnabled="{Binding BarEnabled}">
|
||||||
|
<DockPanel Margin="0,2,0,0">
|
||||||
|
<TextBlock DockPanel.Dock="Left" Text="Text colour" VerticalAlignment="Center"
|
||||||
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" Width="96"/>
|
||||||
|
<ComboBox Style="{StaticResource YtComboBox}" Height="24" FontSize="11"
|
||||||
|
ItemsSource="{Binding ColorOptions}" DisplayMemberPath="Name"
|
||||||
|
SelectedValuePath="Hex" SelectedValue="{Binding BarTextColor, Mode=TwoWay}"/>
|
||||||
|
</DockPanel>
|
||||||
|
|
||||||
|
<CheckBox IsChecked="{Binding BarBackgroundEnabled}" Style="{StaticResource YtCheckBox}" Margin="0,8,0,0">
|
||||||
|
<TextBlock Text="Background plate" Foreground="{StaticResource Brush.OnSurface}" FontSize="12"/>
|
||||||
|
</CheckBox>
|
||||||
|
|
||||||
|
<StackPanel Margin="18,4,0,0" IsEnabled="{Binding BarBackgroundEnabled}">
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock DockPanel.Dock="Left" Text="Plate colour" VerticalAlignment="Center"
|
||||||
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" Width="96"/>
|
||||||
|
<ComboBox Style="{StaticResource YtComboBox}" Height="24" FontSize="11"
|
||||||
|
ItemsSource="{Binding ColorOptions}" DisplayMemberPath="Name"
|
||||||
|
SelectedValuePath="Hex" SelectedValue="{Binding BarBackgroundColor, Mode=TwoWay}"/>
|
||||||
|
</DockPanel>
|
||||||
|
<DockPanel Margin="0,6,0,0">
|
||||||
|
<TextBlock DockPanel.Dock="Left" Text="Opacity" VerticalAlignment="Center"
|
||||||
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" Width="96"/>
|
||||||
|
<TextBlock DockPanel.Dock="Right" VerticalAlignment="Center" Width="42" TextAlignment="Right"
|
||||||
|
Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11"
|
||||||
|
Text="{Binding BarBackgroundOpacity, StringFormat={}{0:P0}}"/>
|
||||||
|
<Slider Minimum="0" Maximum="1" SmallChange="0.05" LargeChange="0.1"
|
||||||
|
Value="{Binding BarBackgroundOpacity, Mode=TwoWay}" VerticalAlignment="Center"/>
|
||||||
|
</DockPanel>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<CheckBox IsChecked="{Binding BarTextShadow}" Style="{StaticResource YtCheckBox}" Margin="0,8,0,0">
|
||||||
|
<TextBlock Text="Text drop shadow" Foreground="{StaticResource Brush.OnSurface}" FontSize="12"/>
|
||||||
|
</CheckBox>
|
||||||
|
</StackPanel>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
<!-- Sign-in gate: the first slot is always your YouTube channel -->
|
<!-- Sign-in gate: the first slot is always your YouTube channel -->
|
||||||
<Border Grid.Row="2" Background="#16213e" CornerRadius="5" Padding="10,8" Margin="0,0,0,10"
|
<Border Grid.Row="2" Background="{StaticResource Brush.SurfaceContainer}" CornerRadius="5" Padding="10,8" Margin="0,0,0,10"
|
||||||
Visibility="{Binding ShowSignInBanner, Converter={StaticResource BoolToVis}}">
|
Visibility="{Binding ShowSignInBanner, Converter={StaticResource BoolToVis}}">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock Text="Sign in to YouTube first — the first slot is your channel."
|
<TextBlock Text="Sign in to YouTube first — the first slot is your channel."
|
||||||
Foreground="#e0e0e0" FontSize="12" TextWrapping="Wrap"/>
|
Foreground="{StaticResource Brush.OnSurface}" FontSize="12" TextWrapping="Wrap"/>
|
||||||
<Button Content="Sign in to YouTube" Command="{Binding SignInCommand}"
|
<Button Content="Sign in to YouTube" Command="{Binding SignInCommand}"
|
||||||
Style="{StaticResource YtButtonSecondary}" HorizontalAlignment="Left"
|
Style="{StaticResource YtButtonSecondary}" HorizontalAlignment="Left"
|
||||||
Margin="0,8,0,0" Padding="12,4" FontSize="11"/>
|
Margin="0,8,0,0" Padding="12,4" FontSize="11"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
<TextBlock Grid.Row="2" Text="Signing in… open the browser to authorize, then come back here."
|
<TextBlock Grid.Row="2" Text="Signing in… open the browser to authorize, then come back here."
|
||||||
Foreground="#e94560" FontSize="12" Margin="0,0,0,10"
|
Foreground="{StaticResource Brush.Error}" FontSize="12" Margin="0,0,0,10"
|
||||||
Visibility="{Binding IsBusy, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding IsBusy, Converter={StaticResource BoolToVis}}"/>
|
||||||
|
|
||||||
<!-- The six fixed slots -->
|
<!-- The six fixed slots -->
|
||||||
@@ -54,17 +93,17 @@
|
|||||||
|
|
||||||
<!-- Service icon: logo, lock (Premium) or do-not (empty/invalid) -->
|
<!-- Service icon: logo, lock (Premium) or do-not (empty/invalid) -->
|
||||||
<Border Grid.Column="0" Width="30" Height="30" CornerRadius="15"
|
<Border Grid.Column="0" Width="30" Height="30" CornerRadius="15"
|
||||||
Background="#16213e" HorizontalAlignment="Left" VerticalAlignment="Top">
|
Background="{StaticResource Brush.SurfaceContainer}" HorizontalAlignment="Left" VerticalAlignment="Top">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Path Data="{Binding LogoData}" Fill="White" Stretch="Uniform"
|
<Path Data="{Binding LogoData}" Fill="White" Stretch="Uniform"
|
||||||
Width="15" Height="15" HorizontalAlignment="Center"
|
Width="15" Height="15" HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Visibility="{Binding ShowLogo, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding ShowLogo, Converter={StaticResource BoolToVis}}"/>
|
||||||
<Path Data="{Binding LockedIconData}" Fill="#8a93a8" Stretch="Uniform"
|
<Path Data="{Binding LockedIconData}" Fill="{StaticResource Brush.OnSurfaceVariant}" Stretch="Uniform"
|
||||||
Width="15" Height="15" HorizontalAlignment="Center"
|
Width="15" Height="15" HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Visibility="{Binding IsLocked, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding IsLocked, Converter={StaticResource BoolToVis}}"/>
|
||||||
<Path Data="{Binding DoNotIconData}" Fill="#5a5a6e" Stretch="Uniform"
|
<Path Data="{Binding DoNotIconData}" Fill="{StaticResource Brush.OnSurfaceDisabled}" Stretch="Uniform"
|
||||||
Width="15" Height="15" HorizontalAlignment="Center"
|
Width="15" Height="15" HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Visibility="{Binding ShowDoNot, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding ShowDoNot, Converter={StaticResource BoolToVis}}"/>
|
||||||
@@ -73,7 +112,7 @@
|
|||||||
|
|
||||||
<!-- Handle text / edit box / status -->
|
<!-- Handle text / edit box / status -->
|
||||||
<Grid Grid.Column="1" Margin="10,0,8,0">
|
<Grid Grid.Column="1" Margin="10,0,8,0">
|
||||||
<TextBlock Text="{Binding DisplayText}" Foreground="#e0e0e0" FontSize="14"
|
<TextBlock Text="{Binding DisplayText}" Foreground="{StaticResource Brush.OnSurface}" FontSize="14"
|
||||||
VerticalAlignment="Top" Margin="0,6,0,0"
|
VerticalAlignment="Top" Margin="0,6,0,0"
|
||||||
TextTrimming="CharacterEllipsis"
|
TextTrimming="CharacterEllipsis"
|
||||||
Visibility="{Binding ShowDisplay, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding ShowDisplay, Converter={StaticResource BoolToVis}}"/>
|
||||||
@@ -81,10 +120,10 @@
|
|||||||
Style="{StaticResource YtTextBox}" FontSize="13"
|
Style="{StaticResource YtTextBox}" FontSize="13"
|
||||||
KeyDown="SocialEdit_KeyDown" LostFocus="SocialEdit_LostFocus"
|
KeyDown="SocialEdit_KeyDown" LostFocus="SocialEdit_LostFocus"
|
||||||
Visibility="{Binding ShowEditBox, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding ShowEditBox, Converter={StaticResource BoolToVis}}"/>
|
||||||
<TextBlock Text="{Binding Error}" Foreground="#e94560" FontSize="11"
|
<TextBlock Text="{Binding Error}" Foreground="{StaticResource Brush.Error}" FontSize="11"
|
||||||
TextWrapping="Wrap" Margin="0,32,0,0"
|
TextWrapping="Wrap" Margin="0,32,0,0"
|
||||||
Visibility="{Binding ShowError, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding ShowError, Converter={StaticResource BoolToVis}}"/>
|
||||||
<TextBlock Text="Checking…" Foreground="#a0a0b0" FontSize="11" Margin="0,32,0,0"
|
<TextBlock Text="Checking…" Foreground="{StaticResource Brush.OnSurfaceVariant}" FontSize="11" Margin="0,32,0,0"
|
||||||
Visibility="{Binding ShowBusy, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding ShowBusy, Converter={StaticResource BoolToVis}}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
@@ -105,7 +144,7 @@
|
|||||||
Visibility="{Binding ShowEditButton, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding ShowEditButton, Converter={StaticResource BoolToVis}}"/>
|
||||||
<Button Content="🗑️" Click="SlotDelete_Click" Tag="{Binding Index}"
|
<Button Content="🗑️" Click="SlotDelete_Click" Tag="{Binding Index}"
|
||||||
Style="{StaticResource IconButton}" Width="26" Height="26"
|
Style="{StaticResource IconButton}" Width="26" Height="26"
|
||||||
ToolTip="Remove" FontSize="12" Foreground="#e94560"
|
ToolTip="Remove" FontSize="12" Foreground="{StaticResource Brush.Error}"
|
||||||
Visibility="{Binding ShowDeleteButton, Converter={StaticResource BoolToVis}}"/>
|
Visibility="{Binding ShowDeleteButton, Converter={StaticResource BoolToVis}}"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -1,467 +1,66 @@
|
|||||||
# ytLlive — Task List
|
# TASKS — the active queue
|
||||||
|
|
||||||
> **Catalog:** task files live in [`TASKS/`](TASKS/) (one file per task). This file is the
|
> One line per live item; the detail lives in `TASKS/task-*.md`. Done work is in
|
||||||
> index. Memory-map conventions: [`schema.md`](schema.md); architecture/decisions: [`ai.md`](ai.md).
|
> [`TASKS/archive.md`](TASKS/archive.md) (2026-10-29 snapshot of the old catalogue). Retired
|
||||||
|
> decisions are in [`docs/ai/decisions.md`](docs/ai/decisions.md).
|
||||||
|
> Markers: ☐ queued · 🔶 in progress · ⏳ blocked · ⏸ deferred · ❌ retired.
|
||||||
|
|
||||||
> **Checklist markers** — every task's Status line uses the same states:
|
## Next up
|
||||||
> 1. ✅ — completed / shipped
|
|
||||||
> 2. 🔶 — in progress
|
|
||||||
> 3. ⏳ — blocked / waiting
|
|
||||||
> 4. ☐ — not started / queued
|
|
||||||
> 5. ❌ — exception (known-issue, deliberately excluded, or merged)
|
|
||||||
|
|
||||||
> **2026-09-01 — v1 = feature-complete ruling:** there is no v1.x. Everything queues to
|
**TASK 3·17 — the Text layer.** The `TextOverlay` source type exists as a placeholder and nothing
|
||||||
> v1 or to **"Out of product — permanently"** (file end). Read those two sections before
|
else does: `AddSource` creates it 0×0, all four compositor paths `continue` past it, `FramePump`'s
|
||||||
> adding or reviving anything here.
|
hash skips it, it is not draggable, and it has no text/font/colour properties or persistence.
|
||||||
|
The unit: text content, font family/size/weight/style, colour, alignment, drag/resize, persisted;
|
||||||
|
renderer mirrors `Services/ChatBoxRenderer.cs`. One Good Dog test.
|
||||||
|
|
||||||
---
|
## Queue
|
||||||
|
|
||||||
## Task catalog
|
| Task | Status | Scope | Detail |
|
||||||
|
|---|---|---|---|
|
||||||
|
| 3·17 | ☐ **NEXT** | **Text layer** — content, font family/size/weight/style, colour, alignment, drag/resize, persisted | [`task-03`](TASKS/task-03-capture-pipeline.md) |
|
||||||
|
| 21 | 🔶 | Media source: acquisition wiring + file picker + loop/volume UI (decoder, manager, pacing, loop all shipped — **no `AcquireAsync` caller exists**) | [`task-21`](TASKS/task-21-media-source.md) |
|
||||||
|
| — | ☐ | Transitions **Move**: per-layer carry-across-scenes flag, per-scene placement, fixed z band | [`ui-surface`](docs/ai/ui-surface.md) |
|
||||||
|
| 55·2–3 | ☐ | Disk hygiene: delete `%TEMP%` alert clips on close + sweep at startup; low-disk guard before REC (slice 1 shipped) | [`task-55`](TASKS/task-55-disk-hygiene.md) |
|
||||||
|
| 40·A/C/D | ☐ | App Settings: active-camera picker; persist output resolution + surface transition defaults + confirm-before-End; accent consolidation | [`task-40`](TASKS/task-40-app-settings-round.md) |
|
||||||
|
| 3·20 | ☐ | RewardEvent persistence: canonical `RewardEvents` table + `superChatEvents.list` 30-day backfill (the session report and journey read it) | [`task-03`](TASKS/task-03-capture-pipeline.md) |
|
||||||
|
| 32 | ☐ | Stream resilience: blip retry → measured grace + amber "RECONNECTING" → one-click Back on air → fragmented MP4 → ingest pre-flight | [`task-32`](TASKS/task-32-stream-resilience.md) |
|
||||||
|
| 33 | ☐ | Bandwidth auto step-down: pure policy over dropped-frame rate, one-way within a broadcast | [`task-33`](TASKS/task-33-bandwidth-step-down.md) |
|
||||||
|
| 34 | ☐ | Scheduled streams (Text-drawer version) | [`task-34`](TASKS/task-34-scheduled-streams.md) |
|
||||||
|
| 35 | ☐ | Scene-linked audio | [`task-35`](TASKS/task-35-scene-linked-audio.md) |
|
||||||
|
| 37 | ☐ | Defaults vs current layout split (build-id); enables one-click revert to defaults | [`task-37`](TASKS/task-37-defaults-current-split.md) |
|
||||||
|
| 39·2 | ☐ | YPP slice 2: Analytics scopes, watch-hours/Shorts velocity + ETA | [`task-39`](TASKS/task-39-ypp-journey-tracker.md) |
|
||||||
|
| 49 | ☐ | Chat profanity filter: local, opt-in, **non-persistent**, user-supplied word list | [`task-49`](TASKS/task-49-chat-profanity-filter.md) |
|
||||||
|
| 50 | ☐ | One-button publish of the local recording (resumable upload) | [`task-50`](TASKS/task-50-publish-recording.md) |
|
||||||
|
| 53 | ☐ | Output-format contract: pin every tier with a geometry test, prove 9:16 end-to-end, recorded file matches output | [`task-53`](TASKS/task-53-output-formats.md) |
|
||||||
|
| 54 | 🔶 | Marcom: free-forever copy live; merch POD + About links queued | [`task-54`](TASKS/task-54-marcom-free-merch.md) |
|
||||||
|
| 9·5 | ☐ | Webcam identity key reconciliation | [`task-09`](TASKS/task-09-live-stream-management.md) |
|
||||||
|
| 14 | 🔶 | Creator feedback batch — branch 3+ | [`task-14`](TASKS/task-14-creator-feedback-batch.md) |
|
||||||
|
| — | ☐ | Small: `StreamConfig` defaults (`TargetBitrate=6000`, `1920x1080`) are stale — the dropdown drives `StreamHealth` | this line |
|
||||||
|
| 36 | ☐ | **Gold pass** — the v1 gate, always the last unit (see 1.0 gates) | [`task-36`](TASKS/task-36-gold-pass.md) |
|
||||||
|
| 48 | ⏸ | Distribution & packaging — deferred to near-v1 (creator ruling 2026-10-26); route contradiction settled in one sweep then | [`task-48`](TASKS/task-48-distribution-msix.md) |
|
||||||
|
| 10 | ❌ | Retired with free-forever; a Polar teardown runs only if a paid tier ever returns | [`task-10`](TASKS/task-10-monetization.md) |
|
||||||
|
|
||||||
| # | Task | Status | File |
|
## Pending the creator's hands (not programming)
|
||||||
|---|------|--------|------|
|
|
||||||
| 01 | Initial Scaffold | ✅ Done | [`TASKS/task-01-initial-scaffold.md`](TASKS/task-01-initial-scaffold.md) |
|
|
||||||
| 02 | YouTube OAuth2 Authentication | ✅ Done | [`TASKS/task-02-oauth2-auth.md`](TASKS/task-02-oauth2-auth.md) |
|
|
||||||
| 03 | Capture Pipeline (Scenes/Sources) | 🔶 In progress — 27/30 items done; items 16, 17, 20 open | [`TASKS/task-03-capture-pipeline.md`](TASKS/task-03-capture-pipeline.md) |
|
|
||||||
| 04 | RTMP Ingest to YouTube | ✅ Done — all 7 items shipped | [`TASKS/task-04-rtmp-ingest.md`](TASKS/task-04-rtmp-ingest.md) |
|
|
||||||
| 05 | Layout Persistence (SQLite) | ✅ Done | [`TASKS/task-05-layout-persistence.md`](TASKS/task-05-layout-persistence.md) |
|
|
||||||
| 06 | UI polish batch | ✅ Done | [`TASKS/task-06-ui-polish-batch.md`](TASKS/task-06-ui-polish-batch.md) |
|
|
||||||
| 07 | Meter scaling amplification | ✅ Done | [`TASKS/task-07-meter-scaling.md`](TASKS/task-07-meter-scaling.md) |
|
|
||||||
| 08 | Audio milestone | ✅ SHIPPED 2026-08-14 | [`TASKS/task-08-audio-milestone.md`](TASKS/task-08-audio-milestone.md) |
|
|
||||||
| 09 | YouTube Live Stream Management | ⏳ In progress — items 1–3, 4 shipped; item 5 open; item 6 locked (TASK 36) | [`TASKS/task-09-live-stream-management.md`](TASKS/task-09-live-stream-management.md) |
|
|
||||||
| 10 | Monetization: watermark-only paid delta (branding flash) | 🔶 **TEARDOWN, not a build** — Polar deleted in favour of Store IAP (2026-09-27); `$10/mo` + `$400` lifetime, no annual. **SUPERSEDED 2026-10-08** — free-forever ruling (watermark-free, gratuity/merch only); see TASK 54 | [`TASKS/task-10-monetization.md`](TASKS/task-10-monetization.md) |
|
|
||||||
| 11 | Post-pause polish batch (creator's 8 review issues) | ✅ SHIPPED 2026-08-15 | [`TASKS/task-11-polish-batch.md`](TASKS/task-11-polish-batch.md) |
|
|
||||||
| 12 | Master limiter on the live mix | ✅ Shipped 2026-08-15 — `Services/Audio/MasterLimiter.cs` (−1 dBFS ceiling, instant attack, smoothed release) applied at the end of `AudioMixer.FillAndMix` | [`TASKS/task-12-master-limiter.md`](TASKS/task-12-master-limiter.md) |
|
|
||||||
| 13 | Social media launch kit | 🔶 Scoped — queued after v1 | [`TASKS/task-13-social-launch-kit.md`](TASKS/task-13-social-launch-kit.md) |
|
|
||||||
| 14 | Creator feedback batch | 🔶 In progress — Branch 2 shipped | [`TASKS/task-14-creator-feedback-batch.md`](TASKS/task-14-creator-feedback-batch.md) |
|
|
||||||
| 15 | Stock scene background images | ✅ Shipped | [`TASKS/task-15-scene-backgrounds.md`](TASKS/task-15-scene-backgrounds.md) |
|
|
||||||
| 16 | Kill infinity display | ✅ Shipped | [`TASKS/task-16-kill-infinity-display.md`](TASKS/task-16-kill-infinity-display.md) |
|
|
||||||
| 17 | Web source rendering (WebView2) | ✅ Done | [`TASKS/task-17-web-source-rendering.md`](TASKS/task-17-web-source-rendering.md) |
|
|
||||||
| 18 | Local recording | ✅ Shipped `a9eb360` (2026-08-29) | [`TASKS/task-18-local-recording.md`](TASKS/task-18-local-recording.md) |
|
|
||||||
| 19 | Scene transitions | MERGED → TASK 23 (Control Surface UX) | [`TASKS/task-19-scene-transitions.md`](TASKS/task-19-scene-transitions.md) |
|
|
||||||
| 20 | Hotkeys (keyboard shortcuts) | ✅ Done — shipped 2026-08-26 | [`TASKS/task-20-hotkeys.md`](TASKS/task-20-hotkeys.md) |
|
|
||||||
| 21 | Media source (video file playback) | 🔶 In progress — UI picker remaining | [`TASKS/task-21-media-source.md`](TASKS/task-21-media-source.md) |
|
|
||||||
| 22 | Audio sync offset | ✅ Done (2026-08-31) | [`TASKS/task-22-audio-sync-offset.md`](TASKS/task-22-audio-sync-offset.md) |
|
|
||||||
| 23 | Studio mode | MERGED → TASK 23 (Control Surface UX) | [`TASKS/task-23-studio-mode.md`](TASKS/task-23-studio-mode.md) |
|
|
||||||
| 24 | Toast notifications | ✅ Done (2026-08-23) | [`TASKS/task-24-toast-notifications.md`](TASKS/task-24-toast-notifications.md) |
|
|
||||||
| 25 | Background consolidation | ✅ Done (2026-08-23) | [`TASKS/task-25-background-consolidation.md`](TASKS/task-25-background-consolidation.md) |
|
|
||||||
| 30 | Gear menu cleanup + Default Location for Recordings + preview layout | ✅ Done (2026-08-29) | [`TASKS/task-30-gear-cleanup-preview-layout.md`](TASKS/task-30-gear-cleanup-preview-layout.md) |
|
|
||||||
| 31 | SceneGraph component + static/dynamic compositor optimization | ✅ Done (2026-08-31) | [`TASKS/task-31-scenegraph-optimization.md`](TASKS/task-31-scenegraph-optimization.md) |
|
|
||||||
| 32 | Stream resilience | ☐ Queued (2026-09-01) | [`TASKS/task-32-stream-resilience.md`](TASKS/task-32-stream-resilience.md) |
|
|
||||||
| 33 | Bandwidth auto step-down | ☐ Queued (2026-09-01) | [`TASKS/task-33-bandwidth-step-down.md`](TASKS/task-33-bandwidth-step-down.md) |
|
|
||||||
| 34 | Scheduled streams (Text-drawer version) | ☐ Queued (2026-09-01) | [`TASKS/task-34-scheduled-streams.md`](TASKS/task-34-scheduled-streams.md) |
|
|
||||||
| 35 | Scene-linked audio | ☐ Queued (2026-09-01) | [`TASKS/task-35-scene-linked-audio.md`](TASKS/task-35-scene-linked-audio.md) |
|
|
||||||
| 36 | Gold pass | ☐ Queued (2026-09-01) | [`TASKS/task-36-gold-pass.md`](TASKS/task-36-gold-pass.md) |
|
|
||||||
| 37 | Defaults vs current layout split | ☐ Queued (2026-09-20) | [`TASKS/task-37-defaults-current-split.md`](TASKS/task-37-defaults-current-split.md) |
|
|
||||||
| 38 | Capture Window… backdrop (in-app window picker) | ✅ Done — shipped 2026-09-21 | [`TASKS/task-38-window-backdrop.md`](TASKS/task-38-window-backdrop.md) |
|
|
||||||
| 39 | YPP journey tracker (slice 1: current-scope data) | 🔶 Slice 1 ✅ — 2026-09-22; **refresh 403 fixed 2026-09-23** (auditDetails part dropped); slice 2 (Analytics + ETA) queued | [`TASKS/task-39-ypp-journey-tracker.md`](TASKS/task-39-ypp-journey-tracker.md) |
|
|
||||||
| 40 | App Settings round: active-camera picker + config dialog, gear move, defaults, accent | ☐ Queued (2026-09-22) — plan saved | [`TASKS/task-40-app-settings-round.md`](TASKS/task-40-app-settings-round.md) |
|
|
||||||
| 41 | Test Stream mode: private test broadcast + TEST drawer (mock chat input + simulated events) | ✅ Done (2026-09-22) | [`TASKS/task-41-test-stream-mode.md`](TASKS/task-41-test-stream-mode.md) |
|
|
||||||
| 42 | Top bar redesign: one REC-or-Stream surface, gear up top, sign-in/account zone world-gated | ✅ Done (2026-09-22) | [`TASKS/task-42-top-bar-redesign.md`](TASKS/task-42-top-bar-redesign.md) |
|
|
||||||
| 43 | Native events & alerts: chat parity (all six event types + server poll cadence) + six-animation native alert box | ✅ Done (2026-09-24) | [`TASKS/task-43-native-alerts.md`](TASKS/task-43-native-alerts.md) |
|
|
||||||
| 44 | TEST-tab chat fix: resolve liveChatId from snippet (not contentDetails) + poll until the broadcast is live | ✅ Done (2026-09-25); full suite 318/318 | [`TASKS/task-44-test-chat-fix.md`](TASKS/task-44-test-chat-fix.md) |
|
|
||||||
| 45 | TEST-tab chat fix #2: insert body must declare `snippet.type` (400 MISSING_REQUIRED_FIELD) | ✅ Done (2026-09-25) | [`TASKS/task-45-chat-insert-type.md`](TASKS/task-45-chat-insert-type.md) |
|
|
||||||
| 46 | Drawers: click outside the rail closes whichever is open — TEST added to the existing Stream Settings + YPP dismiss behavior | ✅ Done (2026-09-25) | [`TASKS/task-46-drawer-click-outside-close.md`](TASKS/task-46-drawer-click-outside-close.md) |
|
|
||||||
| 47 | Alert box video: built-in/custom alert clip (+ six-animation fallback) with read-time fade in/out + ticker (now in the preview too, 3 display methods) + alert volume in the live mix | ✅ Done (2026-09-26) | [`TASKS/task-47-alert-videos.md`](TASKS/task-47-alert-videos.md) |
|
|
||||||
| 48 | Distribution & packaging: **MSIX + Store IAP** | ⏸ **DEFERRED 2026-10-26 — revisit near v1, not now** (creator: the remaining programming work is far from release, and a complete UX redesign comes first). Frozen until then: items 6-8, the signing decision, the updater choice, and the route question itself. History: **✅ route decided 2026-09-27 (Store MSIX + Store IAP)**; **item 1 (bundle ffmpeg) SHIPPED 2026-09-28**; **item 2 (`Package.appxmanifest` + `scripts/package-msix.sh`) SHIPPED 2026-10-22 — a real 159 MB `LlamaCasty.msix` packs**; **item 3 (remove the Velopack updater) SHIPPED 2026-10-22** — the Store updates the app. Open: items 6-8 (recording invariant, disqualifiers, pre-submission gates); items 4/5 are the creator's (Certification Kit, Partner Center listing) | [`TASKS/task-48-distribution-msix.md`](TASKS/task-48-distribution-msix.md) |
|
|
||||||
| 49 | Chat profanity filter (local, opt-in, non-persistent, user word list) | ☐ Queued (2026-09-27) | [`TASKS/task-49-chat-profanity-filter.md`](TASKS/task-49-chat-profanity-filter.md) |
|
|
||||||
| 50 | One-button "Publish this video" (resumable upload of the local recording) | ☐ Queued (2026-09-28) | [`TASKS/task-50-publish-recording.md`](TASKS/task-50-publish-recording.md) |
|
|
||||||
| 51 | **Webcam background effects: Remove + Blur** | ✅ **Built 2026-10-09** (v1 requirement) — bundled MediaPipe Selfie Segmenter → ONNX (verified vs Google's runtime), Remove + Blur with strength, per-scene config persisted, one processing point in CameraManager, radio-pill UI in the webcam's Layers properties. Creator check 2026-10-09: **Remove jitter FIXED** (temporal mask smoothing 0.75/0.25, OBS/Jitsi-derived) and **Blur "heavy" FIXED** (quadratic radius 1→6 small px, default 0.5 = 2, StreamFX-consensus); recheck on the real camera pending | [`TASKS/task-51-webcam-bg-effects.md`](TASKS/task-51-webcam-bg-effects.md) |
|
|
||||||
| 52 | **Zoom box (anchored 2× magnifier)** | ✅ Done — shipped 2026-10-08 (3 creator corrections during the build: loupe → anchored capture over the full composite, drawn last → never shows the dim shading) | [`TASKS/task-52-zoom-box.md`](TASKS/task-52-zoom-box.md) |
|
|
||||||
| 53 | **Output-format verification: Shorts/TikTok geometry (9:16)** | ☐ Queued (2026-10-08) — output formats never tested end-to-end; pin + prove the vertical geometry | [`TASKS/task-53-output-formats.md`](TASKS/task-53-output-formats.md) |
|
|
||||||
| 54 | **Marcom round: free-forever positioning + merch storefront** | 🔶 In progress — llamacasty.com copy live 2026-10-08 (pricing stripped); merch POD + app About links queued | [`TASKS/task-54-marcom-free-merch.md`](TASKS/task-54-marcom-free-merch.md) |
|
|
||||||
| 55 | **Disk hygiene: log rotation + low-disk guard** | 🔶 In progress — **slice 1 shipped 2026-10-22** (`startup.log` rolls at 5 MB to `startup.1.log`, one copy kept — it was uncapped at 23 MB and growing every few seconds); slices 2 (temp alert-clip cleanup) + 3 (low-disk guard) open | [`TASKS/task-55-disk-hygiene.md`](TASKS/task-55-disk-hygiene.md) |
|
|
||||||
| 56 | **Pre-publication secret scan (full git history)** | ✅ Done — 2026-10-22, **CLEAN** (432 reachable commits + 63 dangling + worktree; 4 hits, all false positives: a `your-client-secret` doc placeholder and a test dummy — nothing to rotate). ⚠️ the repo was **already public** when the scan ran (anonymous GET → 200), so the gate came late — but nothing was exposed | [`TASKS/task-56-secret-scan.md`](TASKS/task-56-secret-scan.md) |
|
|
||||||
| 57 | **Vertical (9:16) tier camera placement — the "vv" feature** | ✅ **Both units shipped 2026-10-21** (Unit 1 = Live scene: own placement per tier — small tile, circle-or-rect, one of six spots; drag-snap + manual entry; 16:9 restored exactly. Unit 2 = Chat scene: rect only — the circle is not offered — the tile or one whole 607×540 area) | [`TASKS/task-57-vertical-camera-layout.md`](TASKS/task-57-vertical-camera-layout.md) |
|
|
||||||
| 58 | **Properties-panel style consistency (the theme owns the look)** | ✅ Done — 2026-10-21 (the creator's "why is the drop-down not in the same style as the others?" — the drop-downs/fields/check boxes had been hand-painted instead of themed, so WPF drew the light system template; now every one carries a theme style, guarded by a test) | [`TASKS/task-58-properties-style-consistency.md`](TASKS/task-58-properties-style-consistency.md) |
|
|
||||||
| 59 | **The properties panel is a hierarchy (titles own their content)** | ✅ Done — 2026-10-21 (the creator's ruling: a "Shape" title above the Mirror/Rect row, the drag hint indented under it, the same for Geometry / Border Color / Border Thickness, Remove + Blur under Background, Strength under Blur — and the shape became a CHOICE: Rect | Circle with Rect selected by default) | [`TASKS/task-59-properties-hierarchy.md`](TASKS/task-59-properties-hierarchy.md) |
|
|
||||||
| 60 | **The border-colour drop-down names every colour** | ✅ Done — 2026-10-21 (the creator's "the #hex values are good, but add a corresponding color name/label next to the value" — the 14 colours moved out of the click handler into `Models/BorderColorPalette.cs`, and each row now reads "#e94560 Crimson") | [`TASKS/task-60-border-color-names.md`](TASKS/task-60-border-color-names.md) |
|
|
||||||
| 61 | **The geometry fields share one fixed width** | ✅ Done — 2026-10-21 (the creator's "the Y and H boxes should be the same width as the X and W boxes and those widths should be fixed to accomodate the max number of possible digits" — the Y/H fields used to stretch to fill the row; all four are now 44px, wide enough for 1920 plus a sign) | [`TASKS/task-61-geometry-field-widths.md`](TASKS/task-61-geometry-field-widths.md) |
|
|
||||||
| 62 | **The border-colour field shows the colour's name next to the hex** | ✅ Done — 2026-10-21 (the creator: "the border color drop down box content should also include the name of the color next to the hex value as they in the drop-down list box" — the field keeps the hex editable and the palette's name sits right beside it, empty for a custom hex) | [`TASKS/task-62-border-colour-name-in-the-field.md`](TASKS/task-62-border-colour-name-in-the-field.md) |
|
|
||||||
| 63 | **The border-colour picker is the app's own drop-down** | ✅ Done — 2026-10-21 (popup row click deselection fixed 2026-10-22: `LeftPanel.IsDescendantOf` now crosses `PopupRoot` → `PART_Popup` via `LogicalTreeHelper.GetParent` when `VisualTreeHelper.GetParent` returns `null`, so clicking a colour in the open `YtComboBox` updates `BorderColor` instead of exiting properties) | [`TASKS/task-63-border-colour-app-dropdown.md`](TASKS/task-63-border-colour-app-dropdown.md) |
|
|
||||||
|
|
||||||
---
|
- ✅ App Settings grouping + right-click gear — reported working 2026-10-29.
|
||||||
|
- ✅ Transition picker/durations, Wipe, preview + program transitions — reported working 2026-10-29.
|
||||||
|
- ✅ Brand logo layer — reported working 2026-10-29.
|
||||||
|
- ⏳ Vertical-tier camera check (Live tile inside the band, Chat rect-only) — outstanding.
|
||||||
|
- ⏳ **Webcam cadence**: a Release take in the failing geometry (vertical tier first) blocks Units 1–2.
|
||||||
|
No fix until a reading names the stage.
|
||||||
|
|
||||||
## Research index
|
## 1.0 gates (before the first shipped build)
|
||||||
|
|
||||||
| Research | Covers |
|
- **Visibility picker** — replace the always-Private lock, hide the TEST button, and wire
|
||||||
|---|---|
|
`UpdateBroadcast` in the same unit (it is the only code that can change a broadcast's privacy).
|
||||||
| [`TASKS/research-youtube-api.md`](TASKS/research-youtube-api.md) | YouTube Live Streaming API v3 — authoritative facts for the v3 build |
|
- **Kill the dev multi-instance affordance** — `Helpers/InstanceProfile.cs` is already `#if DEBUG`;
|
||||||
| [`TASKS/research-store-certification.md`](TASKS/research-store-certification.md) | **Windows Store policies 7.20 + MSIX packaging + code-signing economics** (2026-09-27). Feeds TASK 48. Records which policies bind, which don't, and why — read it before re-litigating distribution |
|
re-prove it on a Release build.
|
||||||
|
- **Release engineering** — `scripts/publish.sh` (self-contained win-x64, no test artifacts),
|
||||||
|
Debug-only `InternalsVisibleTo`, the `LlamaCasty.exe` assembly rename (three pack URIs, incl.
|
||||||
|
`MainWindow.xaml:14`), full license texts beside `THIRD-PARTY-NOTICES.txt` (TASK 4 req 9).
|
||||||
|
- **Gold pass** (TASK 36): the screens/layers audit, native-Windows verification, and the
|
||||||
|
branding-flash decision.
|
||||||
|
|
||||||
---
|
## Research
|
||||||
|
|
||||||
## Open items (at a glance)
|
[`research-youtube-api.md`](TASKS/research-youtube-api.md) · [`research-store-certification.md`](TASKS/research-store-certification.md)
|
||||||
|
|
||||||
### Creator-reported batch (2026-09-26) — proof-of-concept round, recordings used as the reference
|
|
||||||
|
|
||||||
The creator is **not** getting YouTube private test recordings saved, so local recordings are the
|
|
||||||
proof of concept for compositing; the live path is assumed to share it. **Verified true, not assumed:**
|
|
||||||
one `_framePump` is built in the `MainViewModel` ctor with a single `brandFlash:` callback, and BOTH
|
|
||||||
`Streaming.Operations.cs:68` (go-live) and `:199` (record) call that same `StartAsync` — there is no
|
|
||||||
second encoder path needing a "redirect". Record+simulcast is one ffmpeg with two outputs.
|
|
||||||
|
|
||||||
1. ✅ **Recording save dialog: Cancel discards** — was silently saving under the default name. Enter
|
|
||||||
accepts the default; Cancel/Escape/X **deletes** the footage and names the file if the delete fails.
|
|
||||||
`MainViewModel.CompleteRecordingSave` (internal) + `ytLive.Tests/RecordingSaveDialogTests.cs`.
|
|
||||||
2. ✅ **Brand flash in ALL scenes + in recordings** — was gated on `IsLive` via
|
|
||||||
`UpdateLiveVisuals()`, so a recording made without ever going live carried no credit. The
|
|
||||||
presenter is now `Start()`ed once in the `MainViewModel` ctor and never stopped on live-state
|
|
||||||
churn; the licence gate rides on `IsPremium` → `Enabled` as before. Also fixed the
|
|
||||||
premium-edge/restart trap that app-lifetime exposed. Tests: `BrandFlashOutputTests`
|
|
||||||
(12 facts) incl. `Credit_IsComposited_WithNoLiveSession_AndSoARecordingCarriesIt` and
|
|
||||||
`ADowngradeMidSession_RestartsTheCadenceTimer`.
|
|
||||||
3. ✅ **Ticker confined to the alert box** — was a global 1920×48 bar at the top edge; the
|
|
||||||
creator wants it over the *Stream Alerts video*. The strip now renders at the alert box's own
|
|
||||||
size and carries the box's origin on a new `VideoFrame.Placement`; every blit site reads
|
|
||||||
`OriginX/OriginY` instead of a literal `0, 0`, and the preview element is bound to the same
|
|
||||||
rect so preview and output cannot drift. No alert box ⇒ no ticker. Height clamped to the 48px
|
|
||||||
strip; `CopyStrip` clips rows so a short box can't overrun the buffer. Tests: 3 new facts
|
|
||||||
incl. an output-side `SceneCompositor.Render` check that the pixels land in the box and NOT at
|
|
||||||
the top-left corner.
|
|
||||||
4. ☐ **Two instances still refuse to run.** `InstanceProfile` isolates layout/auth/log/WebView, but
|
|
||||||
`FfmpegLocator._toolsDir` is still the hardcoded shared `%APPDATA%\ytLlive\tools` and both
|
|
||||||
instances can `Directory.CreateDirectory` + `ExtractBinaries` into it. Also the launch method is
|
|
||||||
unconfirmed: `dotnet run` while the first app holds `bin/…/ytLive.exe` dies with `MSB3027` before
|
|
||||||
any instance starts — that is a build-output lock, not a log conflict.
|
|
||||||
5. ☐ **Post-session efficacy report** — on end of stream *or* recording, report what worked and what
|
|
||||||
failed, including the **dropped frames** the creator saw. `CurrentHealth` already tracks
|
|
||||||
`DroppedFrames`/`StreamDuration`; `SessionTeardownTests` is the natural home for the roll-up.
|
|
||||||
- **TASK 3** — items 16 (Text source) + 20 (RewardEvent capture → SQLite, Alerts' persistence half) open; **17 (Alerts) is DONE via TASK 43 (2026-09-24) — native six-event alert box**
|
|
||||||
- **TASK 9** — item 5 open (webcam identity key reconciliation)
|
|
||||||
- **TASK 10** — the Velopack update URL is **RETIRED (2026-10-22)**: the updater was deleted (TASK 48 slice 3) and the Store updates the app
|
|
||||||
- **Shipping / release build (creator-queued 2026-09-26)** — no publish config exists yet:
|
|
||||||
the csproj has only `OutputType=WinExe` + `TargetFramework`, so a plain `dotnet publish`
|
|
||||||
is **framework-dependent** (customer needs the .NET 8 Desktop Runtime preinstalled).
|
|
||||||
`Distribution.md` targets a self-contained ~80–120MB `LlamaCasty.exe`. ⛔ **The Polar
|
|
||||||
File-Download benefit is dead** — the Store hosts and updates the app, so there is no upload
|
|
||||||
step (TASK 48). Two deliverables:
|
|
||||||
1. **`scripts/publish.sh`** wrapping
|
|
||||||
`dotnet publish ytLive.csproj -c Release -r win-x64 --self-contained true -o ./publish/win-x64`,
|
|
||||||
and **asserting the output contains no test/xunit artifacts**. (The compile side needs
|
|
||||||
nothing — the tests are a separate project with a one-way reference, plus explicit
|
|
||||||
`<Compile Remove="ytLive.Tests\**" />` in `ytLive.csproj`; the risk is *packaging*:
|
|
||||||
`ytLive.Tests/bin/.../ytLive.exe` exists and would ship a Debug build + test DLLs if
|
|
||||||
anyone ever zips a bin folder by hand. Never copy folders; always publish.)
|
|
||||||
2. **Condition `InternalsVisibleTo("ytLive.Tests")` to Debug only** (`ytLive.csproj:78-82`
|
|
||||||
is unconditional, so it ships in Release) — it hands the test assembly name to anyone
|
|
||||||
decompiling and advertises that `internal` members are externally reachable, which
|
|
||||||
conflicts with the obfuscation posture in `Distribution.md` §1.2.
|
|
||||||
3. **Decide the shipped exe name.** `Distribution.md` promises the customer
|
|
||||||
`LlamaCasty.exe`; `<AssemblyName>ytLive</AssemblyName>` actually publishes `ytLive.exe`.
|
|
||||||
Renaming the AssemblyName is 4 lines (1 csproj + 3 pack URIs that spell the assembly
|
|
||||||
name — `MainWindow.xaml:14` is the **window icon**, so missing it ships a broken
|
|
||||||
taskbar/Alt-Tab icon). Namespaces stay `ytLive.*`; the 230-file re-brand is NOT
|
|
||||||
wanted. Do **NOT** touch the `%APPDATA%\ytLlive` folder — breaking (orphans users'
|
|
||||||
layout DB). See the naming table in `ai.md`.
|
|
||||||
Do **NOT** add `-p:PublishTrimmed=true`: WPF is not trim-compatible and it fails at
|
|
||||||
runtime (BAML/XAML resource resolution), not at build time. `PublishReadyToRun` is safe.
|
|
||||||
- **TASK 12** — queued future
|
|
||||||
- **TASK 13** — queued post-v1
|
|
||||||
- **TASK 14** — Branch 2 shipped; branch 3+ in progress
|
|
||||||
- **TASK 21** — UI picker slice remaining (Windows-only verification pending)
|
|
||||||
- **TASK 32–36** — all queued future work (2026-09-01)
|
|
||||||
- **✅ TASK 57 — the "vv" vertical camera layout** (both units shipped 2026-10-21). The vertical
|
|
||||||
tier is a centred band crop of the same master, so the 16:9 camera placement falls outside the
|
|
||||||
cropped window and the creator is not in the vertical stream at all. **Unit 1:** each scene keeps
|
|
||||||
its own vertical placement (position, size, shape); the Live scene gets a small tile in one of
|
|
||||||
six spots (top/bottom × left/centre/right), circle or rect, placed by drag-snap or typed into the
|
|
||||||
new Geometry fields; switching back to 16:9 restores the desktop layout exactly. **Unit 2:** the
|
|
||||||
Chat scene in the vertical tier — rect only (the circle option is not offered and the model
|
|
||||||
refuses it), the small tile or enlarged to fill one whole 607×540 area, top or bottom by where the
|
|
||||||
camera is (the creator's table, 2026-10-17). **Left:** the creator's hands-on check of the whole
|
|
||||||
vv feature. See [`TASKS/task-57-vertical-camera-layout.md`](TASKS/task-57-vertical-camera-layout.md)
|
|
||||||
and `ai.md` → "Vertical (9:16) tier camera placement".
|
|
||||||
- **Webcam resource lifecycle (2026-09-17)** — startup slice shipped (OS poll at start, single-camera
|
|
||||||
auto-lock, persistent red alert in the Layers panel on lock failure, re-polls until resolved); gate
|
|
||||||
slice shipped same day — webcam = app-level default, one per stream per scene, Add places the
|
|
||||||
default directly, offered only when a camera is ATTAINABLE (identity + live session, not just a
|
|
||||||
saved identity), app base lock keeps the session after the last placement is removed, startup
|
|
||||||
adopts a solo camera as default. TASK 26's app-wide gate superseded by creator directive. The App
|
|
||||||
Settings webcam selector is now **TASK 40 Unit A** (plan saved 2026-09-22). Remaining next slice
|
|
||||||
(user-queued): static (+) catalog rows (Background, YouTubeEvent, quoted labels) with reason-greying.
|
|
||||||
- **🔶 Webcam cadence → resolution — IN PROGRESS, creator-queued 2026-10-05** (DHH/lipreading: the
|
|
||||||
webcam judders, ~1 hitch in 5, invisible in the output file). **UNIT 0 shipped** (counters +
|
|
||||||
`Helpers/FrameCadence.cs`; see [`docs/ai/frame-pipeline.md`](docs/ai/frame-pipeline.md) → "Frame cadence"). **Needs a creator recording before the
|
|
||||||
next unit.** Remaining units, all agreed 2026-10-05, one Good Dog test each:
|
|
||||||
- **⛔ UNIT 1 IS NOT NEXT — re-scoped 2026-10-05.** The first real reading exonerated the camera:
|
|
||||||
it delivers 30.0/s with zero hitches; the compositor manages **6.8 composites/s at ~141ms each**,
|
|
||||||
so the file is **88.7% duplicate frames** and that is the judder. 720p triples the bytes stretched
|
|
||||||
per render on an already-over-budget path. Keep `ExclusiveControl` + 720p as a **sharpness** win
|
|
||||||
and schedule it AFTER the compositor work.
|
|
||||||
- **✅ SHIPPED 2026-10-16 (measurement only): per-element composite timing + a scene dump.**
|
|
||||||
`CompositeTimings` + the pump's `FramePump parts (N renders/5s): …` line and
|
|
||||||
`FramePump scene dump:` block (see [`docs/ai/frame-pipeline.md`](docs/ai/frame-pipeline.md) → "Per-element composite timing + scene dump").
|
|
||||||
One integration test: `ytLive.Tests/CompositeTimingTests.cs`. **NOW WAITING ON A CREATOR TAKE
|
|
||||||
(Release):** the parts line must name which of the 6 elements eats the ~140ms and the dump must
|
|
||||||
show the shape of the slow take vs the fast one (10:03 → 12:01, 29–34ms → 143–155ms, same shape).
|
|
||||||
**No fix until a real reading names the element** — the next unit is the fix that reading dictates.
|
|
||||||
- **📖 FIRST INSTRUMENTED TAKE READ (2026-10-16, Release, recording, 1920×1080 1:1 master tier):
|
|
||||||
THE JUDDER DID NOT REPRODUCE — and no element is expensive.** 60 composites/s, avg render
|
|
||||||
1.0–1.1ms, biggest element in the scene = webcam **0.4ms** (raster 0.2ms), backdrop 0.2ms, the
|
|
||||||
other four under the 0.1ms floor; webcam 30.0/s at the resolver (longest gap 50ms); the FILE holds
|
|
||||||
29.6 distinct webcam images/s with 82% of images held exactly 2 frames. **Nothing to fix yet.**
|
|
||||||
The historic slow numbers are different configurations, not a slow scene — Oct 9 19:48 was the
|
|
||||||
**vertical** tier (`comp=608x1080`, 45ms) and Oct 5 12:01's geometry was never logged (the
|
|
||||||
`scene=/comp=` suffix didn't exist); every slow window shows `cache xR/0H` (the whole-frame cache
|
|
||||||
never reusing) while the healthy one shows `151R/150H`, and one Oct 5 take latches fast→slow
|
|
||||||
mid-take. **NEXT: a Release take in the failing geometry** — vertical tier first, then the 21:9
|
|
||||||
display config — and only that take's `parts` line names the stage. See `ai.md` → "✅ What the
|
|
||||||
first instrumented take said".
|
|
||||||
- **Unit 2 (later, unchanged):** blinking amber **"SD" badge**, preview only, never in the
|
|
||||||
recording/stream, when a better format was available and not obtained. Top-right corner, or the
|
|
||||||
1:30 rim point when the clip is round.
|
|
||||||
- **Deferred to after Unit 1:** `MediaCaptureSharingMode.ExclusiveControl` + MJPG ≥30fps up to
|
|
||||||
1280×720 via the existing `SetMediaStreamPropertiesAsync` path (refused only because
|
|
||||||
`SharedReadOnly`); same-camera `SharedReadOnly` retry. **The creator reversed the ban on taking an
|
|
||||||
exclusive camera lock.** API probe already done — see HANDOFF.md, incl. the `SetFormatAsync`
|
|
||||||
dead end.
|
|
||||||
- ⛔ **No fallback-camera feature, ever** — *"that's bypassing the user's explicit choice."*
|
|
||||||
- **Background removal + blur = v1 requirement (2026-10-08)** — reverses the 2026-10-05
|
|
||||||
exclusion. Bundled ONNX + onnxruntime, no downloads, no GPU requirement. Per-element
|
|
||||||
Remove/Blur + strength. See [`TASKS/task-51-webcam-bg-effects.md`](TASKS/task-51-webcam-bg-effects.md).
|
|
||||||
- **TASK 40 — App Settings round** — plan saved 2026-09-22 (`TASKS/task-40-app-settings-round.md`),
|
|
||||||
four units, one Good Dog test each: **A** active web camera section under Recordings (Change…
|
|
||||||
sub-menu = live enumeration incl. vcams; Tune… config dialog via `ICameraControlProbe`, live-only
|
|
||||||
tweaks), **B** gear moved top-left right of the wordmark (left-click App Settings, right-click
|
|
||||||
Bug/Feature/About), **C** persist output resolution default + surface default scene
|
|
||||||
transition/duration + confirm-before-End, **D** accent/theme color (consolidate 69 hardcoded
|
|
||||||
accent sites into a DynamicResource brush + picker). **Unit B (gear) is DONE early** — shipped 2026-09-22
|
|
||||||
as part of TASK 42 (top bar redesign): gear top-right of the brand, single click = the Settings/Bug/
|
|
||||||
Feature/About menu, removed from BottomBar. A + C + D remain queued.
|
|
||||||
- **TASK 37** — queued (2026-09-20): split the layout data into a `default` set (the established DB)
|
|
||||||
and a `current` set carrying the build-id; a saved `current` is honored only by the same build-id,
|
|
||||||
otherwise defaults load — enables one-click revert to defaults too. Capture needed work OUT of
|
|
||||||
current scope here; do not bolt it onto an in-flight change.
|
|
||||||
- **TASK 41 — Test Stream mode** — DONE 2026-09-22 (`TASKS/task-41-test-stream-mode.md`): a Test
|
|
||||||
button next to Start runs the real private-only go-live pipeline with `IsTestStream` set, and the
|
|
||||||
TEST drawer (right rail, third tab) hosts Mock Chat Input (real `liveChat/messages.insert` → ~2s
|
|
||||||
poll round-trip renders on the overlay) + simulated Subscriber/New Member/Super Chat events that
|
|
||||||
inject through the poller's `MessageReceived` seam (`IsSimulated` — YouTube's insert API only
|
|
||||||
creates text, so these are local-only by design; styled member/SuperChat rows validate the chat
|
|
||||||
overlay). **Real Stinger/TTS alert widgets resolved by TASK 43's native alert box.**
|
|
||||||
- **TASK 43 — Native events & alerts** — **DONE 2026-09-24** (`TASKS/task-43-native-alerts.md`):
|
|
||||||
StreamElements replaced with NATIVE YouTube events. Chat parity half: `YouTubeChatService` now
|
|
||||||
decodes all SIX `liveChat/messages` event types (`ChatEventKind` on `ChatMessage`) — the four
|
|
||||||
formerly-empty event rows fixed — and re-arms its poll on the server's `pollingIntervalMillis`
|
|
||||||
(streamList semantics, clamp 1000–6000ms, `maxResults=2000`). Alerts half: a new
|
|
||||||
**`SourceType.AlertBox`** ("Stream Alerts", one per layout) is an OBS-style celebration zone
|
|
||||||
where the six events play **six unique branded animations** (`AlertRenderer` + the
|
|
||||||
`AlertOverlayLayer` component; 33ms ticker, deterministic `Advance` test clock; idle =
|
|
||||||
transparent). Creator rulings baked in: free-sub mention = chat row only (no sub alert — YouTube
|
|
||||||
emits none), NO viewer count, every alert card carries the "made with LlamaCasty!" brand line.
|
|
||||||
- **TASK 44 — TEST-tab chat fix** — **DONE 2026-09-25** (`TASKS/task-44-test-chat-fix.md`):
|
|
||||||
the open creator report ("I still cannot post a chat message in the TEST tab") was a single
|
|
||||||
cause: `GetBroadcastLiveChatIdAsync` read `contentDetails.liveChatId` (lifeChatId lives in
|
|
||||||
**`snippet`**) AND ran before the broadcast was live (RTMP push flips ready→live via
|
|
||||||
enableAutoStart; YouTube only populates the id on live broadcasts — official GetLiveChatId.java
|
|
||||||
sample lists broadcastStatus=active). Fixed by reading `snippet.liveChatId` and polling with a
|
|
||||||
bounded retry after the frame pump starts; chat stays non-fatal.
|
|
||||||
- **TASK 47 take four (2026-09-26)** — the announcement strip was **output-only** (a
|
|
||||||
frame-pump callback with no preview consumer, since a master-width global overlay cannot
|
|
||||||
ride a per-element `Image`) and the marquee was paced at a fixed `140px/s` (~17s per
|
|
||||||
pass, so a 10s alert showed the text once). Now: a `tickerPreviewSink` publishes it to a
|
|
||||||
global `AlertTickerElement` in `PreviewPane.xaml` (mirroring `SocialBarElement`), and the
|
|
||||||
creator picks **Scroll / Flash / Solid** in the panel, with Scroll paced in *reads per
|
|
||||||
alert* (3 inside a 10s alert) rather than px/s. 15 new facts; suite 339/339.
|
|
||||||
- **TASK 47 — Alert box video** — **DONE 2026-09-26** (`TASKS/task-47-alert-videos.md`):
|
|
||||||
the TASK 43 alert box now plays a **video** on every alert — a shipped built-in mp4
|
|
||||||
(`Assets/alert-default.mp4`, stamped into the `Asset` table at startup) that the creator can
|
|
||||||
swap for their own file via the new Stream Alerts section (path only, never stored in the DB;
|
|
||||||
six `AlertRenderer` animations remain the fallback). Per-alert decode via a new
|
|
||||||
`IAlertClipDecoder` fx (ffmpeg rawvideo bgra + f32le pipes, real-time paced, disposed at
|
|
||||||
drain); ~0.3s fade-in/out rides the alpha envelope + scales the audio (mixed into the live
|
|
||||||
stream at unity — **no duck**, a per-alert Volume slider instead); an auto-composed message
|
|
||||||
**ticker** ("Funder — Super Chat · $10.00") scrolls along the very top of the frame
|
|
||||||
(never-baked dynamic overlay threaded through SceneCompositor + FramePump). Creator rulings:
|
|
||||||
custom + fallback (not either/or), ticker on top, no ducking.
|
|
||||||
- **TASK 36 item 6 (release engineering) is now TASK 48** (2026-09-27) — code signing, the
|
|
||||||
installer, and the Velopack update URL have one owner instead of three scattered mentions.
|
|
||||||
**EULA draft/review and the THIRD-PARTY-NOTICES license-texts gate stay in TASK 36 item 6**,
|
|
||||||
as does the agreed build-posture ceiling (HARDENED + MOCK_REWARDS, additive-only).
|
|
||||||
- **TASK 48 — distribution & packaging** — **✅ ROUTE DECIDED 2026-09-27: Microsoft Store,
|
|
||||||
MSIX package, Store IAP.** Creator's criteria, verbatim: *"zero headaches, minimal
|
|
||||||
maintenance (for me) while still providing accountability and a reasonably easy upgrade
|
|
||||||
flow."* Route A is the only option where all four are solved by handing the work to
|
|
||||||
Microsoft rather than to a certificate vendor — **$0/yr, no certificate, no HSM, no annual
|
|
||||||
renewal, no SmartScreen ramp**, plus Store auto-update, Store-side payments/entitlements/
|
|
||||||
refunds/support, and Microsoft review as the accountability layer. The rejected options
|
|
||||||
(Store+Polar, Polar-hosted + own cert, Store-EXE) are recorded with their reasons in
|
|
||||||
`TASKS/research-store-certification.md` §3 so the decision is not reopened.
|
|
||||||
- **The consequence that makes it cheap: the entire licensing subsystem is deleted.**
|
|
||||||
`Services/PolarLicenseService.cs` (HTTP validation, swallowed network failures, the
|
|
||||||
ignored `expires_at`), `Helpers/PolarLicense.cs`, `ViewModels/MainViewModel.License.cs`
|
|
||||||
(`PremiumUrl`, customer portal, the `OfflineGracePeriod = 14 days` subscription-era
|
|
||||||
artifact, renewal/lapse copy), and the incorrect "Polar unlocks alerts" string in
|
|
||||||
`Controls/OverlayHost.xaml` all become dead code. `IsPremium` is derived from the **Store
|
|
||||||
entitlement** instead of a remote HTTP call — one locally cached bit refreshed by the OS,
|
|
||||||
and the whole "network flaky → app thinks I'm expired" bug class disappears with the
|
|
||||||
offline-grace machine.
|
|
||||||
- **Unchanged:** the watermarks posture. Free gets everything; the branding flash stays the
|
|
||||||
ONLY paid delta (TASK 36 item 2). Store IAP changes how the bit is *obtained*, never what
|
|
||||||
it *gates*.
|
|
||||||
- **Both formerly-open questions are now CLOSED (2026-09-27).** Store revenue share is
|
|
||||||
**verified at 15%, subscriptions included** (ADA v8.10 §6(b)(i) — read from the PDF, not a
|
|
||||||
search excerpt), and the IAP tier shape is **decided: `$10/mo` subscription + `$400`
|
|
||||||
lifetime, no annual**, declared in Partner Center as two products. Full detail in
|
|
||||||
`TASKS/task-48-distribution-msix.md` item 0. ⚠️ Do **not** re-open the fee question without
|
|
||||||
re-reading the ADA, and do not *assume* 15% if the terms ever move.
|
|
||||||
- **✅ item 1 SHIPPED 2026-09-28 — bundle ffmpeg instead of downloading it.** The app no
|
|
||||||
longer fetches an executable at runtime (Store policy 10.2.2, and the pin 404'd on the
|
|
||||||
creator's first real recording on 2026-09-01). `scripts/fetch-ffmpeg.sh` populates a
|
|
||||||
gitignored `ffmpeg/` from a **SHA-256-verified** pinned month-end BtbN artifact; the csproj
|
|
||||||
copies it to output/publish and **fails the build** if it is missing; `FfmpegLocator` lost its
|
|
||||||
downloader and now resolves **bundle → PATH**. Immutable tag recorded per the licensing rule:
|
|
||||||
`autobuild-2026-08-31-13-27`. `ffplay.exe` is not shipped. Verified: ffmpeg was the **only**
|
|
||||||
download-and-execute third-party binary — `e_sqlite3.dll`/`WebView2Loader.dll` already ship
|
|
||||||
via NuGet and OpenH264 is compiled into `avcodec-63.dll`. **Remaining gaps are not bundling
|
|
||||||
problems:** the WebView2 Evergreen *runtime* is a machine prerequisite (item 2), and
|
|
||||||
**Velopack's updater downloads and executes — its teardown is a compliance action.**
|
|
||||||
Detail: `TASKS/task-48-distribution-msix.md` §1.
|
|
||||||
- **⏸ TASK 48 / ALL distribution & packaging work — DEFERRED 2026-10-26 (creator ruling). Do not
|
|
||||||
start, plan, or re-litigate any of it until we are close to v1.** Verbatim reason: *"we're not
|
|
||||||
anywhere close to release just considering the remaining programming tasks"* and *"I am getting
|
|
||||||
ready to do a complete UX redesign"* — that redesign began 2026-10-26 (see [`HANDOFF.md`](HANDOFF.md)
|
|
||||||
for landed UI slices and current worktree). Packaging, signing, installer and updater decisions
|
|
||||||
would chase UI and scope that are still changing, so the urgency is withdrawn, not the task.
|
|
||||||
What is frozen:
|
|
||||||
- **TASK 48 items 6-8** (recording invariant comment, disqualifier re-check, pre-submission gates)
|
|
||||||
and the creator's items 4/5 (Certification Kit, Partner Center listing).
|
|
||||||
- **The route question itself.** The map currently contradicts itself: `ai.md` →
|
|
||||||
"Windows packaging & distribution" says the **Microsoft Store route is dead (2026-10-22)** —
|
|
||||||
direct download from `llamacasty.com` + Steam, ship unsigned — and `MONETIZATION.md`/`MARCOM.md`
|
|
||||||
agree, while *this file*, `TASKS/task-48-distribution-msix.md` and `HANDOFF.md` still read
|
|
||||||
"Microsoft Store / Store IAP decided". **Resolve it in ONE distribution sweep at the revisit —
|
|
||||||
do not patch it piecemeal now.**
|
|
||||||
- **Code signing** (ship unsigned vs buy OV/EV) — current recorded posture: ship unsigned and
|
|
||||||
accept the "unrecognized publisher" warning until download reputation accrues.
|
|
||||||
- **The updater.** Deleting Velopack (TASK 48 slice 3) left the app with **no update path at all**,
|
|
||||||
and `ytLive.Tests/StorePackagingTests.cs` currently *asserts that no updater exists*. That guard
|
|
||||||
must be **rewritten with the chosen updater** at the revisit, never left to veto one.
|
|
||||||
- The MSIX package + `scripts/package-msix.sh` still build (159 MB artifact) — a working artefact,
|
|
||||||
submitted nowhere. Leave it alone.
|
|
||||||
- **TASK 10 is now a teardown, not a build** (2026-09-27) — Store IAP deletes the Polar
|
|
||||||
licensing path. The Polar fee tables, the perpetual-key model, and the customer-portal
|
|
||||||
plumbing in `MONETIZATION.md` (gitignored, local) are obsolete; the **watermark-only
|
|
||||||
entitlement and the branding-flash delta carry over unchanged**. The stale Polar product
|
|
||||||
(`$99/yr`, id `d105dfa1-…`) is not reused — Store IAP products are declared in Partner
|
|
||||||
Center instead.
|
|
||||||
- **Pricing — ✅ DECIDED 2026-09-27: `$10/mo` subscription, or `$400` lifetime. No annual.**
|
|
||||||
`MONETIZATION.md` carries a **one-time perpetual** decision from 2026-09-21 (`$29` founder →
|
|
||||||
`$49` list) that explicitly superseded the old `$99/yr` subscription. The creator ruled against
|
|
||||||
it and back to a subscription, anchored on **Meld** (`$20/mo = $240/yr` entry — the only
|
|
||||||
competitor sharing our shape: streaming tool, subscription, YouTube-native). The creator's own
|
|
||||||
read: **"XSplit only has legs because of their vcam product"** — its price is carried by a
|
|
||||||
system-wide driver, and **virtual camera output is permanently out of product**, so XSplit is
|
|
||||||
not a pricing comparator and its "lifetime ≈ 2x one year of sub" anchor is retired.
|
|
||||||
- **The finding that drove no-annual (2026-09-27): Microsoft Store does not pro-rate.**
|
|
||||||
Pro-rated refunds on cancellation exist only in a narrow set of countries, and
|
|
||||||
**"monthly subscriptions and initial (pre-renewal) purchases aren't eligible for a prorated
|
|
||||||
refund"** — so a first-year annual subscriber who cancels loses the remaining months in most
|
|
||||||
countries, **and the developer cannot refund it**. That is verbatim the grievance the creator
|
|
||||||
raised, so it is exactly the trap to avoid. Sources in `MONETIZATION.md` → "No annual tier".
|
|
||||||
- ⛔ **Clean numbers, no `.99`** (creator ruling: *"Let's stop with the x.99 stuff - I find that
|
|
||||||
irritating. Just say: ten bucks a month"*). The `$x.99` convention only makes a price *look*
|
|
||||||
cheaper and is incoherent for a brand sold on honesty and no-dark-patterns. `MONETIZATION.md`
|
|
||||||
→ "Clean numbers".
|
|
||||||
- **No feature gating** — pre-existing repo posture (TASK 36 monetization stance: free gets
|
|
||||||
everything, the branding flash is the only paid delta), noted here because it gains a
|
|
||||||
**revenue** argument: the free tier's reach is the funnel and the flash is an ad running
|
|
||||||
inside other people's content. Not a new ruling.
|
|
||||||
- ✅ **Store revenue share — VERIFIED 15%, subscriptions included.** From the ADA v8.10 PDF
|
|
||||||
itself, §6(b)(i): 15% applies to "any Apps (and any In-App Products in such Apps) that are
|
|
||||||
not listed in Section 6(b)(iii)". LlamaCasty is a Windows PC App — not a Game, not Xbox
|
|
||||||
console, not Windows 8 — so **15% governs both tiers; there is no subscription surcharge.**
|
|
||||||
The agreement's own changelog (v8.0, Oct 26 2017) says it outright: *"implement the 85/15
|
|
||||||
revenue share for non-Game subscriptions."* ⇒ **`$10/mo` nets `$8.50`; `$400` nets `$340`.**
|
|
||||||
- ⛔ **Two obligations the subscription creates (ADA §6(h))**, which drive the lifetime tier's
|
|
||||||
value as a hedge: (1) we must **fulfil the subscription for the whole period as marketed**,
|
|
||||||
and on breach Microsoft may refund *"the full amount, plus taxes... in Microsoft's sole
|
|
||||||
discretion"*; (2) **raising the price disables auto-renew**, so `$10` is effectively locked
|
|
||||||
for the product's life.
|
|
||||||
- **TASK 49 — chat profanity filter** — queued, not blocked, size S. Local, on-device,
|
|
||||||
**non-persistent**, opt-in, **user-supplied word list (never a hardcoded slur list)**, and it
|
|
||||||
must **never match the SuperChat amount or reward fields** (financial data, Store 10.5.5).
|
|
||||||
The non-persistence half is the same property that makes the 11.12 UGC certification answer
|
|
||||||
strong, so **no future chat-history/moderation-log/analytics feature may quietly break it.**
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 1.0 gates (do these before the first shipped build)
|
|
||||||
|
|
||||||
- **⛔ Replace the always-Private broadcast lock with a real visibility option (creator ruling,
|
|
||||||
restated 2026-10-04).** `privacyStatus = "private"` hardcoded in
|
|
||||||
`YouTubeStreamService.CreateBroadcast` is deliberate and correct for the whole pre-v1 test
|
|
||||||
phase — it is the reason test VODs of a still-breaking product stay off the channel. At v1 it
|
|
||||||
becomes a user-selectable visibility option in the Go-Live dialog. **Before v1, do not touch it and do not raise it as a
|
|
||||||
question, observation or suggestion — it has been asked and answered repeatedly.** Full rationale
|
|
||||||
and the retired "can we delete the test VODs?" question: `ai.md` → YouTube Live API design
|
|
||||||
constraints.
|
|
||||||
- **Verified 2026-10-04: a Go Live video IS private.** Three independent hardcodes
|
|
||||||
(`CreateBroadcast` → `"private"`, `GoLiveViewModel.Visibility => "Private"`,
|
|
||||||
`BeginTestStream` → `StreamVisibility = "Private"`) and the one method that could change it,
|
|
||||||
`YouTubeStreamService.UpdateBroadcast`, has **no production caller** — only
|
|
||||||
`BroadcastPullOutTests.cs:120`. No path exists today by which an app-created broadcast becomes
|
|
||||||
non-private.
|
|
||||||
- **Two coupled v1 items — both are the deliberate end of that guarantee:**
|
|
||||||
1. **Hide the TEST button.** It exists as the guaranteed-private path; once visibility is
|
|
||||||
selectable, a separate safe button is redundant. One-line change —
|
|
||||||
`ShowTestButton => ShowStreamActions && IsConnected` is a computed predicate, not a setting.
|
|
||||||
2. **This is the unit that first wires `UpdateBroadcast` into production.** It is the only code
|
|
||||||
that can change a broadcast's privacy, and it is currently dead. Wiring it is exactly when
|
|
||||||
private stops being guaranteed and becomes a user-selectable default. Correct at v1,
|
|
||||||
ruinous before — and "it's dead code, let me call it" is not a reason to do it early.
|
|
||||||
- A **dry run** may still be worth having at v1 on its own merits; that is a separate question
|
|
||||||
from the privacy mechanism and is **not** decided by the above.
|
|
||||||
|
|
||||||
- **Kill the dev multi-instance affordance.** `Helpers/InstanceProfile.cs` is already entirely
|
|
||||||
`#if DEBUG`, so a Release build ships as `DataRoot => DefaultRoot` / `WebViewDataFolder => null`.
|
|
||||||
Nothing to do but *keep it that way* — and re-prove it:
|
|
||||||
`InstanceIsolationTests.TheAlternateProfile_IsConfinedToTheDebugBuild` (source-level, always runs)
|
|
||||||
plus a Release build in which the `InstanceVariable` **field** is absent from metadata.
|
|
||||||
⚠️ Do NOT grep the binary for `YTLIVE_INSTANCE` — consts are inlined and appear in neither build.
|
|
||||||
- **TASK 36 is now shipped** — the branding flash composites into recordings and the stream. Test
|
|
||||||
VODs from an unlicensed instance carry the credit; use a license key for clean captures.
|
|
||||||
- Still queued from earlier: `scripts/publish.sh` (self-contained win-x64, no test artifacts,
|
|
||||||
Debug-only `InternalsVisibleTo`, no WPF trimming), and the `LlamaCasty.exe` assembly rename
|
|
||||||
(three pack URIs incl. `MainWindow.xaml:14` — do not rename `%APPDATA%\ytLlive`).
|
|
||||||
- ✅ **RESOLVED — do not re-open.** The `OverlayHost.xaml` copy claimed Polar unlocked *alerts*;
|
|
||||||
alerts were never gated by `IsPremium`. The file is **deleted outright** by the TASK 10 teardown
|
|
||||||
(TASK 48 item 0), so the copy is gone with it. The "or gate the alerts" option is **permanently
|
|
||||||
closed** — there is no feature gating, ever.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## YouTube Live API research facts
|
|
||||||
|
|
||||||
See [`TASKS/research-youtube-api.md`](TASKS/research-youtube-api.md) — authoritative facts for v3 build.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Out of product — permanently
|
|
||||||
|
|
||||||
These were explicitly ruled out:
|
|
||||||
|
|
||||||
- **D3D11 swap compositor** (superseded by software compositor; TASK 3 item 16)
|
|
||||||
- **Background removal + blur** (ONNX/DirectML; TASK 3 item 19) — ⛔ ruled out 2026-10-05
|
|
||||||
(*"no - not doing it... a vcam app does it free; an in-app model is a runtime, a GPU/driver
|
|
||||||
matrix, per-scene lighting tuning"*). **REVERSED 2026-10-08 — now a v1 requirement**
|
|
||||||
([`TASKS/task-51-webcam-bg-effects.md`](TASKS/task-51-webcam-bg-effects.md)): bundled
|
|
||||||
~2–5 MB ONNX model + onnxruntime, CPU-capable, no downloads, no NVIDIA. NVIDIA VFX SDK
|
|
||||||
(~1 GB per-client redistributable, RTX 2000+) remains ruled out.
|
|
||||||
- **OBS-style source expansion** (game capture, browser source, media playlist, VLC, color-key, MIDI — the minimal source set is deliberate; creators who need more have graduated to OBS)
|
|
||||||
- **Multi-layout** (auto-save, single layout; multi-layout = OBS territory)
|
|
||||||
- **Cross-process stream resume** (API makes it impossible; creator ruling 2026-09-01)
|
|
||||||
|
|
||||||
## Transitions & brand logo (status updated 2026-10-28)
|
|
||||||
|
|
||||||
- ✅ **Fade fix** — swaps fade from the outgoing picture (`TransitionFadeTests`). On-screen check pending.
|
|
||||||
- ✅ **Transition picker** in App Settings (type + duration), saved with the layout (`TransitionPickerTests`).
|
|
||||||
- ✅ **Wipe** — CPU blend, left-to-right reveal (`WipeTransitionTests`). Direction setting not yet added.
|
|
||||||
- ✅ **Transitions in edit mode and on output** — preview animates the outgoing picture for scene changes in every mode; program output transitions while recording or streaming. Fade/Move fade out, Wipe shrinks the outgoing picture, Cut is immediate. Guard: `PreviewTransitionTests`.
|
|
||||||
- ☐ **Move** — persistent layers (per-layer "carry across scenes" flag), per-scene placement, fixed z band.
|
|
||||||
- ✅ **Brand logo** — one locked "Brand logo" image layer per scene, directly above the background; file in
|
|
||||||
App Settings (imported to the asset table, the setting keeps the asset id); per-scene eye toggle; top-left
|
|
||||||
default. Tests: `BrandLogoTests`. On-screen check pending.
|
|
||||||
- ☐ **Cube** — GPU path gated on capability; CPU path only if it holds 60fps.
|
|
||||||
- Gear: right-click opens App Settings (built, on-screen check pending). Left-click menu stays for now.
|
|
||||||
|
|||||||
@@ -0,0 +1,476 @@
|
|||||||
|
# TASKS archive — snapshot 2026-10-29
|
||||||
|
|
||||||
|
The catalogue as it stood before the queue trim: 63 task rows with paragraph-length status prose,
|
||||||
|
plus the historical "open items" narration. Kept so nothing is lost; **not** the live queue — see
|
||||||
|
[`../TASKS.md`](../TASKS.md). Decisions that no longer govern are in
|
||||||
|
[`../docs/ai/decisions.md`](../docs/ai/decisions.md).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# ytLlive — Task List
|
||||||
|
|
||||||
|
> **Catalog:** task files live in [`TASKS/`](TASKS/) (one file per task). This file is the
|
||||||
|
> index. Memory-map conventions: [`schema.md`](schema.md); architecture/decisions: [`ai.md`](ai.md).
|
||||||
|
|
||||||
|
> **Checklist markers** — every task's Status line uses the same states:
|
||||||
|
> 1. ✅ — completed / shipped
|
||||||
|
> 2. 🔶 — in progress
|
||||||
|
> 3. ⏳ — blocked / waiting
|
||||||
|
> 4. ☐ — not started / queued
|
||||||
|
> 5. ❌ — exception (known-issue, deliberately excluded, or merged)
|
||||||
|
|
||||||
|
> **2026-09-01 — v1 = feature-complete ruling:** there is no v1.x. Everything queues to
|
||||||
|
> v1 or to **"Out of product — permanently"** (file end). Read those two sections before
|
||||||
|
> adding or reviving anything here.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Task catalog
|
||||||
|
|
||||||
|
| # | Task | Status | File |
|
||||||
|
|---|------|--------|------|
|
||||||
|
| 01 | Initial Scaffold | ✅ Done | [`TASKS/task-01-initial-scaffold.md`](TASKS/task-01-initial-scaffold.md) |
|
||||||
|
| 02 | YouTube OAuth2 Authentication | ✅ Done | [`TASKS/task-02-oauth2-auth.md`](TASKS/task-02-oauth2-auth.md) |
|
||||||
|
| 03 | Capture Pipeline (Scenes/Sources) | 🔶 In progress — 27/30 items done; items 16, 17, 20 open | [`TASKS/task-03-capture-pipeline.md`](TASKS/task-03-capture-pipeline.md) |
|
||||||
|
| 04 | RTMP Ingest to YouTube | ✅ Done — all 7 items shipped | [`TASKS/task-04-rtmp-ingest.md`](TASKS/task-04-rtmp-ingest.md) |
|
||||||
|
| 05 | Layout Persistence (SQLite) | ✅ Done | [`TASKS/task-05-layout-persistence.md`](TASKS/task-05-layout-persistence.md) |
|
||||||
|
| 06 | UI polish batch | ✅ Done | [`TASKS/task-06-ui-polish-batch.md`](TASKS/task-06-ui-polish-batch.md) |
|
||||||
|
| 07 | Meter scaling amplification | ✅ Done | [`TASKS/task-07-meter-scaling.md`](TASKS/task-07-meter-scaling.md) |
|
||||||
|
| 08 | Audio milestone | ✅ SHIPPED 2026-08-14 | [`TASKS/task-08-audio-milestone.md`](TASKS/task-08-audio-milestone.md) |
|
||||||
|
| 09 | YouTube Live Stream Management | ⏳ In progress — items 1–3, 4 shipped; item 5 open; item 6 locked (TASK 36) | [`TASKS/task-09-live-stream-management.md`](TASKS/task-09-live-stream-management.md) |
|
||||||
|
| 10 | Monetization: watermark-only paid delta (branding flash) | 🔶 **TEARDOWN, not a build** — Polar deleted in favour of Store IAP (2026-09-27); `$10/mo` + `$400` lifetime, no annual. **SUPERSEDED 2026-10-08** — free-forever ruling (watermark-free, gratuity/merch only); see TASK 54 | [`TASKS/task-10-monetization.md`](TASKS/task-10-monetization.md) |
|
||||||
|
| 11 | Post-pause polish batch (creator's 8 review issues) | ✅ SHIPPED 2026-08-15 | [`TASKS/task-11-polish-batch.md`](TASKS/task-11-polish-batch.md) |
|
||||||
|
| 12 | Master limiter on the live mix | ✅ Shipped 2026-08-15 — `Services/Audio/MasterLimiter.cs` (−1 dBFS ceiling, instant attack, smoothed release) applied at the end of `AudioMixer.FillAndMix` | [`TASKS/task-12-master-limiter.md`](TASKS/task-12-master-limiter.md) |
|
||||||
|
| 13 | Social media launch kit | 🔶 Scoped — queued after v1 | [`TASKS/task-13-social-launch-kit.md`](TASKS/task-13-social-launch-kit.md) |
|
||||||
|
| 14 | Creator feedback batch | 🔶 In progress — Branch 2 shipped | [`TASKS/task-14-creator-feedback-batch.md`](TASKS/task-14-creator-feedback-batch.md) |
|
||||||
|
| 15 | Stock scene background images | ✅ Shipped | [`TASKS/task-15-scene-backgrounds.md`](TASKS/task-15-scene-backgrounds.md) |
|
||||||
|
| 16 | Kill infinity display | ✅ Shipped | [`TASKS/task-16-kill-infinity-display.md`](TASKS/task-16-kill-infinity-display.md) |
|
||||||
|
| 17 | Web source rendering (WebView2) | ✅ Done | [`TASKS/task-17-web-source-rendering.md`](TASKS/task-17-web-source-rendering.md) |
|
||||||
|
| 18 | Local recording | ✅ Shipped `a9eb360` (2026-08-29) | [`TASKS/task-18-local-recording.md`](TASKS/task-18-local-recording.md) |
|
||||||
|
| 19 | Scene transitions | MERGED → TASK 23 (Control Surface UX) | [`TASKS/task-19-scene-transitions.md`](TASKS/task-19-scene-transitions.md) |
|
||||||
|
| 20 | Hotkeys (keyboard shortcuts) | ✅ Done — shipped 2026-08-26 | [`TASKS/task-20-hotkeys.md`](TASKS/task-20-hotkeys.md) |
|
||||||
|
| 21 | Media source (video file playback) | 🔶 In progress — UI picker remaining | [`TASKS/task-21-media-source.md`](TASKS/task-21-media-source.md) |
|
||||||
|
| 22 | Audio sync offset | ✅ Done (2026-08-31) | [`TASKS/task-22-audio-sync-offset.md`](TASKS/task-22-audio-sync-offset.md) |
|
||||||
|
| 23 | Studio mode | MERGED → TASK 23 (Control Surface UX) | [`TASKS/task-23-studio-mode.md`](TASKS/task-23-studio-mode.md) |
|
||||||
|
| 24 | Toast notifications | ✅ Done (2026-08-23) | [`TASKS/task-24-toast-notifications.md`](TASKS/task-24-toast-notifications.md) |
|
||||||
|
| 25 | Background consolidation | ✅ Done (2026-08-23) | [`TASKS/task-25-background-consolidation.md`](TASKS/task-25-background-consolidation.md) |
|
||||||
|
| 30 | Gear menu cleanup + Default Location for Recordings + preview layout | ✅ Done (2026-08-29) | [`TASKS/task-30-gear-cleanup-preview-layout.md`](TASKS/task-30-gear-cleanup-preview-layout.md) |
|
||||||
|
| 31 | SceneGraph component + static/dynamic compositor optimization | ✅ Done (2026-08-31) | [`TASKS/task-31-scenegraph-optimization.md`](TASKS/task-31-scenegraph-optimization.md) |
|
||||||
|
| 32 | Stream resilience | ☐ Queued (2026-09-01) | [`TASKS/task-32-stream-resilience.md`](TASKS/task-32-stream-resilience.md) |
|
||||||
|
| 33 | Bandwidth auto step-down | ☐ Queued (2026-09-01) | [`TASKS/task-33-bandwidth-step-down.md`](TASKS/task-33-bandwidth-step-down.md) |
|
||||||
|
| 34 | Scheduled streams (Text-drawer version) | ☐ Queued (2026-09-01) | [`TASKS/task-34-scheduled-streams.md`](TASKS/task-34-scheduled-streams.md) |
|
||||||
|
| 35 | Scene-linked audio | ☐ Queued (2026-09-01) | [`TASKS/task-35-scene-linked-audio.md`](TASKS/task-35-scene-linked-audio.md) |
|
||||||
|
| 36 | Gold pass | ☐ Queued (2026-09-01) | [`TASKS/task-36-gold-pass.md`](TASKS/task-36-gold-pass.md) |
|
||||||
|
| 37 | Defaults vs current layout split | ☐ Queued (2026-09-20) | [`TASKS/task-37-defaults-current-split.md`](TASKS/task-37-defaults-current-split.md) |
|
||||||
|
| 38 | Capture Window… backdrop (in-app window picker) | ✅ Done — shipped 2026-09-21 | [`TASKS/task-38-window-backdrop.md`](TASKS/task-38-window-backdrop.md) |
|
||||||
|
| 39 | YPP journey tracker (slice 1: current-scope data) | 🔶 Slice 1 ✅ — 2026-09-22; **refresh 403 fixed 2026-09-23** (auditDetails part dropped); slice 2 (Analytics + ETA) queued | [`TASKS/task-39-ypp-journey-tracker.md`](TASKS/task-39-ypp-journey-tracker.md) |
|
||||||
|
| 40 | App Settings round: active-camera picker + config dialog, gear move, defaults, accent | ☐ Queued (2026-09-22) — plan saved | [`TASKS/task-40-app-settings-round.md`](TASKS/task-40-app-settings-round.md) |
|
||||||
|
| 41 | Test Stream mode: private test broadcast + TEST drawer (mock chat input + simulated events) | ✅ Done (2026-09-22) | [`TASKS/task-41-test-stream-mode.md`](TASKS/task-41-test-stream-mode.md) |
|
||||||
|
| 42 | Top bar redesign: one REC-or-Stream surface, gear up top, sign-in/account zone world-gated | ✅ Done (2026-09-22) | [`TASKS/task-42-top-bar-redesign.md`](TASKS/task-42-top-bar-redesign.md) |
|
||||||
|
| 43 | Native events & alerts: chat parity (all six event types + server poll cadence) + six-animation native alert box | ✅ Done (2026-09-24) | [`TASKS/task-43-native-alerts.md`](TASKS/task-43-native-alerts.md) |
|
||||||
|
| 44 | TEST-tab chat fix: resolve liveChatId from snippet (not contentDetails) + poll until the broadcast is live | ✅ Done (2026-09-25); full suite 318/318 | [`TASKS/task-44-test-chat-fix.md`](TASKS/task-44-test-chat-fix.md) |
|
||||||
|
| 45 | TEST-tab chat fix #2: insert body must declare `snippet.type` (400 MISSING_REQUIRED_FIELD) | ✅ Done (2026-09-25) | [`TASKS/task-45-chat-insert-type.md`](TASKS/task-45-chat-insert-type.md) |
|
||||||
|
| 46 | Drawers: click outside the rail closes whichever is open — TEST added to the existing Stream Settings + YPP dismiss behavior | ✅ Done (2026-09-25) | [`TASKS/task-46-drawer-click-outside-close.md`](TASKS/task-46-drawer-click-outside-close.md) |
|
||||||
|
| 47 | Alert box video: built-in/custom alert clip (+ six-animation fallback) with read-time fade in/out + ticker (now in the preview too, 3 display methods) + alert volume in the live mix | ✅ Done (2026-09-26) | [`TASKS/task-47-alert-videos.md`](TASKS/task-47-alert-videos.md) |
|
||||||
|
| 48 | Distribution & packaging: **MSIX + Store IAP** | ⏸ **DEFERRED 2026-10-26 — revisit near v1, not now** (creator: the remaining programming work is far from release, and a complete UX redesign comes first). Frozen until then: items 6-8, the signing decision, the updater choice, and the route question itself. History: **✅ route decided 2026-09-27 (Store MSIX + Store IAP)**; **item 1 (bundle ffmpeg) SHIPPED 2026-09-28**; **item 2 (`Package.appxmanifest` + `scripts/package-msix.sh`) SHIPPED 2026-10-22 — a real 159 MB `LlamaCasty.msix` packs**; **item 3 (remove the Velopack updater) SHIPPED 2026-10-22** — the Store updates the app. Open: items 6-8 (recording invariant, disqualifiers, pre-submission gates); items 4/5 are the creator's (Certification Kit, Partner Center listing) | [`TASKS/task-48-distribution-msix.md`](TASKS/task-48-distribution-msix.md) |
|
||||||
|
| 49 | Chat profanity filter (local, opt-in, non-persistent, user word list) | ☐ Queued (2026-09-27) | [`TASKS/task-49-chat-profanity-filter.md`](TASKS/task-49-chat-profanity-filter.md) |
|
||||||
|
| 50 | One-button "Publish this video" (resumable upload of the local recording) | ☐ Queued (2026-09-28) | [`TASKS/task-50-publish-recording.md`](TASKS/task-50-publish-recording.md) |
|
||||||
|
| 51 | **Webcam background effects: Remove + Blur** | ✅ **Built 2026-10-09** (v1 requirement) — bundled MediaPipe Selfie Segmenter → ONNX (verified vs Google's runtime), Remove + Blur with strength, per-scene config persisted, one processing point in CameraManager, radio-pill UI in the webcam's Layers properties. Creator check 2026-10-09: **Remove jitter FIXED** (temporal mask smoothing 0.75/0.25, OBS/Jitsi-derived) and **Blur "heavy" FIXED** (quadratic radius 1→6 small px, default 0.5 = 2, StreamFX-consensus); recheck on the real camera pending | [`TASKS/task-51-webcam-bg-effects.md`](TASKS/task-51-webcam-bg-effects.md) |
|
||||||
|
| 52 | **Zoom box (anchored 2× magnifier)** | ✅ Done — shipped 2026-10-08 (3 creator corrections during the build: loupe → anchored capture over the full composite, drawn last → never shows the dim shading) | [`TASKS/task-52-zoom-box.md`](TASKS/task-52-zoom-box.md) |
|
||||||
|
| 53 | **Output-format verification: Shorts/TikTok geometry (9:16)** | ☐ Queued (2026-10-08) — output formats never tested end-to-end; pin + prove the vertical geometry | [`TASKS/task-53-output-formats.md`](TASKS/task-53-output-formats.md) |
|
||||||
|
| 54 | **Marcom round: free-forever positioning + merch storefront** | 🔶 In progress — llamacasty.com copy live 2026-10-08 (pricing stripped); merch POD + app About links queued | [`TASKS/task-54-marcom-free-merch.md`](TASKS/task-54-marcom-free-merch.md) |
|
||||||
|
| 55 | **Disk hygiene: log rotation + low-disk guard** | 🔶 In progress — **slice 1 shipped 2026-10-22** (`startup.log` rolls at 5 MB to `startup.1.log`, one copy kept — it was uncapped at 23 MB and growing every few seconds); slices 2 (temp alert-clip cleanup) + 3 (low-disk guard) open | [`TASKS/task-55-disk-hygiene.md`](TASKS/task-55-disk-hygiene.md) |
|
||||||
|
| 56 | **Pre-publication secret scan (full git history)** | ✅ Done — 2026-10-22, **CLEAN** (432 reachable commits + 63 dangling + worktree; 4 hits, all false positives: a `your-client-secret` doc placeholder and a test dummy — nothing to rotate). ⚠️ the repo was **already public** when the scan ran (anonymous GET → 200), so the gate came late — but nothing was exposed | [`TASKS/task-56-secret-scan.md`](TASKS/task-56-secret-scan.md) |
|
||||||
|
| 57 | **Vertical (9:16) tier camera placement — the "vv" feature** | ✅ **Both units shipped 2026-10-21** (Unit 1 = Live scene: own placement per tier — small tile, circle-or-rect, one of six spots; drag-snap + manual entry; 16:9 restored exactly. Unit 2 = Chat scene: rect only — the circle is not offered — the tile or one whole 607×540 area) | [`TASKS/task-57-vertical-camera-layout.md`](TASKS/task-57-vertical-camera-layout.md) |
|
||||||
|
| 58 | **Properties-panel style consistency (the theme owns the look)** | ✅ Done — 2026-10-21 (the creator's "why is the drop-down not in the same style as the others?" — the drop-downs/fields/check boxes had been hand-painted instead of themed, so WPF drew the light system template; now every one carries a theme style, guarded by a test) | [`TASKS/task-58-properties-style-consistency.md`](TASKS/task-58-properties-style-consistency.md) |
|
||||||
|
| 59 | **The properties panel is a hierarchy (titles own their content)** | ✅ Done — 2026-10-21 (the creator's ruling: a "Shape" title above the Mirror/Rect row, the drag hint indented under it, the same for Geometry / Border Color / Border Thickness, Remove + Blur under Background, Strength under Blur — and the shape became a CHOICE: Rect | Circle with Rect selected by default) | [`TASKS/task-59-properties-hierarchy.md`](TASKS/task-59-properties-hierarchy.md) |
|
||||||
|
| 60 | **The border-colour drop-down names every colour** | ✅ Done — 2026-10-21 (the creator's "the #hex values are good, but add a corresponding color name/label next to the value" — the 14 colours moved out of the click handler into `Models/BorderColorPalette.cs`, and each row now reads "#e94560 Crimson") | [`TASKS/task-60-border-color-names.md`](TASKS/task-60-border-color-names.md) |
|
||||||
|
| 61 | **The geometry fields share one fixed width** | ✅ Done — 2026-10-21 (the creator's "the Y and H boxes should be the same width as the X and W boxes and those widths should be fixed to accomodate the max number of possible digits" — the Y/H fields used to stretch to fill the row; all four are now 44px, wide enough for 1920 plus a sign) | [`TASKS/task-61-geometry-field-widths.md`](TASKS/task-61-geometry-field-widths.md) |
|
||||||
|
| 62 | **The border-colour field shows the colour's name next to the hex** | ✅ Done — 2026-10-21 (the creator: "the border color drop down box content should also include the name of the color next to the hex value as they in the drop-down list box" — the field keeps the hex editable and the palette's name sits right beside it, empty for a custom hex) | [`TASKS/task-62-border-colour-name-in-the-field.md`](TASKS/task-62-border-colour-name-in-the-field.md) |
|
||||||
|
| 63 | **The border-colour picker is the app's own drop-down** | ✅ Done — 2026-10-21 (popup row click deselection fixed 2026-10-22: `LeftPanel.IsDescendantOf` now crosses `PopupRoot` → `PART_Popup` via `LogicalTreeHelper.GetParent` when `VisualTreeHelper.GetParent` returns `null`, so clicking a colour in the open `YtComboBox` updates `BorderColor` instead of exiting properties) | [`TASKS/task-63-border-colour-app-dropdown.md`](TASKS/task-63-border-colour-app-dropdown.md) |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Research index
|
||||||
|
|
||||||
|
| Research | Covers |
|
||||||
|
|---|---|
|
||||||
|
| [`TASKS/research-youtube-api.md`](TASKS/research-youtube-api.md) | YouTube Live Streaming API v3 — authoritative facts for the v3 build |
|
||||||
|
| [`TASKS/research-store-certification.md`](TASKS/research-store-certification.md) | **Windows Store policies 7.20 + MSIX packaging + code-signing economics** (2026-09-27). Feeds TASK 48. Records which policies bind, which don't, and why — read it before re-litigating distribution |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Open items (at a glance)
|
||||||
|
|
||||||
|
### Creator-reported batch (2026-09-26) — proof-of-concept round, recordings used as the reference
|
||||||
|
|
||||||
|
The creator is **not** getting YouTube private test recordings saved, so local recordings are the
|
||||||
|
proof of concept for compositing; the live path is assumed to share it. **Verified true, not assumed:**
|
||||||
|
one `_framePump` is built in the `MainViewModel` ctor with a single `brandFlash:` callback, and BOTH
|
||||||
|
`Streaming.Operations.cs:68` (go-live) and `:199` (record) call that same `StartAsync` — there is no
|
||||||
|
second encoder path needing a "redirect". Record+simulcast is one ffmpeg with two outputs.
|
||||||
|
|
||||||
|
1. ✅ **Recording save dialog: Cancel discards** — was silently saving under the default name. Enter
|
||||||
|
accepts the default; Cancel/Escape/X **deletes** the footage and names the file if the delete fails.
|
||||||
|
`MainViewModel.CompleteRecordingSave` (internal) + `ytLive.Tests/RecordingSaveDialogTests.cs`.
|
||||||
|
2. ✅ **Brand flash in ALL scenes + in recordings** — was gated on `IsLive` via
|
||||||
|
`UpdateLiveVisuals()`, so a recording made without ever going live carried no credit. The
|
||||||
|
presenter is now `Start()`ed once in the `MainViewModel` ctor and never stopped on live-state
|
||||||
|
churn; the licence gate rides on `IsPremium` → `Enabled` as before. Also fixed the
|
||||||
|
premium-edge/restart trap that app-lifetime exposed. Tests: `BrandFlashOutputTests`
|
||||||
|
(12 facts) incl. `Credit_IsComposited_WithNoLiveSession_AndSoARecordingCarriesIt` and
|
||||||
|
`ADowngradeMidSession_RestartsTheCadenceTimer`.
|
||||||
|
3. ✅ **Ticker confined to the alert box** — was a global 1920×48 bar at the top edge; the
|
||||||
|
creator wants it over the *Stream Alerts video*. The strip now renders at the alert box's own
|
||||||
|
size and carries the box's origin on a new `VideoFrame.Placement`; every blit site reads
|
||||||
|
`OriginX/OriginY` instead of a literal `0, 0`, and the preview element is bound to the same
|
||||||
|
rect so preview and output cannot drift. No alert box ⇒ no ticker. Height clamped to the 48px
|
||||||
|
strip; `CopyStrip` clips rows so a short box can't overrun the buffer. Tests: 3 new facts
|
||||||
|
incl. an output-side `SceneCompositor.Render` check that the pixels land in the box and NOT at
|
||||||
|
the top-left corner.
|
||||||
|
4. ☐ **Two instances still refuse to run.** `InstanceProfile` isolates layout/auth/log/WebView, but
|
||||||
|
`FfmpegLocator._toolsDir` is still the hardcoded shared `%APPDATA%\ytLlive\tools` and both
|
||||||
|
instances can `Directory.CreateDirectory` + `ExtractBinaries` into it. Also the launch method is
|
||||||
|
unconfirmed: `dotnet run` while the first app holds `bin/…/ytLive.exe` dies with `MSB3027` before
|
||||||
|
any instance starts — that is a build-output lock, not a log conflict.
|
||||||
|
5. ☐ **Post-session efficacy report** — on end of stream *or* recording, report what worked and what
|
||||||
|
failed, including the **dropped frames** the creator saw. `CurrentHealth` already tracks
|
||||||
|
`DroppedFrames`/`StreamDuration`; `SessionTeardownTests` is the natural home for the roll-up.
|
||||||
|
- **TASK 3** — items 16 (Text source) + 20 (RewardEvent capture → SQLite, Alerts' persistence half) open; **17 (Alerts) is DONE via TASK 43 (2026-09-24) — native six-event alert box**
|
||||||
|
- **TASK 9** — item 5 open (webcam identity key reconciliation)
|
||||||
|
- **TASK 10** — the Velopack update URL is **RETIRED (2026-10-22)**: the updater was deleted (TASK 48 slice 3) and the Store updates the app
|
||||||
|
- **Shipping / release build (creator-queued 2026-09-26)** — no publish config exists yet:
|
||||||
|
the csproj has only `OutputType=WinExe` + `TargetFramework`, so a plain `dotnet publish`
|
||||||
|
is **framework-dependent** (customer needs the .NET 8 Desktop Runtime preinstalled).
|
||||||
|
`Distribution.md` targets a self-contained ~80–120MB `LlamaCasty.exe`. ⛔ **The Polar
|
||||||
|
File-Download benefit is dead** — the Store hosts and updates the app, so there is no upload
|
||||||
|
step (TASK 48). Two deliverables:
|
||||||
|
1. **`scripts/publish.sh`** wrapping
|
||||||
|
`dotnet publish ytLive.csproj -c Release -r win-x64 --self-contained true -o ./publish/win-x64`,
|
||||||
|
and **asserting the output contains no test/xunit artifacts**. (The compile side needs
|
||||||
|
nothing — the tests are a separate project with a one-way reference, plus explicit
|
||||||
|
`<Compile Remove="ytLive.Tests\**" />` in `ytLive.csproj`; the risk is *packaging*:
|
||||||
|
`ytLive.Tests/bin/.../ytLive.exe` exists and would ship a Debug build + test DLLs if
|
||||||
|
anyone ever zips a bin folder by hand. Never copy folders; always publish.)
|
||||||
|
2. **Condition `InternalsVisibleTo("ytLive.Tests")` to Debug only** (`ytLive.csproj:78-82`
|
||||||
|
is unconditional, so it ships in Release) — it hands the test assembly name to anyone
|
||||||
|
decompiling and advertises that `internal` members are externally reachable, which
|
||||||
|
conflicts with the obfuscation posture in `Distribution.md` §1.2.
|
||||||
|
3. **Decide the shipped exe name.** `Distribution.md` promises the customer
|
||||||
|
`LlamaCasty.exe`; `<AssemblyName>ytLive</AssemblyName>` actually publishes `ytLive.exe`.
|
||||||
|
Renaming the AssemblyName is 4 lines (1 csproj + 3 pack URIs that spell the assembly
|
||||||
|
name — `MainWindow.xaml:14` is the **window icon**, so missing it ships a broken
|
||||||
|
taskbar/Alt-Tab icon). Namespaces stay `ytLive.*`; the 230-file re-brand is NOT
|
||||||
|
wanted. Do **NOT** touch the `%APPDATA%\ytLlive` folder — breaking (orphans users'
|
||||||
|
layout DB). See the naming table in `ai.md`.
|
||||||
|
Do **NOT** add `-p:PublishTrimmed=true`: WPF is not trim-compatible and it fails at
|
||||||
|
runtime (BAML/XAML resource resolution), not at build time. `PublishReadyToRun` is safe.
|
||||||
|
- **TASK 12** — queued future
|
||||||
|
- **TASK 13** — queued post-v1
|
||||||
|
- **TASK 14** — Branch 2 shipped; branch 3+ in progress
|
||||||
|
- **TASK 21** — UI picker slice remaining (Windows-only verification pending)
|
||||||
|
- **TASK 32–36** — all queued future work (2026-09-01)
|
||||||
|
- **✅ TASK 57 — the "vv" vertical camera layout** (both units shipped 2026-10-21). The vertical
|
||||||
|
tier is a centred band crop of the same master, so the 16:9 camera placement falls outside the
|
||||||
|
cropped window and the creator is not in the vertical stream at all. **Unit 1:** each scene keeps
|
||||||
|
its own vertical placement (position, size, shape); the Live scene gets a small tile in one of
|
||||||
|
six spots (top/bottom × left/centre/right), circle or rect, placed by drag-snap or typed into the
|
||||||
|
new Geometry fields; switching back to 16:9 restores the desktop layout exactly. **Unit 2:** the
|
||||||
|
Chat scene in the vertical tier — rect only (the circle option is not offered and the model
|
||||||
|
refuses it), the small tile or enlarged to fill one whole 607×540 area, top or bottom by where the
|
||||||
|
camera is (the creator's table, 2026-10-17). **Left:** the creator's hands-on check of the whole
|
||||||
|
vv feature. See [`TASKS/task-57-vertical-camera-layout.md`](TASKS/task-57-vertical-camera-layout.md)
|
||||||
|
and `ai.md` → "Vertical (9:16) tier camera placement".
|
||||||
|
- **Webcam resource lifecycle (2026-09-17)** — startup slice shipped (OS poll at start, single-camera
|
||||||
|
auto-lock, persistent red alert in the Layers panel on lock failure, re-polls until resolved); gate
|
||||||
|
slice shipped same day — webcam = app-level default, one per stream per scene, Add places the
|
||||||
|
default directly, offered only when a camera is ATTAINABLE (identity + live session, not just a
|
||||||
|
saved identity), app base lock keeps the session after the last placement is removed, startup
|
||||||
|
adopts a solo camera as default. TASK 26's app-wide gate superseded by creator directive. The App
|
||||||
|
Settings webcam selector is now **TASK 40 Unit A** (plan saved 2026-09-22). Remaining next slice
|
||||||
|
(user-queued): static (+) catalog rows (Background, YouTubeEvent, quoted labels) with reason-greying.
|
||||||
|
- **🔶 Webcam cadence → resolution — IN PROGRESS, creator-queued 2026-10-05** (DHH/lipreading: the
|
||||||
|
webcam judders, ~1 hitch in 5, invisible in the output file). **UNIT 0 shipped** (counters +
|
||||||
|
`Helpers/FrameCadence.cs`; see [`docs/ai/frame-pipeline.md`](docs/ai/frame-pipeline.md) → "Frame cadence"). **Needs a creator recording before the
|
||||||
|
next unit.** Remaining units, all agreed 2026-10-05, one Good Dog test each:
|
||||||
|
- **⛔ UNIT 1 IS NOT NEXT — re-scoped 2026-10-05.** The first real reading exonerated the camera:
|
||||||
|
it delivers 30.0/s with zero hitches; the compositor manages **6.8 composites/s at ~141ms each**,
|
||||||
|
so the file is **88.7% duplicate frames** and that is the judder. 720p triples the bytes stretched
|
||||||
|
per render on an already-over-budget path. Keep `ExclusiveControl` + 720p as a **sharpness** win
|
||||||
|
and schedule it AFTER the compositor work.
|
||||||
|
- **✅ SHIPPED 2026-10-16 (measurement only): per-element composite timing + a scene dump.**
|
||||||
|
`CompositeTimings` + the pump's `FramePump parts (N renders/5s): …` line and
|
||||||
|
`FramePump scene dump:` block (see [`docs/ai/frame-pipeline.md`](docs/ai/frame-pipeline.md) → "Per-element composite timing + scene dump").
|
||||||
|
One integration test: `ytLive.Tests/CompositeTimingTests.cs`. **NOW WAITING ON A CREATOR TAKE
|
||||||
|
(Release):** the parts line must name which of the 6 elements eats the ~140ms and the dump must
|
||||||
|
show the shape of the slow take vs the fast one (10:03 → 12:01, 29–34ms → 143–155ms, same shape).
|
||||||
|
**No fix until a real reading names the element** — the next unit is the fix that reading dictates.
|
||||||
|
- **📖 FIRST INSTRUMENTED TAKE READ (2026-10-16, Release, recording, 1920×1080 1:1 master tier):
|
||||||
|
THE JUDDER DID NOT REPRODUCE — and no element is expensive.** 60 composites/s, avg render
|
||||||
|
1.0–1.1ms, biggest element in the scene = webcam **0.4ms** (raster 0.2ms), backdrop 0.2ms, the
|
||||||
|
other four under the 0.1ms floor; webcam 30.0/s at the resolver (longest gap 50ms); the FILE holds
|
||||||
|
29.6 distinct webcam images/s with 82% of images held exactly 2 frames. **Nothing to fix yet.**
|
||||||
|
The historic slow numbers are different configurations, not a slow scene — Oct 9 19:48 was the
|
||||||
|
**vertical** tier (`comp=608x1080`, 45ms) and Oct 5 12:01's geometry was never logged (the
|
||||||
|
`scene=/comp=` suffix didn't exist); every slow window shows `cache xR/0H` (the whole-frame cache
|
||||||
|
never reusing) while the healthy one shows `151R/150H`, and one Oct 5 take latches fast→slow
|
||||||
|
mid-take. **NEXT: a Release take in the failing geometry** — vertical tier first, then the 21:9
|
||||||
|
display config — and only that take's `parts` line names the stage. See `ai.md` → "✅ What the
|
||||||
|
first instrumented take said".
|
||||||
|
- **Unit 2 (later, unchanged):** blinking amber **"SD" badge**, preview only, never in the
|
||||||
|
recording/stream, when a better format was available and not obtained. Top-right corner, or the
|
||||||
|
1:30 rim point when the clip is round.
|
||||||
|
- **Deferred to after Unit 1:** `MediaCaptureSharingMode.ExclusiveControl` + MJPG ≥30fps up to
|
||||||
|
1280×720 via the existing `SetMediaStreamPropertiesAsync` path (refused only because
|
||||||
|
`SharedReadOnly`); same-camera `SharedReadOnly` retry. **The creator reversed the ban on taking an
|
||||||
|
exclusive camera lock.** API probe already done — see HANDOFF.md, incl. the `SetFormatAsync`
|
||||||
|
dead end.
|
||||||
|
- ⛔ **No fallback-camera feature, ever** — *"that's bypassing the user's explicit choice."*
|
||||||
|
- **Background removal + blur = v1 requirement (2026-10-08)** — reverses the 2026-10-05
|
||||||
|
exclusion. Bundled ONNX + onnxruntime, no downloads, no GPU requirement. Per-element
|
||||||
|
Remove/Blur + strength. See [`TASKS/task-51-webcam-bg-effects.md`](TASKS/task-51-webcam-bg-effects.md).
|
||||||
|
- **TASK 40 — App Settings round** — plan saved 2026-09-22 (`TASKS/task-40-app-settings-round.md`),
|
||||||
|
four units, one Good Dog test each: **A** active web camera section under Recordings (Change…
|
||||||
|
sub-menu = live enumeration incl. vcams; Tune… config dialog via `ICameraControlProbe`, live-only
|
||||||
|
tweaks), **B** gear moved top-left right of the wordmark (left-click App Settings, right-click
|
||||||
|
Bug/Feature/About), **C** persist output resolution default + surface default scene
|
||||||
|
transition/duration + confirm-before-End, **D** accent/theme color (consolidate 69 hardcoded
|
||||||
|
accent sites into a DynamicResource brush + picker). **Unit B (gear) is DONE early** — shipped 2026-09-22
|
||||||
|
as part of TASK 42 (top bar redesign): gear top-right of the brand, single click = the Settings/Bug/
|
||||||
|
Feature/About menu, removed from BottomBar. A + C + D remain queued.
|
||||||
|
- **TASK 37** — queued (2026-09-20): split the layout data into a `default` set (the established DB)
|
||||||
|
and a `current` set carrying the build-id; a saved `current` is honored only by the same build-id,
|
||||||
|
otherwise defaults load — enables one-click revert to defaults too. Capture needed work OUT of
|
||||||
|
current scope here; do not bolt it onto an in-flight change.
|
||||||
|
- **TASK 41 — Test Stream mode** — DONE 2026-09-22 (`TASKS/task-41-test-stream-mode.md`): a Test
|
||||||
|
button next to Start runs the real private-only go-live pipeline with `IsTestStream` set, and the
|
||||||
|
TEST drawer (right rail, third tab) hosts Mock Chat Input (real `liveChat/messages.insert` → ~2s
|
||||||
|
poll round-trip renders on the overlay) + simulated Subscriber/New Member/Super Chat events that
|
||||||
|
inject through the poller's `MessageReceived` seam (`IsSimulated` — YouTube's insert API only
|
||||||
|
creates text, so these are local-only by design; styled member/SuperChat rows validate the chat
|
||||||
|
overlay). **Real Stinger/TTS alert widgets resolved by TASK 43's native alert box.**
|
||||||
|
- **TASK 43 — Native events & alerts** — **DONE 2026-09-24** (`TASKS/task-43-native-alerts.md`):
|
||||||
|
StreamElements replaced with NATIVE YouTube events. Chat parity half: `YouTubeChatService` now
|
||||||
|
decodes all SIX `liveChat/messages` event types (`ChatEventKind` on `ChatMessage`) — the four
|
||||||
|
formerly-empty event rows fixed — and re-arms its poll on the server's `pollingIntervalMillis`
|
||||||
|
(streamList semantics, clamp 1000–6000ms, `maxResults=2000`). Alerts half: a new
|
||||||
|
**`SourceType.AlertBox`** ("Stream Alerts", one per layout) is an OBS-style celebration zone
|
||||||
|
where the six events play **six unique branded animations** (`AlertRenderer` + the
|
||||||
|
`AlertOverlayLayer` component; 33ms ticker, deterministic `Advance` test clock; idle =
|
||||||
|
transparent). Creator rulings baked in: free-sub mention = chat row only (no sub alert — YouTube
|
||||||
|
emits none), NO viewer count, every alert card carries the "made with LlamaCasty!" brand line.
|
||||||
|
- **TASK 44 — TEST-tab chat fix** — **DONE 2026-09-25** (`TASKS/task-44-test-chat-fix.md`):
|
||||||
|
the open creator report ("I still cannot post a chat message in the TEST tab") was a single
|
||||||
|
cause: `GetBroadcastLiveChatIdAsync` read `contentDetails.liveChatId` (lifeChatId lives in
|
||||||
|
**`snippet`**) AND ran before the broadcast was live (RTMP push flips ready→live via
|
||||||
|
enableAutoStart; YouTube only populates the id on live broadcasts — official GetLiveChatId.java
|
||||||
|
sample lists broadcastStatus=active). Fixed by reading `snippet.liveChatId` and polling with a
|
||||||
|
bounded retry after the frame pump starts; chat stays non-fatal.
|
||||||
|
- **TASK 47 take four (2026-09-26)** — the announcement strip was **output-only** (a
|
||||||
|
frame-pump callback with no preview consumer, since a master-width global overlay cannot
|
||||||
|
ride a per-element `Image`) and the marquee was paced at a fixed `140px/s` (~17s per
|
||||||
|
pass, so a 10s alert showed the text once). Now: a `tickerPreviewSink` publishes it to a
|
||||||
|
global `AlertTickerElement` in `PreviewPane.xaml` (mirroring `SocialBarElement`), and the
|
||||||
|
creator picks **Scroll / Flash / Solid** in the panel, with Scroll paced in *reads per
|
||||||
|
alert* (3 inside a 10s alert) rather than px/s. 15 new facts; suite 339/339.
|
||||||
|
- **TASK 47 — Alert box video** — **DONE 2026-09-26** (`TASKS/task-47-alert-videos.md`):
|
||||||
|
the TASK 43 alert box now plays a **video** on every alert — a shipped built-in mp4
|
||||||
|
(`Assets/alert-default.mp4`, stamped into the `Asset` table at startup) that the creator can
|
||||||
|
swap for their own file via the new Stream Alerts section (path only, never stored in the DB;
|
||||||
|
six `AlertRenderer` animations remain the fallback). Per-alert decode via a new
|
||||||
|
`IAlertClipDecoder` fx (ffmpeg rawvideo bgra + f32le pipes, real-time paced, disposed at
|
||||||
|
drain); ~0.3s fade-in/out rides the alpha envelope + scales the audio (mixed into the live
|
||||||
|
stream at unity — **no duck**, a per-alert Volume slider instead); an auto-composed message
|
||||||
|
**ticker** ("Funder — Super Chat · $10.00") scrolls along the very top of the frame
|
||||||
|
(never-baked dynamic overlay threaded through SceneCompositor + FramePump). Creator rulings:
|
||||||
|
custom + fallback (not either/or), ticker on top, no ducking.
|
||||||
|
- **TASK 36 item 6 (release engineering) is now TASK 48** (2026-09-27) — code signing, the
|
||||||
|
installer, and the Velopack update URL have one owner instead of three scattered mentions.
|
||||||
|
**EULA draft/review and the THIRD-PARTY-NOTICES license-texts gate stay in TASK 36 item 6**,
|
||||||
|
as does the agreed build-posture ceiling (HARDENED + MOCK_REWARDS, additive-only).
|
||||||
|
- **TASK 48 — distribution & packaging** — **✅ ROUTE DECIDED 2026-09-27: Microsoft Store,
|
||||||
|
MSIX package, Store IAP.** Creator's criteria, verbatim: *"zero headaches, minimal
|
||||||
|
maintenance (for me) while still providing accountability and a reasonably easy upgrade
|
||||||
|
flow."* Route A is the only option where all four are solved by handing the work to
|
||||||
|
Microsoft rather than to a certificate vendor — **$0/yr, no certificate, no HSM, no annual
|
||||||
|
renewal, no SmartScreen ramp**, plus Store auto-update, Store-side payments/entitlements/
|
||||||
|
refunds/support, and Microsoft review as the accountability layer. The rejected options
|
||||||
|
(Store+Polar, Polar-hosted + own cert, Store-EXE) are recorded with their reasons in
|
||||||
|
`TASKS/research-store-certification.md` §3 so the decision is not reopened.
|
||||||
|
- **The consequence that makes it cheap: the entire licensing subsystem is deleted.**
|
||||||
|
`Services/PolarLicenseService.cs` (HTTP validation, swallowed network failures, the
|
||||||
|
ignored `expires_at`), `Helpers/PolarLicense.cs`, `ViewModels/MainViewModel.License.cs`
|
||||||
|
(`PremiumUrl`, customer portal, the `OfflineGracePeriod = 14 days` subscription-era
|
||||||
|
artifact, renewal/lapse copy), and the incorrect "Polar unlocks alerts" string in
|
||||||
|
`Controls/OverlayHost.xaml` all become dead code. `IsPremium` is derived from the **Store
|
||||||
|
entitlement** instead of a remote HTTP call — one locally cached bit refreshed by the OS,
|
||||||
|
and the whole "network flaky → app thinks I'm expired" bug class disappears with the
|
||||||
|
offline-grace machine.
|
||||||
|
- **Unchanged:** the watermarks posture. Free gets everything; the branding flash stays the
|
||||||
|
ONLY paid delta (TASK 36 item 2). Store IAP changes how the bit is *obtained*, never what
|
||||||
|
it *gates*.
|
||||||
|
- **Both formerly-open questions are now CLOSED (2026-09-27).** Store revenue share is
|
||||||
|
**verified at 15%, subscriptions included** (ADA v8.10 §6(b)(i) — read from the PDF, not a
|
||||||
|
search excerpt), and the IAP tier shape is **decided: `$10/mo` subscription + `$400`
|
||||||
|
lifetime, no annual**, declared in Partner Center as two products. Full detail in
|
||||||
|
`TASKS/task-48-distribution-msix.md` item 0. ⚠️ Do **not** re-open the fee question without
|
||||||
|
re-reading the ADA, and do not *assume* 15% if the terms ever move.
|
||||||
|
- **✅ item 1 SHIPPED 2026-09-28 — bundle ffmpeg instead of downloading it.** The app no
|
||||||
|
longer fetches an executable at runtime (Store policy 10.2.2, and the pin 404'd on the
|
||||||
|
creator's first real recording on 2026-09-01). `scripts/fetch-ffmpeg.sh` populates a
|
||||||
|
gitignored `ffmpeg/` from a **SHA-256-verified** pinned month-end BtbN artifact; the csproj
|
||||||
|
copies it to output/publish and **fails the build** if it is missing; `FfmpegLocator` lost its
|
||||||
|
downloader and now resolves **bundle → PATH**. Immutable tag recorded per the licensing rule:
|
||||||
|
`autobuild-2026-08-31-13-27`. `ffplay.exe` is not shipped. Verified: ffmpeg was the **only**
|
||||||
|
download-and-execute third-party binary — `e_sqlite3.dll`/`WebView2Loader.dll` already ship
|
||||||
|
via NuGet and OpenH264 is compiled into `avcodec-63.dll`. **Remaining gaps are not bundling
|
||||||
|
problems:** the WebView2 Evergreen *runtime* is a machine prerequisite (item 2), and
|
||||||
|
**Velopack's updater downloads and executes — its teardown is a compliance action.**
|
||||||
|
Detail: `TASKS/task-48-distribution-msix.md` §1.
|
||||||
|
- **⏸ TASK 48 / ALL distribution & packaging work — DEFERRED 2026-10-26 (creator ruling). Do not
|
||||||
|
start, plan, or re-litigate any of it until we are close to v1.** Verbatim reason: *"we're not
|
||||||
|
anywhere close to release just considering the remaining programming tasks"* and *"I am getting
|
||||||
|
ready to do a complete UX redesign"* — that redesign began 2026-10-26 (see [`HANDOFF.md`](HANDOFF.md)
|
||||||
|
for landed UI slices and current worktree). Packaging, signing, installer and updater decisions
|
||||||
|
would chase UI and scope that are still changing, so the urgency is withdrawn, not the task.
|
||||||
|
What is frozen:
|
||||||
|
- **TASK 48 items 6-8** (recording invariant comment, disqualifier re-check, pre-submission gates)
|
||||||
|
and the creator's items 4/5 (Certification Kit, Partner Center listing).
|
||||||
|
- **The route question itself.** The map currently contradicts itself: `ai.md` →
|
||||||
|
"Windows packaging & distribution" says the **Microsoft Store route is dead (2026-10-22)** —
|
||||||
|
direct download from `llamacasty.com` + Steam, ship unsigned — and `MONETIZATION.md`/`MARCOM.md`
|
||||||
|
agree, while *this file*, `TASKS/task-48-distribution-msix.md` and `HANDOFF.md` still read
|
||||||
|
"Microsoft Store / Store IAP decided". **Resolve it in ONE distribution sweep at the revisit —
|
||||||
|
do not patch it piecemeal now.**
|
||||||
|
- **Code signing** (ship unsigned vs buy OV/EV) — current recorded posture: ship unsigned and
|
||||||
|
accept the "unrecognized publisher" warning until download reputation accrues.
|
||||||
|
- **The updater.** Deleting Velopack (TASK 48 slice 3) left the app with **no update path at all**,
|
||||||
|
and `ytLive.Tests/StorePackagingTests.cs` currently *asserts that no updater exists*. That guard
|
||||||
|
must be **rewritten with the chosen updater** at the revisit, never left to veto one.
|
||||||
|
- The MSIX package + `scripts/package-msix.sh` still build (159 MB artifact) — a working artefact,
|
||||||
|
submitted nowhere. Leave it alone.
|
||||||
|
- **TASK 10 is now a teardown, not a build** (2026-09-27) — Store IAP deletes the Polar
|
||||||
|
licensing path. The Polar fee tables, the perpetual-key model, and the customer-portal
|
||||||
|
plumbing in `MONETIZATION.md` (gitignored, local) are obsolete; the **watermark-only
|
||||||
|
entitlement and the branding-flash delta carry over unchanged**. The stale Polar product
|
||||||
|
(`$99/yr`, id `d105dfa1-…`) is not reused — Store IAP products are declared in Partner
|
||||||
|
Center instead.
|
||||||
|
- **Pricing — ✅ DECIDED 2026-09-27: `$10/mo` subscription, or `$400` lifetime. No annual.**
|
||||||
|
`MONETIZATION.md` carries a **one-time perpetual** decision from 2026-09-21 (`$29` founder →
|
||||||
|
`$49` list) that explicitly superseded the old `$99/yr` subscription. The creator ruled against
|
||||||
|
it and back to a subscription, anchored on **Meld** (`$20/mo = $240/yr` entry — the only
|
||||||
|
competitor sharing our shape: streaming tool, subscription, YouTube-native). The creator's own
|
||||||
|
read: **"XSplit only has legs because of their vcam product"** — its price is carried by a
|
||||||
|
system-wide driver, and **virtual camera output is permanently out of product**, so XSplit is
|
||||||
|
not a pricing comparator and its "lifetime ≈ 2x one year of sub" anchor is retired.
|
||||||
|
- **The finding that drove no-annual (2026-09-27): Microsoft Store does not pro-rate.**
|
||||||
|
Pro-rated refunds on cancellation exist only in a narrow set of countries, and
|
||||||
|
**"monthly subscriptions and initial (pre-renewal) purchases aren't eligible for a prorated
|
||||||
|
refund"** — so a first-year annual subscriber who cancels loses the remaining months in most
|
||||||
|
countries, **and the developer cannot refund it**. That is verbatim the grievance the creator
|
||||||
|
raised, so it is exactly the trap to avoid. Sources in `MONETIZATION.md` → "No annual tier".
|
||||||
|
- ⛔ **Clean numbers, no `.99`** (creator ruling: *"Let's stop with the x.99 stuff - I find that
|
||||||
|
irritating. Just say: ten bucks a month"*). The `$x.99` convention only makes a price *look*
|
||||||
|
cheaper and is incoherent for a brand sold on honesty and no-dark-patterns. `MONETIZATION.md`
|
||||||
|
→ "Clean numbers".
|
||||||
|
- **No feature gating** — pre-existing repo posture (TASK 36 monetization stance: free gets
|
||||||
|
everything, the branding flash is the only paid delta), noted here because it gains a
|
||||||
|
**revenue** argument: the free tier's reach is the funnel and the flash is an ad running
|
||||||
|
inside other people's content. Not a new ruling.
|
||||||
|
- ✅ **Store revenue share — VERIFIED 15%, subscriptions included.** From the ADA v8.10 PDF
|
||||||
|
itself, §6(b)(i): 15% applies to "any Apps (and any In-App Products in such Apps) that are
|
||||||
|
not listed in Section 6(b)(iii)". LlamaCasty is a Windows PC App — not a Game, not Xbox
|
||||||
|
console, not Windows 8 — so **15% governs both tiers; there is no subscription surcharge.**
|
||||||
|
The agreement's own changelog (v8.0, Oct 26 2017) says it outright: *"implement the 85/15
|
||||||
|
revenue share for non-Game subscriptions."* ⇒ **`$10/mo` nets `$8.50`; `$400` nets `$340`.**
|
||||||
|
- ⛔ **Two obligations the subscription creates (ADA §6(h))**, which drive the lifetime tier's
|
||||||
|
value as a hedge: (1) we must **fulfil the subscription for the whole period as marketed**,
|
||||||
|
and on breach Microsoft may refund *"the full amount, plus taxes... in Microsoft's sole
|
||||||
|
discretion"*; (2) **raising the price disables auto-renew**, so `$10` is effectively locked
|
||||||
|
for the product's life.
|
||||||
|
- **TASK 49 — chat profanity filter** — queued, not blocked, size S. Local, on-device,
|
||||||
|
**non-persistent**, opt-in, **user-supplied word list (never a hardcoded slur list)**, and it
|
||||||
|
must **never match the SuperChat amount or reward fields** (financial data, Store 10.5.5).
|
||||||
|
The non-persistence half is the same property that makes the 11.12 UGC certification answer
|
||||||
|
strong, so **no future chat-history/moderation-log/analytics feature may quietly break it.**
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1.0 gates (do these before the first shipped build)
|
||||||
|
|
||||||
|
- **⛔ Replace the always-Private broadcast lock with a real visibility option (creator ruling,
|
||||||
|
restated 2026-10-04).** `privacyStatus = "private"` hardcoded in
|
||||||
|
`YouTubeStreamService.CreateBroadcast` is deliberate and correct for the whole pre-v1 test
|
||||||
|
phase — it is the reason test VODs of a still-breaking product stay off the channel. At v1 it
|
||||||
|
becomes a user-selectable visibility option in the Go-Live dialog. **Before v1, do not touch it and do not raise it as a
|
||||||
|
question, observation or suggestion — it has been asked and answered repeatedly.** Full rationale
|
||||||
|
and the retired "can we delete the test VODs?" question: `ai.md` → YouTube Live API design
|
||||||
|
constraints.
|
||||||
|
- **Verified 2026-10-04: a Go Live video IS private.** Three independent hardcodes
|
||||||
|
(`CreateBroadcast` → `"private"`, `GoLiveViewModel.Visibility => "Private"`,
|
||||||
|
`BeginTestStream` → `StreamVisibility = "Private"`) and the one method that could change it,
|
||||||
|
`YouTubeStreamService.UpdateBroadcast`, has **no production caller** — only
|
||||||
|
`BroadcastPullOutTests.cs:120`. No path exists today by which an app-created broadcast becomes
|
||||||
|
non-private.
|
||||||
|
- **Two coupled v1 items — both are the deliberate end of that guarantee:**
|
||||||
|
1. **Hide the TEST button.** It exists as the guaranteed-private path; once visibility is
|
||||||
|
selectable, a separate safe button is redundant. One-line change —
|
||||||
|
`ShowTestButton => ShowStreamActions && IsConnected` is a computed predicate, not a setting.
|
||||||
|
2. **This is the unit that first wires `UpdateBroadcast` into production.** It is the only code
|
||||||
|
that can change a broadcast's privacy, and it is currently dead. Wiring it is exactly when
|
||||||
|
private stops being guaranteed and becomes a user-selectable default. Correct at v1,
|
||||||
|
ruinous before — and "it's dead code, let me call it" is not a reason to do it early.
|
||||||
|
- A **dry run** may still be worth having at v1 on its own merits; that is a separate question
|
||||||
|
from the privacy mechanism and is **not** decided by the above.
|
||||||
|
|
||||||
|
- **Kill the dev multi-instance affordance.** `Helpers/InstanceProfile.cs` is already entirely
|
||||||
|
`#if DEBUG`, so a Release build ships as `DataRoot => DefaultRoot` / `WebViewDataFolder => null`.
|
||||||
|
Nothing to do but *keep it that way* — and re-prove it:
|
||||||
|
`InstanceIsolationTests.TheAlternateProfile_IsConfinedToTheDebugBuild` (source-level, always runs)
|
||||||
|
plus a Release build in which the `InstanceVariable` **field** is absent from metadata.
|
||||||
|
⚠️ Do NOT grep the binary for `YTLIVE_INSTANCE` — consts are inlined and appear in neither build.
|
||||||
|
- **TASK 36 is now shipped** — the branding flash composites into recordings and the stream. Test
|
||||||
|
VODs from an unlicensed instance carry the credit; use a license key for clean captures.
|
||||||
|
- Still queued from earlier: `scripts/publish.sh` (self-contained win-x64, no test artifacts,
|
||||||
|
Debug-only `InternalsVisibleTo`, no WPF trimming), and the `LlamaCasty.exe` assembly rename
|
||||||
|
(three pack URIs incl. `MainWindow.xaml:14` — do not rename `%APPDATA%\ytLlive`).
|
||||||
|
- ✅ **RESOLVED — do not re-open.** The `OverlayHost.xaml` copy claimed Polar unlocked *alerts*;
|
||||||
|
alerts were never gated by `IsPremium`. The file is **deleted outright** by the TASK 10 teardown
|
||||||
|
(TASK 48 item 0), so the copy is gone with it. The "or gate the alerts" option is **permanently
|
||||||
|
closed** — there is no feature gating, ever.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## YouTube Live API research facts
|
||||||
|
|
||||||
|
See [`TASKS/research-youtube-api.md`](TASKS/research-youtube-api.md) — authoritative facts for v3 build.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Out of product — permanently
|
||||||
|
|
||||||
|
These were explicitly ruled out:
|
||||||
|
|
||||||
|
- **D3D11 swap compositor** (superseded by software compositor; TASK 3 item 16)
|
||||||
|
- **Background removal + blur** (ONNX/DirectML; TASK 3 item 19) — ⛔ ruled out 2026-10-05
|
||||||
|
(*"no - not doing it... a vcam app does it free; an in-app model is a runtime, a GPU/driver
|
||||||
|
matrix, per-scene lighting tuning"*). **REVERSED 2026-10-08 — now a v1 requirement**
|
||||||
|
([`TASKS/task-51-webcam-bg-effects.md`](TASKS/task-51-webcam-bg-effects.md)): bundled
|
||||||
|
~2–5 MB ONNX model + onnxruntime, CPU-capable, no downloads, no NVIDIA. NVIDIA VFX SDK
|
||||||
|
(~1 GB per-client redistributable, RTX 2000+) remains ruled out.
|
||||||
|
- **OBS-style source expansion** (game capture, browser source, media playlist, VLC, color-key, MIDI — the minimal source set is deliberate; creators who need more have graduated to OBS)
|
||||||
|
- **Multi-layout** (auto-save, single layout; multi-layout = OBS territory)
|
||||||
|
- **Cross-process stream resume** (API makes it impossible; creator ruling 2026-09-01)
|
||||||
|
|
||||||
|
## Transitions & brand logo (status updated 2026-10-28)
|
||||||
|
|
||||||
|
- ✅ **Fade fix** — swaps fade from the outgoing picture (`TransitionFadeTests`). On-screen check pending.
|
||||||
|
- ✅ **Transition picker** in App Settings (type + duration), saved with the layout (`TransitionPickerTests`).
|
||||||
|
- ✅ **Wipe** — CPU blend, left-to-right reveal (`WipeTransitionTests`). Direction setting not yet added.
|
||||||
|
- ✅ **Transitions in edit mode and on output** — preview animates the outgoing picture for scene changes in every mode; program output transitions while recording or streaming. Fade/Move fade out, Wipe shrinks the outgoing picture, Cut is immediate. Guard: `PreviewTransitionTests`.
|
||||||
|
- ☐ **Move** — persistent layers (per-layer "carry across scenes" flag), per-scene placement, fixed z band.
|
||||||
|
- ✅ **Brand logo** — one locked "Brand logo" image layer per scene, directly above the background; file in
|
||||||
|
App Settings (imported to the asset table, the setting keeps the asset id); per-scene eye toggle; top-left
|
||||||
|
default. Tests: `BrandLogoTests`. On-screen check pending.
|
||||||
|
- ☐ **Cube** — GPU path gated on capability; CPU path only if it holds 60fps.
|
||||||
|
- Gear: right-click opens App Settings (built, on-screen check pending). Left-click menu stays for now.
|
||||||
@@ -154,6 +154,25 @@ there on purpose.
|
|||||||
selfie_segmenter_landscape.onnx. Runs entirely on the user's PC.
|
selfie_segmenter_landscape.onnx. Runs entirely on the user's PC.
|
||||||
|
|
||||||
|
|
||||||
|
13. Inter (bundled UI typeface — the DESIGN.md standard)
|
||||||
|
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
||||||
|
License: SIL Open Font License 1.1 (OFL-1.1)
|
||||||
|
Home: https://rsms.me/inter/
|
||||||
|
Source: https://github.com/rsms/inter/releases/tag/v4.1
|
||||||
|
Assets: Assets/Fonts/Inter-Regular.ttf, Inter-Medium.ttf, Inter-SemiBold.ttf,
|
||||||
|
Inter-Bold.ttf — unmodified static instances from the v4.1 release.
|
||||||
|
The OFL text ships beside them at Assets/Fonts/OFL-Inter.txt.
|
||||||
|
Note: bundled as separate font files loaded through WPF's font stack — an
|
||||||
|
aggregate, not linked code, so the OFL and the GPL coexist here.
|
||||||
|
|
||||||
|
14. JetBrains Mono (bundled telemetry/mono typeface — the DESIGN.md standard)
|
||||||
|
Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
|
||||||
|
License: SIL Open Font License 1.1 (OFL-1.1)
|
||||||
|
Home: https://www.jetbrains.com/lp/mono/
|
||||||
|
Source: https://github.com/JetBrains/JetBrainsMono/releases/tag/v2.304
|
||||||
|
Assets: Assets/Fonts/JetBrainsMono-Medium.ttf, JetBrainsMono-SemiBold.ttf —
|
||||||
|
unmodified; OFL text at Assets/Fonts/OFL-JetBrainsMono.txt.
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
MISCELLANEOUS
|
MISCELLANEOUS
|
||||||
|
|||||||
+112
-83
@@ -2,9 +2,19 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:Helpers="clr-namespace:ytLive.Helpers">
|
xmlns:Helpers="clr-namespace:ytLive.Helpers">
|
||||||
|
|
||||||
|
<!-- Typography for every window: dialogs are separate WPF windows, so FontFamily set on
|
||||||
|
MainWindow does not reach them. This implicit style is the one place that does — a
|
||||||
|
dialog inherits Inter without setting anything, and the design standard holds for every
|
||||||
|
surface the creator can open. -->
|
||||||
|
<Style TargetType="Window">
|
||||||
|
<Setter Property="FontFamily" Value="{StaticResource FontFamily.Sans}"/>
|
||||||
|
<Setter Property="TextOptions.TextFormattingMode" Value="Display"/>
|
||||||
|
<Setter Property="UseLayoutRounding" Value="True"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
<!-- Base button style -->
|
<!-- Base button style -->
|
||||||
<Style x:Key="YtButton" TargetType="Button">
|
<Style x:Key="YtButton" TargetType="Button">
|
||||||
<Setter Property="Background" Value="#e94560"/>
|
<Setter Property="Background" Value="{StaticResource Brush.Tertiary}"/>
|
||||||
<Setter Property="Foreground" Value="White"/>
|
<Setter Property="Foreground" Value="White"/>
|
||||||
<Setter Property="FontSize" Value="13"/>
|
<Setter Property="FontSize" Value="13"/>
|
||||||
<Setter Property="FontWeight" Value="SemiBold"/>
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||||
@@ -16,11 +26,11 @@
|
|||||||
<ControlTemplate TargetType="Button">
|
<ControlTemplate TargetType="Button">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Border x:Name="Bd" Background="{TemplateBinding Background}"
|
<Border x:Name="Bd" Background="{TemplateBinding Background}"
|
||||||
CornerRadius="4"
|
CornerRadius="{StaticResource Radius.Sm}"
|
||||||
Padding="{TemplateBinding Padding}">
|
Padding="{TemplateBinding Padding}">
|
||||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||||
</Border>
|
</Border>
|
||||||
<Border x:Name="Glow" Background="White" CornerRadius="4" Opacity="0"/>
|
<Border x:Name="Glow" Background="White" CornerRadius="{StaticResource Radius.Sm}" Opacity="0"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="IsMouseOver" Value="True">
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
@@ -39,12 +49,12 @@
|
|||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style x:Key="YtButtonSecondary" TargetType="Button" BasedOn="{StaticResource YtButton}">
|
<Style x:Key="YtButtonSecondary" TargetType="Button" BasedOn="{StaticResource YtButton}">
|
||||||
<Setter Property="Background" Value="#16213e"/>
|
<Setter Property="Background" Value="{StaticResource Brush.SurfaceContainer}"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style x:Key="IconButton" TargetType="Button">
|
<Style x:Key="IconButton" TargetType="Button">
|
||||||
<Setter Property="Background" Value="Transparent"/>
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
<Setter Property="Foreground" Value="#d0d0d0"/>
|
<Setter Property="Foreground" Value="{StaticResource Brush.OnSurface}"/>
|
||||||
<Setter Property="BorderThickness" Value="0"/>
|
<Setter Property="BorderThickness" Value="0"/>
|
||||||
<Setter Property="Padding" Value="4"/>
|
<Setter Property="Padding" Value="4"/>
|
||||||
<Setter Property="Cursor" Value="Hand"/>
|
<Setter Property="Cursor" Value="Hand"/>
|
||||||
@@ -61,7 +71,7 @@
|
|||||||
</Setter>
|
</Setter>
|
||||||
<Style.Triggers>
|
<Style.Triggers>
|
||||||
<Trigger Property="IsMouseOver" Value="True">
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
<Setter Property="Background" Value="#26ffffff"/>
|
<Setter Property="Background" Value="{StaticResource Brush.ScrimStrong}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</Style.Triggers>
|
</Style.Triggers>
|
||||||
</Style>
|
</Style>
|
||||||
@@ -90,9 +100,9 @@
|
|||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style x:Key="YtTextBox" TargetType="TextBox">
|
<Style x:Key="YtTextBox" TargetType="TextBox">
|
||||||
<Setter Property="Background" Value="#0f3460"/>
|
<Setter Property="Background" Value="{StaticResource Brush.SurfaceContainerHigh}"/>
|
||||||
<Setter Property="Foreground" Value="#e0e0e0"/>
|
<Setter Property="Foreground" Value="{StaticResource Brush.OnSurface}"/>
|
||||||
<Setter Property="BorderBrush" Value="#2a3a5e"/>
|
<Setter Property="BorderBrush" Value="{StaticResource Brush.Outline}"/>
|
||||||
<Setter Property="BorderThickness" Value="1"/>
|
<Setter Property="BorderThickness" Value="1"/>
|
||||||
<Setter Property="Padding" Value="8,6"/>
|
<Setter Property="Padding" Value="8,6"/>
|
||||||
<Setter Property="FontSize" Value="13"/>
|
<Setter Property="FontSize" Value="13"/>
|
||||||
@@ -103,15 +113,15 @@
|
|||||||
<Border x:Name="Bd" Background="{TemplateBinding Background}"
|
<Border x:Name="Bd" Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
CornerRadius="4" Padding="{TemplateBinding Padding}">
|
CornerRadius="{StaticResource Radius.Sm}" Padding="{TemplateBinding Padding}">
|
||||||
<ScrollViewer x:Name="PART_ContentHost" Margin="0"/>
|
<ScrollViewer x:Name="PART_ContentHost" Margin="0"/>
|
||||||
</Border>
|
</Border>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="IsMouseOver" Value="True">
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
<Setter TargetName="Bd" Property="BorderBrush" Value="#3d5076"/>
|
<Setter TargetName="Bd" Property="BorderBrush" Value="{StaticResource Brush.SurfaceBright}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsKeyboardFocusWithin" Value="True">
|
<Trigger Property="IsKeyboardFocusWithin" Value="True">
|
||||||
<Setter TargetName="Bd" Property="BorderBrush" Value="#e94560"/>
|
<Setter TargetName="Bd" Property="BorderBrush" Value="{StaticResource Brush.Tertiary}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsEnabled" Value="False">
|
<Trigger Property="IsEnabled" Value="False">
|
||||||
<Setter TargetName="Bd" Property="Opacity" Value="0.45"/>
|
<Setter TargetName="Bd" Property="Opacity" Value="0.45"/>
|
||||||
@@ -136,7 +146,7 @@
|
|||||||
sticks out of the dark panels, so every check box carries this style
|
sticks out of the dark panels, so every check box carries this style
|
||||||
(the guard test in ytLive.Tests/PropertiesStyleTests.cs enforces it). -->
|
(the guard test in ytLive.Tests/PropertiesStyleTests.cs enforces it). -->
|
||||||
<Style x:Key="YtCheckBox" TargetType="CheckBox">
|
<Style x:Key="YtCheckBox" TargetType="CheckBox">
|
||||||
<Setter Property="Foreground" Value="#e0e0e0"/>
|
<Setter Property="Foreground" Value="{StaticResource Brush.OnSurface}"/>
|
||||||
<Setter Property="FontSize" Value="11"/>
|
<Setter Property="FontSize" Value="11"/>
|
||||||
<Setter Property="Cursor" Value="Hand"/>
|
<Setter Property="Cursor" Value="Hand"/>
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
||||||
@@ -150,7 +160,7 @@
|
|||||||
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width="*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Border x:Name="Box" Grid.Column="0" Width="14" Height="14" CornerRadius="3"
|
<Border x:Name="Box" Grid.Column="0" Width="14" Height="14" CornerRadius="3"
|
||||||
Background="#0f3460" BorderBrush="#2a3a5e" BorderThickness="1"
|
Background="{StaticResource Brush.SurfaceContainerHigh}" BorderBrush="{StaticResource Brush.Outline}" BorderThickness="1"
|
||||||
VerticalAlignment="Center">
|
VerticalAlignment="Center">
|
||||||
<Path x:Name="Tick" Data="M2.5,7.2 L5.8,10.5 L11.5,3.8"
|
<Path x:Name="Tick" Data="M2.5,7.2 L5.8,10.5 L11.5,3.8"
|
||||||
Stroke="#ffffff" StrokeThickness="2"
|
Stroke="#ffffff" StrokeThickness="2"
|
||||||
@@ -162,14 +172,14 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="IsMouseOver" Value="True">
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
<Setter TargetName="Box" Property="BorderBrush" Value="#3d5076"/>
|
<Setter TargetName="Box" Property="BorderBrush" Value="{StaticResource Brush.SurfaceBright}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsKeyboardFocusWithin" Value="True">
|
<Trigger Property="IsKeyboardFocusWithin" Value="True">
|
||||||
<Setter TargetName="Box" Property="BorderBrush" Value="#e94560"/>
|
<Setter TargetName="Box" Property="BorderBrush" Value="{StaticResource Brush.Tertiary}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsChecked" Value="True">
|
<Trigger Property="IsChecked" Value="True">
|
||||||
<Setter TargetName="Box" Property="Background" Value="#e94560"/>
|
<Setter TargetName="Box" Property="Background" Value="{StaticResource Brush.Tertiary}"/>
|
||||||
<Setter TargetName="Box" Property="BorderBrush" Value="#e94560"/>
|
<Setter TargetName="Box" Property="BorderBrush" Value="{StaticResource Brush.Tertiary}"/>
|
||||||
<Setter TargetName="Tick" Property="Visibility" Value="Visible"/>
|
<Setter TargetName="Tick" Property="Visibility" Value="Visible"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsEnabled" Value="False">
|
<Trigger Property="IsEnabled" Value="False">
|
||||||
@@ -182,10 +192,10 @@
|
|||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style x:Key="YtComboBox" TargetType="ComboBox">
|
<Style x:Key="YtComboBox" TargetType="ComboBox">
|
||||||
<Setter Property="Foreground" Value="#e0e0e0"/>
|
<Setter Property="Foreground" Value="{StaticResource Brush.OnSurface}"/>
|
||||||
<Setter Property="FontSize" Value="13"/>
|
<Setter Property="FontSize" Value="13"/>
|
||||||
<Setter Property="Background" Value="#0f3460"/>
|
<Setter Property="Background" Value="{StaticResource Brush.SurfaceContainerHigh}"/>
|
||||||
<Setter Property="BorderBrush" Value="#2a3a5e"/>
|
<Setter Property="BorderBrush" Value="{StaticResource Brush.Outline}"/>
|
||||||
<Setter Property="BorderThickness" Value="1"/>
|
<Setter Property="BorderThickness" Value="1"/>
|
||||||
<Setter Property="Padding" Value="8,6"/>
|
<Setter Property="Padding" Value="8,6"/>
|
||||||
<Setter Property="MinHeight" Value="30"/>
|
<Setter Property="MinHeight" Value="30"/>
|
||||||
@@ -195,7 +205,7 @@
|
|||||||
<Setter Property="ItemContainerStyle">
|
<Setter Property="ItemContainerStyle">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<Style TargetType="ComboBoxItem">
|
<Style TargetType="ComboBoxItem">
|
||||||
<Setter Property="Foreground" Value="#e0e0e0"/>
|
<Setter Property="Foreground" Value="{StaticResource Brush.OnSurface}"/>
|
||||||
<Setter Property="FontSize" Value="13"/>
|
<Setter Property="FontSize" Value="13"/>
|
||||||
<Setter Property="Padding" Value="10,7"/>
|
<Setter Property="Padding" Value="10,7"/>
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
||||||
@@ -209,10 +219,10 @@
|
|||||||
</Border>
|
</Border>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="IsHighlighted" Value="True">
|
<Trigger Property="IsHighlighted" Value="True">
|
||||||
<Setter TargetName="Bd" Property="Background" Value="#26ffffff"/>
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Brush.ScrimStrong}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsSelected" Value="True">
|
<Trigger Property="IsSelected" Value="True">
|
||||||
<Setter TargetName="Bd" Property="Background" Value="#1a3a66"/>
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Brush.SurfaceContainerHighest}"/>
|
||||||
<Setter Property="Foreground" Value="White"/>
|
<Setter Property="Foreground" Value="White"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</ControlTemplate.Triggers>
|
</ControlTemplate.Triggers>
|
||||||
@@ -229,7 +239,7 @@
|
|||||||
<Border x:Name="Chrome" Background="{TemplateBinding Background}"
|
<Border x:Name="Chrome" Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
CornerRadius="4"/>
|
CornerRadius="{StaticResource Radius.Sm}"/>
|
||||||
<ContentPresenter x:Name="ContentSite" IsHitTestVisible="False"
|
<ContentPresenter x:Name="ContentSite" IsHitTestVisible="False"
|
||||||
Margin="{TemplateBinding Padding}"
|
Margin="{TemplateBinding Padding}"
|
||||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||||
@@ -243,13 +253,13 @@
|
|||||||
<ToggleButton.Template>
|
<ToggleButton.Template>
|
||||||
<ControlTemplate TargetType="ToggleButton">
|
<ControlTemplate TargetType="ToggleButton">
|
||||||
<Grid Background="Transparent">
|
<Grid Background="Transparent">
|
||||||
<Path x:Name="Chevron" Data="M0,0 L4,4 L8,0" Stroke="#8a93a8"
|
<Path x:Name="Chevron" Data="M0,0 L4,4 L8,0" Stroke="{StaticResource Brush.OnSurfaceVariant}"
|
||||||
StrokeThickness="1.5" HorizontalAlignment="Right"
|
StrokeThickness="1.5" HorizontalAlignment="Right"
|
||||||
VerticalAlignment="Center" Margin="0,0,10,0"/>
|
VerticalAlignment="Center" Margin="0,0,10,0"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="IsMouseOver" Value="True">
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
<Setter TargetName="Chevron" Property="Stroke" Value="#c8d0e0"/>
|
<Setter TargetName="Chevron" Property="Stroke" Value="{StaticResource Brush.OnSurface}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsEnabled" Value="False">
|
<Trigger Property="IsEnabled" Value="False">
|
||||||
<Setter Property="Opacity" Value="0.45"/>
|
<Setter Property="Opacity" Value="0.45"/>
|
||||||
@@ -261,7 +271,7 @@
|
|||||||
<Popup x:Name="PART_Popup" Placement="Bottom" AllowsTransparency="True"
|
<Popup x:Name="PART_Popup" Placement="Bottom" AllowsTransparency="True"
|
||||||
PopupAnimation="Fade" StaysOpen="False"
|
PopupAnimation="Fade" StaysOpen="False"
|
||||||
IsOpen="{TemplateBinding IsDropDownOpen}">
|
IsOpen="{TemplateBinding IsDropDownOpen}">
|
||||||
<Border Background="#16213e" BorderBrush="#2a3a5e" BorderThickness="1"
|
<Border Background="{StaticResource Brush.SurfaceContainer}" BorderBrush="{StaticResource Brush.Outline}" BorderThickness="1"
|
||||||
CornerRadius="5" Padding="2" Margin="0,4,0,0"
|
CornerRadius="5" Padding="2" Margin="0,4,0,0"
|
||||||
SnapsToDevicePixels="True">
|
SnapsToDevicePixels="True">
|
||||||
<ScrollViewer MaxHeight="{TemplateBinding MaxDropDownHeight}"
|
<ScrollViewer MaxHeight="{TemplateBinding MaxDropDownHeight}"
|
||||||
@@ -273,10 +283,10 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="IsMouseOver" Value="True">
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
<Setter TargetName="Chrome" Property="Background" Value="#163a6b"/>
|
<Setter TargetName="Chrome" Property="Background" Value="{StaticResource Brush.SurfaceContainerHighest}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsDropDownOpen" Value="True">
|
<Trigger Property="IsDropDownOpen" Value="True">
|
||||||
<Setter TargetName="Chrome" Property="Background" Value="#163a6b"/>
|
<Setter TargetName="Chrome" Property="Background" Value="{StaticResource Brush.SurfaceContainerHighest}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsEnabled" Value="False">
|
<Trigger Property="IsEnabled" Value="False">
|
||||||
<Setter TargetName="Chrome" Property="Opacity" Value="0.45"/>
|
<Setter TargetName="Chrome" Property="Opacity" Value="0.45"/>
|
||||||
@@ -304,13 +314,13 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ControlTemplate TargetType="Thumb">
|
<ControlTemplate TargetType="Thumb">
|
||||||
<Border x:Name="ThumbBd" Background="#2c3c5e" CornerRadius="4" Margin="2"/>
|
<Border x:Name="ThumbBd" Background="{StaticResource Brush.SurfaceBright}" CornerRadius="{StaticResource Radius.Sm}" Margin="2"/>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="IsMouseOver" Value="True">
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
<Setter TargetName="ThumbBd" Property="Background" Value="#3d5076"/>
|
<Setter TargetName="ThumbBd" Property="Background" Value="{StaticResource Brush.SurfaceBright}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsDragging" Value="True">
|
<Trigger Property="IsDragging" Value="True">
|
||||||
<Setter TargetName="ThumbBd" Property="Background" Value="#4a5f8a"/>
|
<Setter TargetName="ThumbBd" Property="Background" Value="{StaticResource Brush.SurfaceBright}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</ControlTemplate.Triggers>
|
</ControlTemplate.Triggers>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
@@ -352,32 +362,21 @@
|
|||||||
</Style.Triggers>
|
</Style.Triggers>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Slider: slim and dimensional — gradient track, beveled fill, gloss-sphere
|
<!-- Slider: slim track, solid interactive fill. Blue is the only interactive accent
|
||||||
thumb. The filled side sits on a 5px pill aligned with the track; the
|
(DESIGN.md); the pre-standard green fill is gone. -->
|
||||||
click target stays the full track height. -->
|
|
||||||
<LinearGradientBrush x:Key="YtSliderTrackBrush" StartPoint="0,0" EndPoint="0,1">
|
|
||||||
<GradientStop Color="#0f1b33" Offset="0"/>
|
|
||||||
<GradientStop Color="#283b60" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<LinearGradientBrush x:Key="YtSliderFillBrush" StartPoint="0,0" EndPoint="0,1">
|
|
||||||
<GradientStop Color="#4fe097" Offset="0"/>
|
|
||||||
<GradientStop Color="#2dbd7a" Offset="0.5"/>
|
|
||||||
<GradientStop Color="#1a9e63" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
|
|
||||||
<RadialGradientBrush x:Key="YtSliderKnobBrush" Center="0.35,0.3" GradientOrigin="0.35,0.3">
|
<RadialGradientBrush x:Key="YtSliderKnobBrush" Center="0.35,0.3" GradientOrigin="0.35,0.3">
|
||||||
<GradientStop Color="#ffffff" Offset="0"/>
|
<GradientStop Color="#ffffff" Offset="0"/>
|
||||||
<GradientStop Color="#d7f5e6" Offset="0.22"/>
|
<GradientStop Color="{StaticResource Color.Tertiary}" Offset="1"/>
|
||||||
<GradientStop Color="#3ed588" Offset="0.72"/>
|
|
||||||
<GradientStop Color="#137a4d" Offset="1"/>
|
|
||||||
</RadialGradientBrush>
|
</RadialGradientBrush>
|
||||||
|
|
||||||
|
<!-- Hover/drag knob: the same gloss with the highlight spread wider. The conversion to
|
||||||
|
tokens deleted this key while two triggers still referenced it, and WPF turns a missing
|
||||||
|
StaticResource into DependencyProperty.UnsetValue — which crashes Ellipse.OnRender at
|
||||||
|
the next layout. ThemeResourceTests now catches that class of defect. -->
|
||||||
<RadialGradientBrush x:Key="YtSliderKnobHoverBrush" Center="0.35,0.3" GradientOrigin="0.35,0.3">
|
<RadialGradientBrush x:Key="YtSliderKnobHoverBrush" Center="0.35,0.3" GradientOrigin="0.35,0.3">
|
||||||
<GradientStop Color="#ffffff" Offset="0"/>
|
<GradientStop Color="#ffffff" Offset="0"/>
|
||||||
<GradientStop Color="#e6faef" Offset="0.22"/>
|
<GradientStop Color="#ffffff" Offset="0.3"/>
|
||||||
<GradientStop Color="#57e9a1" Offset="0.72"/>
|
<GradientStop Color="{StaticResource Color.Tertiary}" Offset="1"/>
|
||||||
<GradientStop Color="#1b9a63" Offset="1"/>
|
|
||||||
</RadialGradientBrush>
|
</RadialGradientBrush>
|
||||||
|
|
||||||
<Style x:Key="YtSliderTrackButton" TargetType="RepeatButton">
|
<Style x:Key="YtSliderTrackButton" TargetType="RepeatButton">
|
||||||
@@ -398,8 +397,8 @@
|
|||||||
<ControlTemplate TargetType="RepeatButton">
|
<ControlTemplate TargetType="RepeatButton">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Border Height="5" VerticalAlignment="Center"
|
<Border Height="5" VerticalAlignment="Center"
|
||||||
Background="{StaticResource YtSliderFillBrush}"
|
Background="{StaticResource Brush.Tertiary}"
|
||||||
BorderBrush="#0f7a4e" BorderThickness="1" CornerRadius="2.5"/>
|
BorderThickness="1" CornerRadius="2.5"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter.Value>
|
</Setter.Value>
|
||||||
@@ -413,7 +412,7 @@
|
|||||||
<ControlTemplate TargetType="Thumb">
|
<ControlTemplate TargetType="Thumb">
|
||||||
<Grid Width="13" Height="13">
|
<Grid Width="13" Height="13">
|
||||||
<Ellipse x:Name="Knob" Fill="{StaticResource YtSliderKnobBrush}"
|
<Ellipse x:Name="Knob" Fill="{StaticResource YtSliderKnobBrush}"
|
||||||
Stroke="#0b1626" StrokeThickness="1">
|
Stroke="{StaticResource Brush.Background}" StrokeThickness="1">
|
||||||
<Ellipse.Effect>
|
<Ellipse.Effect>
|
||||||
<DropShadowEffect BlurRadius="3" ShadowDepth="1" Opacity="0.55"/>
|
<DropShadowEffect BlurRadius="3" ShadowDepth="1" Opacity="0.55"/>
|
||||||
</Ellipse.Effect>
|
</Ellipse.Effect>
|
||||||
@@ -441,8 +440,8 @@
|
|||||||
<ControlTemplate TargetType="Slider">
|
<ControlTemplate TargetType="Slider">
|
||||||
<Grid VerticalAlignment="Center">
|
<Grid VerticalAlignment="Center">
|
||||||
<Border Height="5" CornerRadius="2.5" VerticalAlignment="Center"
|
<Border Height="5" CornerRadius="2.5" VerticalAlignment="Center"
|
||||||
Background="{StaticResource YtSliderTrackBrush}"
|
Background="{StaticResource Brush.SurfaceContainerLowest}"
|
||||||
BorderBrush="#0a1424" BorderThickness="1"/>
|
BorderBrush="{StaticResource Brush.Background}" BorderThickness="1"/>
|
||||||
<Track x:Name="PART_Track" Height="18">
|
<Track x:Name="PART_Track" Height="18">
|
||||||
<Track.DecreaseRepeatButton>
|
<Track.DecreaseRepeatButton>
|
||||||
<RepeatButton Command="{x:Static Slider.DecreaseLarge}"
|
<RepeatButton Command="{x:Static Slider.DecreaseLarge}"
|
||||||
@@ -464,9 +463,9 @@
|
|||||||
|
|
||||||
<!-- Dark tooltip -->
|
<!-- Dark tooltip -->
|
||||||
<Style TargetType="ToolTip">
|
<Style TargetType="ToolTip">
|
||||||
<Setter Property="Background" Value="#1a1a2e"/>
|
<Setter Property="Background" Value="{StaticResource Brush.SurfaceContainerLow}"/>
|
||||||
<Setter Property="Foreground" Value="#e0e0e0"/>
|
<Setter Property="Foreground" Value="{StaticResource Brush.OnSurface}"/>
|
||||||
<Setter Property="BorderBrush" Value="#2a3a5e"/>
|
<Setter Property="BorderBrush" Value="{StaticResource Brush.Outline}"/>
|
||||||
<Setter Property="BorderThickness" Value="1"/>
|
<Setter Property="BorderThickness" Value="1"/>
|
||||||
<Setter Property="Padding" Value="8,6"/>
|
<Setter Property="Padding" Value="8,6"/>
|
||||||
<Setter Property="FontSize" Value="12"/>
|
<Setter Property="FontSize" Value="12"/>
|
||||||
@@ -476,7 +475,7 @@
|
|||||||
<Border Background="{TemplateBinding Background}"
|
<Border Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
CornerRadius="4" Padding="{TemplateBinding Padding}">
|
CornerRadius="{StaticResource Radius.Sm}" Padding="{TemplateBinding Padding}">
|
||||||
<ContentPresenter/>
|
<ContentPresenter/>
|
||||||
</Border>
|
</Border>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
@@ -486,7 +485,7 @@
|
|||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<TextBlock Text="{Binding}" TextWrapping="Wrap" MaxWidth="320"
|
<TextBlock Text="{Binding}" TextWrapping="Wrap" MaxWidth="320"
|
||||||
Foreground="#e0e0e0" FontSize="12"/>
|
Foreground="{StaticResource Brush.OnSurface}" FontSize="12"/>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</Setter.Value>
|
</Setter.Value>
|
||||||
</Setter>
|
</Setter>
|
||||||
@@ -494,9 +493,9 @@
|
|||||||
|
|
||||||
<!-- Dark context menu -->
|
<!-- Dark context menu -->
|
||||||
<Style TargetType="ContextMenu">
|
<Style TargetType="ContextMenu">
|
||||||
<Setter Property="Background" Value="#16213e"/>
|
<Setter Property="Background" Value="{StaticResource Brush.SurfaceContainer}"/>
|
||||||
<Setter Property="Foreground" Value="#e0e0e0"/>
|
<Setter Property="Foreground" Value="{StaticResource Brush.OnSurface}"/>
|
||||||
<Setter Property="BorderBrush" Value="#2a3a5e"/>
|
<Setter Property="BorderBrush" Value="{StaticResource Brush.Outline}"/>
|
||||||
<Setter Property="BorderThickness" Value="1"/>
|
<Setter Property="BorderThickness" Value="1"/>
|
||||||
<Setter Property="Padding" Value="3"/>
|
<Setter Property="Padding" Value="3"/>
|
||||||
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
<Setter Property="SnapsToDevicePixels" Value="True"/>
|
||||||
@@ -517,7 +516,7 @@
|
|||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style TargetType="MenuItem">
|
<Style TargetType="MenuItem">
|
||||||
<Setter Property="Foreground" Value="#e0e0e0"/>
|
<Setter Property="Foreground" Value="{StaticResource Brush.OnSurface}"/>
|
||||||
<Setter Property="Background" Value="Transparent"/>
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
<Setter Property="Padding" Value="10,6"/>
|
<Setter Property="Padding" Value="10,6"/>
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
@@ -550,7 +549,7 @@
|
|||||||
AllowsTransparency="True"
|
AllowsTransparency="True"
|
||||||
PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}"
|
PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}"
|
||||||
Focusable="False">
|
Focusable="False">
|
||||||
<Border Background="#16213e" BorderBrush="#2a3a5e"
|
<Border Background="{StaticResource Brush.SurfaceContainer}" BorderBrush="{StaticResource Brush.Outline}"
|
||||||
BorderThickness="1" CornerRadius="5" Padding="3">
|
BorderThickness="1" CornerRadius="5" Padding="3">
|
||||||
<Grid IsSharedSizeScope="True">
|
<Grid IsSharedSizeScope="True">
|
||||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
||||||
@@ -562,10 +561,10 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="IsHighlighted" Value="True">
|
<Trigger Property="IsHighlighted" Value="True">
|
||||||
<Setter TargetName="Bd" Property="Background" Value="#26ffffff"/>
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Brush.ScrimStrong}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsSubmenuOpen" Value="True">
|
<Trigger Property="IsSubmenuOpen" Value="True">
|
||||||
<Setter TargetName="Bd" Property="Background" Value="#26ffffff"/>
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Brush.ScrimStrong}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsChecked" Value="True">
|
<Trigger Property="IsChecked" Value="True">
|
||||||
<Setter TargetName="CheckGlyph" Property="Visibility" Value="Visible"/>
|
<Setter TargetName="CheckGlyph" Property="Visibility" Value="Visible"/>
|
||||||
@@ -588,7 +587,7 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ControlTemplate TargetType="Separator">
|
<ControlTemplate TargetType="Separator">
|
||||||
<Border Height="1" Background="#2a3a5e" Margin="8,4"/>
|
<Border Height="1" Background="{StaticResource Brush.Outline}" Margin="8,4"/>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter.Value>
|
</Setter.Value>
|
||||||
</Setter>
|
</Setter>
|
||||||
@@ -596,7 +595,7 @@
|
|||||||
|
|
||||||
<!-- Dark list item (used by all list boxes) -->
|
<!-- Dark list item (used by all list boxes) -->
|
||||||
<Style x:Key="YtListBoxItem" TargetType="ListBoxItem">
|
<Style x:Key="YtListBoxItem" TargetType="ListBoxItem">
|
||||||
<Setter Property="Foreground" Value="#e0e0e0"/>
|
<Setter Property="Foreground" Value="{StaticResource Brush.OnSurface}"/>
|
||||||
<Setter Property="Padding" Value="4,2"/>
|
<Setter Property="Padding" Value="4,2"/>
|
||||||
<Setter Property="Background" Value="Transparent"/>
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
||||||
@@ -605,7 +604,7 @@
|
|||||||
<ControlTemplate TargetType="ListBoxItem">
|
<ControlTemplate TargetType="ListBoxItem">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Border x:Name="Accent" Width="3" HorizontalAlignment="Left" CornerRadius="1"
|
<Border x:Name="Accent" Width="3" HorizontalAlignment="Left" CornerRadius="1"
|
||||||
Background="#e94560" Margin="0,2" Opacity="0"
|
Background="{StaticResource Brush.Tertiary}" Margin="0,2" Opacity="0"
|
||||||
VerticalAlignment="Stretch"/>
|
VerticalAlignment="Stretch"/>
|
||||||
<Border x:Name="Bd" Background="{TemplateBinding Background}"
|
<Border x:Name="Bd" Background="{TemplateBinding Background}"
|
||||||
CornerRadius="3" Padding="{TemplateBinding Padding}" Margin="0,1">
|
CornerRadius="3" Padding="{TemplateBinding Padding}" Margin="0,1">
|
||||||
@@ -615,10 +614,10 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="IsMouseOver" Value="True">
|
<Trigger Property="IsMouseOver" Value="True">
|
||||||
<Setter TargetName="Bd" Property="Background" Value="#22ffffff"/>
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Brush.ScrimSoft}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="IsSelected" Value="True">
|
<Trigger Property="IsSelected" Value="True">
|
||||||
<Setter TargetName="Bd" Property="Background" Value="#1a3a66"/>
|
<Setter TargetName="Bd" Property="Background" Value="{StaticResource Brush.SurfaceContainerHighest}"/>
|
||||||
<Setter TargetName="Accent" Property="Opacity" Value="1"/>
|
<Setter TargetName="Accent" Property="Opacity" Value="1"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</ControlTemplate.Triggers>
|
</ControlTemplate.Triggers>
|
||||||
@@ -628,19 +627,19 @@
|
|||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style x:Key="YtLabel" TargetType="TextBlock">
|
<Style x:Key="YtLabel" TargetType="TextBlock">
|
||||||
<Setter Property="Foreground" Value="#a0a0b0"/>
|
<Setter Property="Foreground" Value="{StaticResource Brush.OnSurfaceVariant}"/>
|
||||||
<Setter Property="FontSize" Value="12"/>
|
<Setter Property="FontSize" Value="12"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style x:Key="SectionHeader" TargetType="TextBlock">
|
<Style x:Key="SectionHeader" TargetType="TextBlock">
|
||||||
<Setter Property="Foreground" Value="#e0e0e0"/>
|
<Setter Property="Foreground" Value="{StaticResource Brush.OnSurface}"/>
|
||||||
<Setter Property="FontSize" Value="14"/>
|
<Setter Property="FontSize" Value="14"/>
|
||||||
<Setter Property="FontWeight" Value="SemiBold"/>
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||||
<Setter Property="Margin" Value="0,0,0,8"/>
|
<Setter Property="Margin" Value="0,0,0,8"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style x:Key="SubHeader" TargetType="TextBlock">
|
<Style x:Key="SubHeader" TargetType="TextBlock">
|
||||||
<Setter Property="Foreground" Value="#a0a0b0"/>
|
<Setter Property="Foreground" Value="{StaticResource Brush.OnSurfaceVariant}"/>
|
||||||
<Setter Property="FontSize" Value="11"/>
|
<Setter Property="FontSize" Value="11"/>
|
||||||
<Setter Property="FontWeight" Value="SemiBold"/>
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||||
<Setter Property="Margin" Value="4,0,0,4"/>
|
<Setter Property="Margin" Value="4,0,0,4"/>
|
||||||
@@ -655,12 +654,13 @@
|
|||||||
<Setter Property="Margin" Value="8,0,0,0"/>
|
<Setter Property="Margin" Value="8,0,0,0"/>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Sliding pill toggle: ON = green, OFF = red (#ef4444) -->
|
<!-- Sliding pill toggle: OFF = neutral, ON = blue. Red is reserved for live/record
|
||||||
|
(DESIGN.md), so a settings toggle can never use it. -->
|
||||||
<Style x:Key="PillToggle" TargetType="ToggleButton">
|
<Style x:Key="PillToggle" TargetType="ToggleButton">
|
||||||
<Setter Property="Width" Value="36"/>
|
<Setter Property="Width" Value="36"/>
|
||||||
<Setter Property="Height" Value="18"/>
|
<Setter Property="Height" Value="18"/>
|
||||||
<Setter Property="Cursor" Value="Hand"/>
|
<Setter Property="Cursor" Value="Hand"/>
|
||||||
<Setter Property="Background" Value="#ef4444"/>
|
<Setter Property="Background" Value="{StaticResource Brush.SurfaceContainerHighest}"/>
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ControlTemplate TargetType="ToggleButton">
|
<ControlTemplate TargetType="ToggleButton">
|
||||||
@@ -680,7 +680,7 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="IsChecked" Value="True">
|
<Trigger Property="IsChecked" Value="True">
|
||||||
<Setter TargetName="Track" Property="Background" Value="#22c55e"/>
|
<Setter TargetName="Track" Property="Background" Value="{StaticResource Brush.Tertiary}"/>
|
||||||
<Trigger.EnterActions>
|
<Trigger.EnterActions>
|
||||||
<BeginStoryboard>
|
<BeginStoryboard>
|
||||||
<Storyboard>
|
<Storyboard>
|
||||||
@@ -729,7 +729,7 @@
|
|||||||
</Border>
|
</Border>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="IsChecked" Value="True">
|
<Trigger Property="IsChecked" Value="True">
|
||||||
<Setter TargetName="Seg" Property="Background" Value="#e94560"/>
|
<Setter TargetName="Seg" Property="Background" Value="{StaticResource Brush.Tertiary}"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</ControlTemplate.Triggers>
|
</ControlTemplate.Triggers>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
@@ -738,7 +738,7 @@
|
|||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style x:Key="SegmentLabel" TargetType="TextBlock">
|
<Style x:Key="SegmentLabel" TargetType="TextBlock">
|
||||||
<Setter Property="Foreground" Value="#a0a0b0"/>
|
<Setter Property="Foreground" Value="{StaticResource Brush.OnSurfaceVariant}"/>
|
||||||
<Setter Property="FontSize" Value="12"/>
|
<Setter Property="FontSize" Value="12"/>
|
||||||
<Setter Property="FontWeight" Value="Bold"/>
|
<Setter Property="FontWeight" Value="Bold"/>
|
||||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
@@ -750,6 +750,35 @@
|
|||||||
</Style.Triggers>
|
</Style.Triggers>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
<!-- REC / ON-AIR segment pills: an armed session control reads red, because red is what
|
||||||
|
"live or recording" means (DESIGN.md). Kept separate from SegmentToggle so the Rect|Circle
|
||||||
|
choice in the properties panel stays the interactive blue. -->
|
||||||
|
<Style x:Key="RecordPillToggle" TargetType="ToggleButton" BasedOn="{StaticResource SegmentToggle}">
|
||||||
|
<!-- SegmentToggle's template hard-codes a Transparent face and paints the checked state
|
||||||
|
itself, so an armed pill needs its own template that honours Background. -->
|
||||||
|
<Setter Property="Background" Value="Transparent"/>
|
||||||
|
<!-- The label inherits this: without it the bare Control default (black) paints on the
|
||||||
|
dark bar and the pill looks empty. Session controls carry WHITE ink in every state;
|
||||||
|
the fill is what changes. -->
|
||||||
|
<Setter Property="Foreground" Value="{StaticResource Brush.OnAccent}"/>
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="ToggleButton">
|
||||||
|
<Border x:Name="Seg" Background="{TemplateBinding Background}" CornerRadius="3"
|
||||||
|
Padding="{TemplateBinding Padding}">
|
||||||
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||||
|
</Border>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="IsChecked" Value="True">
|
||||||
|
<Setter Property="Background" Value="{StaticResource Brush.Primary}"/>
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
|
||||||
<!-- Value-to-visibility converters, promoted from MainWindow.Window.Resources
|
<!-- Value-to-visibility converters, promoted from MainWindow.Window.Resources
|
||||||
so extracted UserControls can resolve them (AGENTS: controls must not
|
so extracted UserControls can resolve them (AGENTS: controls must not
|
||||||
reach into a window's own resources; they share the app-level theme). -->
|
reach into a window's own resources; they share the app-level theme). -->
|
||||||
|
|||||||
@@ -0,0 +1,97 @@
|
|||||||
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:sys="clr-namespace:System;assembly=System.Runtime">
|
||||||
|
|
||||||
|
<!-- ============================================================================
|
||||||
|
DESIGN TOKENS — the only place a raw value may live.
|
||||||
|
Source of truth: DESIGN.md (normative). Guard: ytLive.Tests/DesignTokensTests.cs,
|
||||||
|
which fails if a documented token has no brush here, or the values disagree.
|
||||||
|
|
||||||
|
Merge order: App.xaml merges this BEFORE Themes/Controls.xaml, so every style can
|
||||||
|
reference a token instead of a literal.
|
||||||
|
============================================================================ -->
|
||||||
|
|
||||||
|
<!-- Surfaces (dark navy scale) -->
|
||||||
|
<SolidColorBrush x:Key="Brush.Background" Color="#0b1326"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.SurfaceContainerLowest" Color="#060e20"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.SurfaceContainerLow" Color="#131b2e"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.SurfaceContainer" Color="#171f33"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.SurfaceContainerHigh" Color="#222a3d"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.SurfaceContainerHighest" Color="#2d3449"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.SurfaceBright" Color="#31394d"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.Outline" Color="#334155"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.OutlineVariant" Color="#1e293b"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.ScrimSoft" Color="#22FFFFFF"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.ScrimStrong" Color="#26FFFFFF"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.ScrimDark" Color="#26000000"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.ScrimDarkStrong" Color="#00000080"/>
|
||||||
|
|
||||||
|
<!-- Text -->
|
||||||
|
<SolidColorBrush x:Key="Brush.OnSurface" Color="#dae2fd"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.OnSurfaceVariant" Color="#94a3b8"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.OnSurfaceDisabled" Color="#5b6478"/>
|
||||||
|
|
||||||
|
<!-- Accent roles: one per meaning, never mixed -->
|
||||||
|
<SolidColorBrush x:Key="Brush.Tertiary" Color="#38bdf8"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.OnTertiary" Color="#0b1326"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.OnAccent" Color="#ffffff"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.Primary" Color="#ff5451"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.PrimaryContainer" Color="#b91a24"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.Secondary" Color="#ffb95f"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.SecondaryContainer" Color="#ee9800"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.Attention" Color="#ff8c3a"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.Positive" Color="#22c55e"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.Error" Color="#ef4444"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.ErrorContainer" Color="#93000a"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.OnError" Color="#ffdad6"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.InfoContainer" Color="#3a3b52"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.SuccessContainer" Color="#1d5c38"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.WarningContainer" Color="#b8860b"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.TestContainer" Color="#9c6f1c"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.Youtube" Color="#ff0000"/>
|
||||||
|
|
||||||
|
<!-- Colours (for gradients that cannot take a brush) -->
|
||||||
|
<Color x:Key="Color.Background">#0b1326</Color>
|
||||||
|
<Color x:Key="Color.Tertiary">#38bdf8</Color>
|
||||||
|
<Color x:Key="Color.SurfaceContainerLowest">#060e20</Color>
|
||||||
|
|
||||||
|
<!-- Meter bands (measured levels, never gain settings) -->
|
||||||
|
<SolidColorBrush x:Key="Brush.Meter.Nominal" Color="#38bdf8"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.Meter.Caution" Color="#ffb95f"/>
|
||||||
|
<SolidColorBrush x:Key="Brush.Meter.Peak" Color="#ff5451"/>
|
||||||
|
|
||||||
|
<!-- Typography. Both families ship as WPF resources in Assets/Fonts (no install, no
|
||||||
|
network). The `#Family` form resolves them from the pack folder. -->
|
||||||
|
<FontFamily x:Key="FontFamily.Sans">/Assets/Fonts/#Inter</FontFamily>
|
||||||
|
<FontFamily x:Key="FontFamily.Mono">/Assets/Fonts/#JetBrains Mono</FontFamily>
|
||||||
|
|
||||||
|
<sys:Double x:Key="FontSize.HeadlineLg">32</sys:Double>
|
||||||
|
<sys:Double x:Key="FontSize.HeadlineMd">24</sys:Double>
|
||||||
|
<sys:Double x:Key="FontSize.HeadlineSm">18</sys:Double>
|
||||||
|
<sys:Double x:Key="FontSize.BodyLg">15</sys:Double>
|
||||||
|
<sys:Double x:Key="FontSize.BodyMd">13</sys:Double>
|
||||||
|
<sys:Double x:Key="FontSize.BodySm">12</sys:Double>
|
||||||
|
<sys:Double x:Key="FontSize.LabelLg">13</sys:Double>
|
||||||
|
<sys:Double x:Key="FontSize.LabelMd">11</sys:Double>
|
||||||
|
<sys:Double x:Key="FontSize.LabelSm">10</sys:Double>
|
||||||
|
|
||||||
|
<!-- Spacing -->
|
||||||
|
<sys:Double x:Key="Space.Xs">4</sys:Double>
|
||||||
|
<sys:Double x:Key="Space.Sm">8</sys:Double>
|
||||||
|
<sys:Double x:Key="Space.Md">12</sys:Double>
|
||||||
|
<sys:Double x:Key="Space.Lg">16</sys:Double>
|
||||||
|
<sys:Double x:Key="Space.Xl">24</sys:Double>
|
||||||
|
<sys:Double x:Key="Space.Gutter">12</sys:Double>
|
||||||
|
<sys:Double x:Key="Space.Margin">16</sys:Double>
|
||||||
|
<sys:Double x:Key="Space.MarginDocked">8</sys:Double>
|
||||||
|
|
||||||
|
<!-- Shape -->
|
||||||
|
<CornerRadius x:Key="Radius.Sm">4</CornerRadius>
|
||||||
|
<CornerRadius x:Key="Radius.Md">8</CornerRadius>
|
||||||
|
<CornerRadius x:Key="Radius.Lg">16</CornerRadius>
|
||||||
|
|
||||||
|
<!-- Motion -->
|
||||||
|
<Duration x:Key="Motion.Fast">0:0:0.09</Duration>
|
||||||
|
<Duration x:Key="Motion.Normal">0:0:0.15</Duration>
|
||||||
|
|
||||||
|
</ResourceDictionary>
|
||||||
@@ -68,9 +68,9 @@ public partial class MainViewModel
|
|||||||
|
|
||||||
public string MeterBrush => MeterLevel switch
|
public string MeterBrush => MeterLevel switch
|
||||||
{
|
{
|
||||||
< 0.6 => "#22c55e",
|
< 0.6 => ThemeBrush.Hex("Brush.Meter.Nominal"),
|
||||||
< 0.8 => "#eab308",
|
< 0.8 => ThemeBrush.Hex("Brush.Meter.Caution"),
|
||||||
_ => "#ef4444",
|
_ => ThemeBrush.Hex("Brush.Meter.Peak"),
|
||||||
};
|
};
|
||||||
|
|
||||||
/// <summary>Previewes the volume position while the slider is dragged; the
|
/// <summary>Previewes the volume position while the slider is dragged; the
|
||||||
@@ -201,7 +201,7 @@ public partial class MainViewModel
|
|||||||
|
|
||||||
// ─── Mic status dot (the MIC button) ───
|
// ─── Mic status dot (the MIC button) ───
|
||||||
|
|
||||||
private static readonly SolidColorBrush MicProblemBrush = CreateBrush("#f1c40f");
|
private static SolidColorBrush MicProblemBrush => ThemeBrush.Get("Brush.Secondary");
|
||||||
|
|
||||||
/// <summary>Mic connection state, driven by the mixer's MicConnected/MicFailed
|
/// <summary>Mic connection state, driven by the mixer's MicConnected/MicFailed
|
||||||
/// events and the startup device check (see StartMicCaptureAsync).</summary>
|
/// events and the startup device check (see StartMicCaptureAsync).</summary>
|
||||||
@@ -283,9 +283,9 @@ public partial class MainViewModel
|
|||||||
|
|
||||||
public string GameMeterBrush => GameMeterLevel switch
|
public string GameMeterBrush => GameMeterLevel switch
|
||||||
{
|
{
|
||||||
< 0.6 => "#22c55e",
|
< 0.6 => ThemeBrush.Hex("Brush.Meter.Nominal"),
|
||||||
< 0.8 => "#eab308",
|
< 0.8 => ThemeBrush.Hex("Brush.Meter.Caution"),
|
||||||
_ => "#ef4444",
|
_ => ThemeBrush.Hex("Brush.Meter.Peak"),
|
||||||
};
|
};
|
||||||
|
|
||||||
public void SetGameVolumeAdjusting(bool adjusting)
|
public void SetGameVolumeAdjusting(bool adjusting)
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
using ytLive.Helpers;
|
using ytLive.Helpers;
|
||||||
using ytLive.Models;
|
using ytLive.Models;
|
||||||
@@ -22,6 +24,51 @@ public partial class MainViewModel
|
|||||||
|
|
||||||
public string BrandLogoFileDisplay => _layoutStore.GetBrandLogoFileName() ?? "None";
|
public string BrandLogoFileDisplay => _layoutStore.GetBrandLogoFileName() ?? "None";
|
||||||
|
|
||||||
|
private ImageSource? _brandLogoPreviewImage;
|
||||||
|
private bool _brandLogoPreviewLoaded;
|
||||||
|
|
||||||
|
/// <summary>The current brand-logo image, for the thumbnail beside the file field in App
|
||||||
|
/// Settings (the creator, 2026-10-30: a myopic user cannot tell what a file *name* looks
|
||||||
|
/// like). Null until an image is set.</summary>
|
||||||
|
public ImageSource? BrandLogoPreviewImage
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (!_brandLogoPreviewLoaded) RefreshBrandLogoPreview();
|
||||||
|
return _brandLogoPreviewImage;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
internal void RefreshBrandLogoPreview()
|
||||||
|
{
|
||||||
|
_brandLogoPreviewLoaded = true;
|
||||||
|
_brandLogoPreviewImage = LoadBrandLogoImage(_layoutStore.GetBrandLogoAssetId());
|
||||||
|
OnPropertyChanged(nameof(BrandLogoPreviewImage));
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Decoded once and frozen: the thumbnail and the enlarged preview share it, and a
|
||||||
|
/// frozen bitmap can be handed to any thread without a dispatcher round-trip.</summary>
|
||||||
|
private ImageSource? LoadBrandLogoImage(string? assetId)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(assetId)) return null;
|
||||||
|
var bytes = _layoutStore.GetAssetBytes(assetId);
|
||||||
|
if (bytes is not { Length: > 0 }) return null;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var image = new BitmapImage();
|
||||||
|
image.BeginInit();
|
||||||
|
image.CacheOption = BitmapCacheOption.OnLoad;
|
||||||
|
image.StreamSource = new MemoryStream(bytes);
|
||||||
|
image.EndInit();
|
||||||
|
image.Freeze();
|
||||||
|
return image;
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return null; // a corrupt image must not take the dialog down with it
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void BrowseBrandLogo()
|
private void BrowseBrandLogo()
|
||||||
{
|
{
|
||||||
var dialog = new Microsoft.Win32.OpenFileDialog
|
var dialog = new Microsoft.Win32.OpenFileDialog
|
||||||
@@ -32,6 +79,7 @@ public partial class MainViewModel
|
|||||||
if (dialog.ShowDialog() != true) return;
|
if (dialog.ShowDialog() != true) return;
|
||||||
_layoutStore.SetBrandLogo(File.ReadAllBytes(dialog.FileName), Path.GetFileName(dialog.FileName));
|
_layoutStore.SetBrandLogo(File.ReadAllBytes(dialog.FileName), Path.GetFileName(dialog.FileName));
|
||||||
EnsureBrandLogos();
|
EnsureBrandLogos();
|
||||||
|
RefreshBrandLogoPreview();
|
||||||
OnPropertyChanged(nameof(BrandLogoFileDisplay));
|
OnPropertyChanged(nameof(BrandLogoFileDisplay));
|
||||||
ScheduleSave();
|
ScheduleSave();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,8 +85,12 @@ public partial class MainViewModel
|
|||||||
get => _editingActive;
|
get => _editingActive;
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (SetProperty(ref _editingActive, value))
|
if (!SetProperty(ref _editingActive, value)) return;
|
||||||
OnPropertyChanged(nameof(IsEditMode));
|
OnPropertyChanged(nameof(IsEditMode));
|
||||||
|
// EDIT decides whether the ON-AIR start is live or a test (creator ruling 2026-10-30).
|
||||||
|
OnPropertyChanged(nameof(PrimaryStartKind));
|
||||||
|
OnPropertyChanged(nameof(PrimaryStartButtonLabel));
|
||||||
|
OnPropertyChanged(nameof(PrimaryStartCommand));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,16 @@ public partial class MainViewModel
|
|||||||
/// <summary>Green glow on the bar while it's on the stream.</summary>
|
/// <summary>Green glow on the bar while it's on the stream.</summary>
|
||||||
public SolidColorBrush SocialBarGlowBrush => BarOnBrush;
|
public SolidColorBrush SocialBarGlowBrush => BarOnBrush;
|
||||||
|
|
||||||
|
/// <summary>Glyph colour of the bar — the preview draws the same value the renderer paints,
|
||||||
|
/// so the two cannot drift apart (creator request 2026-10-30).</summary>
|
||||||
|
public SolidColorBrush SocialBarTextBrush => SocialBarStyle.From(_socials).TextBrush;
|
||||||
|
|
||||||
|
/// <summary>The preview's plate: same colour AND same opacity the renderer bakes in.
|
||||||
|
/// Transparent when the plate is off — "off" means no plate, never no bar.</summary>
|
||||||
|
public SolidColorBrush SocialBarBackgroundBrush => _socials?.BarBackgroundEnabled == true
|
||||||
|
? SocialBarStyle.From(_socials).BackgroundBrush
|
||||||
|
: Brushes.Transparent;
|
||||||
|
|
||||||
/// <summary>The global socials config (entries + bar settings), or null.</summary>
|
/// <summary>The global socials config (entries + bar settings), or null.</summary>
|
||||||
public SocialsConfig? Socials => _socials;
|
public SocialsConfig? Socials => _socials;
|
||||||
|
|
||||||
@@ -111,7 +121,7 @@ public partial class MainViewModel
|
|||||||
private void RenderSocialBarFrame()
|
private void RenderSocialBarFrame()
|
||||||
{
|
{
|
||||||
_socialBarFrame = _socials != null && _socials.BarEnabled
|
_socialBarFrame = _socials != null && _socials.BarEnabled
|
||||||
? SocialBarRenderer.Render(_socials.Entries)
|
? SocialBarRenderer.Render(_socials.Entries, SocialBarStyle.From(_socials))
|
||||||
: null;
|
: null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -137,13 +147,40 @@ public partial class MainViewModel
|
|||||||
SignOutYouTubeAsync,
|
SignOutYouTubeAsync,
|
||||||
_youtubeAuth.CurrentChannel,
|
_youtubeAuth.CurrentChannel,
|
||||||
_socials);
|
_socials);
|
||||||
|
// Live preview: the drawer edits the REAL config, so colour/opacity/shadow land on the
|
||||||
|
// preview immediately instead of waiting for Save. Cancel restores the snapshot below.
|
||||||
|
// Snapshot the VALUES, not the object: the drawer edits the live config in place for the
|
||||||
|
// preview, so holding the reference would "restore" the very object that was mutated.
|
||||||
|
_appearanceBeforeEdit = _socials is null ? null : (
|
||||||
|
_socials.BarEnabled, _socials.BarTextColor, _socials.BarBackgroundEnabled,
|
||||||
|
_socials.BarBackgroundColor, _socials.BarBackgroundOpacity, _socials.BarTextShadow);
|
||||||
|
dialog.PropertyChanged += (_, e) =>
|
||||||
|
{
|
||||||
|
if (e.PropertyName is null) return;
|
||||||
|
if (!IsAppearanceProperty(e.PropertyName)) return;
|
||||||
|
ApplyAppearancePreview(dialog);
|
||||||
|
};
|
||||||
dialog.SaveRequested += () =>
|
dialog.SaveRequested += () =>
|
||||||
{
|
{
|
||||||
_socials = dialog.BuildSocialsConfig();
|
_socials = dialog.BuildSocialsConfig();
|
||||||
NotifySocialsChanged();
|
NotifySocialsChanged();
|
||||||
CloseSocialsDrawer();
|
CloseSocialsDrawer();
|
||||||
};
|
};
|
||||||
dialog.CancelRequested += CloseSocialsDrawer;
|
dialog.CancelRequested += () =>
|
||||||
|
{
|
||||||
|
if (_socials is { } live && _appearanceBeforeEdit is { } before)
|
||||||
|
{
|
||||||
|
live.BarEnabled = before.BarEnabled;
|
||||||
|
live.BarTextColor = before.TextColor;
|
||||||
|
live.BarBackgroundEnabled = before.BackgroundEnabled;
|
||||||
|
live.BarBackgroundColor = before.BackgroundColor;
|
||||||
|
live.BarBackgroundOpacity = before.BackgroundOpacity;
|
||||||
|
live.BarTextShadow = before.TextShadow;
|
||||||
|
NotifySocialsChanged();
|
||||||
|
OnPropertyChanged(nameof(SocialBarVisible));
|
||||||
|
}
|
||||||
|
CloseSocialsDrawer();
|
||||||
|
};
|
||||||
SocialsDrawer = dialog;
|
SocialsDrawer = dialog;
|
||||||
BroadcastForm.IsDrawerOpen = false;
|
BroadcastForm.IsDrawerOpen = false;
|
||||||
Ypp.IsDrawerOpen = false;
|
Ypp.IsDrawerOpen = false;
|
||||||
@@ -153,6 +190,29 @@ public partial class MainViewModel
|
|||||||
OnPropertyChanged(nameof(SocialsDrawerOpen));
|
OnPropertyChanged(nameof(SocialsDrawerOpen));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private (bool BarEnabled, string TextColor, bool BackgroundEnabled, string BackgroundColor,
|
||||||
|
double BackgroundOpacity, bool TextShadow)? _appearanceBeforeEdit;
|
||||||
|
|
||||||
|
private static bool IsAppearanceProperty(string name) => name is
|
||||||
|
nameof(SocialsDialogViewModel.BarEnabled) or nameof(SocialsDialogViewModel.BarTextColor)
|
||||||
|
or nameof(SocialsDialogViewModel.BarBackgroundEnabled) or nameof(SocialsDialogViewModel.BarBackgroundColor)
|
||||||
|
or nameof(SocialsDialogViewModel.BarBackgroundOpacity) or nameof(SocialsDialogViewModel.BarTextShadow);
|
||||||
|
|
||||||
|
/// <summary>Paints the drawer's current appearance onto the live config and re-renders the
|
||||||
|
/// strip. Nothing is persisted here — Save writes, Cancel restores the snapshot.</summary>
|
||||||
|
private void ApplyAppearancePreview(SocialsDialogViewModel dialog)
|
||||||
|
{
|
||||||
|
if (_socials == null) return;
|
||||||
|
_socials.BarEnabled = dialog.BarEnabled;
|
||||||
|
_socials.BarTextColor = dialog.BarTextColor;
|
||||||
|
_socials.BarBackgroundEnabled = dialog.BarBackgroundEnabled;
|
||||||
|
_socials.BarBackgroundColor = dialog.BarBackgroundColor;
|
||||||
|
_socials.BarBackgroundOpacity = dialog.BarBackgroundOpacity;
|
||||||
|
_socials.BarTextShadow = dialog.BarTextShadow;
|
||||||
|
NotifySocialsChanged();
|
||||||
|
OnPropertyChanged(nameof(SocialBarVisible));
|
||||||
|
}
|
||||||
|
|
||||||
internal void CloseSocialsDrawer()
|
internal void CloseSocialsDrawer()
|
||||||
{
|
{
|
||||||
if (!SocialsDrawerOpen) return;
|
if (!SocialsDrawerOpen) return;
|
||||||
@@ -164,6 +224,8 @@ public partial class MainViewModel
|
|||||||
private void NotifySocialsChanged()
|
private void NotifySocialsChanged()
|
||||||
{
|
{
|
||||||
RenderSocialBarFrame();
|
RenderSocialBarFrame();
|
||||||
|
OnPropertyChanged(nameof(SocialBarTextBrush));
|
||||||
|
OnPropertyChanged(nameof(SocialBarBackgroundBrush));
|
||||||
OnPropertyChanged(nameof(HasSocials));
|
OnPropertyChanged(nameof(HasSocials));
|
||||||
OnPropertyChanged(nameof(SocialBarVisible));
|
OnPropertyChanged(nameof(SocialBarVisible));
|
||||||
OnPropertyChanged(nameof(SocialBarDotBrush));
|
OnPropertyChanged(nameof(SocialBarDotBrush));
|
||||||
|
|||||||
@@ -316,7 +316,9 @@ public partial class MainViewModel : ViewModelBase
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
HealthIssueBackground = report.IsError ? "#8f1f1f" : "#b8860b";
|
HealthIssueBackground = report.IsError
|
||||||
|
? ThemeBrush.Hex("Brush.ErrorContainer")
|
||||||
|
: ThemeBrush.Hex("Brush.WarningContainer");
|
||||||
HealthIssueBanner = report.Text;
|
HealthIssueBanner = report.Text;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -486,8 +488,12 @@ public partial class MainViewModel : ViewModelBase
|
|||||||
var live = IsLive;
|
var live = IsLive;
|
||||||
// A live TEST broadcast wears gold, not the live red — the TEST badge +
|
// A live TEST broadcast wears gold, not the live red — the TEST badge +
|
||||||
// gold are the "this is a rehearsal" cue (TASK 41).
|
// gold are the "this is a rehearsal" cue (TASK 41).
|
||||||
TopBarBackground = live ? IsTestStream ? "#9c6f1c" : "#e94560" : "#16213e";
|
TopBarBackground = live
|
||||||
PreviewGlowBrush = live ? IsTestStream ? "#9c6f1c" : "#e94560" : "Transparent";
|
? ThemeBrush.Hex(IsTestStream ? "Brush.TestContainer" : "Brush.Primary")
|
||||||
|
: ThemeBrush.Hex("Brush.SurfaceContainer");
|
||||||
|
PreviewGlowBrush = live
|
||||||
|
? ThemeBrush.Hex(IsTestStream ? "Brush.TestContainer" : "Brush.Primary")
|
||||||
|
: "Transparent";
|
||||||
PreviewGlowThickness = live ? new Thickness(3) : new Thickness(0);
|
PreviewGlowThickness = live ? new Thickness(3) : new Thickness(0);
|
||||||
|
|
||||||
if (!live) _healthPollTimer.Stop();
|
if (!live) _healthPollTimer.Stop();
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public partial class MainViewModel : ViewModelBase
|
|||||||
private string? _healthIssueBanner;
|
private string? _healthIssueBanner;
|
||||||
private string _healthIssueBackground = "Transparent";
|
private string _healthIssueBackground = "Transparent";
|
||||||
private string _windowTitle = "LlamaCasty";
|
private string _windowTitle = "LlamaCasty";
|
||||||
private string _topBarBackground = "#16213e";
|
private string _topBarBackground = ThemeBrush.Hex("Brush.SurfaceContainer");
|
||||||
private string _previewGlowBrush = "Transparent";
|
private string _previewGlowBrush = "Transparent";
|
||||||
private Thickness _previewGlowThickness = new(0);
|
private Thickness _previewGlowThickness = new(0);
|
||||||
private string _liveElapsedText = "00:00:00";
|
private string _liveElapsedText = "00:00:00";
|
||||||
@@ -72,6 +72,9 @@ public partial class MainViewModel : ViewModelBase
|
|||||||
OnPropertyChanged(nameof(OnAirBrush));
|
OnPropertyChanged(nameof(OnAirBrush));
|
||||||
OnPropertyChanged(nameof(IsLivePrivate));
|
OnPropertyChanged(nameof(IsLivePrivate));
|
||||||
OnPropertyChanged(nameof(ShowPrimaryStartButton));
|
OnPropertyChanged(nameof(ShowPrimaryStartButton));
|
||||||
|
OnPropertyChanged(nameof(PrimaryStartKind));
|
||||||
|
OnPropertyChanged(nameof(PrimaryStartButtonLabel));
|
||||||
|
OnPropertyChanged(nameof(PrimaryStartCommand));
|
||||||
OnPropertyChanged(nameof(ShowEndStreamButton));
|
OnPropertyChanged(nameof(ShowEndStreamButton));
|
||||||
OnPropertyChanged(nameof(EndButtonText));
|
OnPropertyChanged(nameof(EndButtonText));
|
||||||
OnPropertyChanged(nameof(ShowTestButton));
|
OnPropertyChanged(nameof(ShowTestButton));
|
||||||
@@ -87,10 +90,18 @@ public partial class MainViewModel : ViewModelBase
|
|||||||
public bool IsOffline => StreamStatus == StreamStatus.Offline;
|
public bool IsOffline => StreamStatus == StreamStatus.Offline;
|
||||||
public bool IsLive => StreamStatus == StreamStatus.Streaming;
|
public bool IsLive => StreamStatus == StreamStatus.Streaming;
|
||||||
public bool IsLivePrivate => IsLive && string.Equals(StreamVisibility, "Private", StringComparison.OrdinalIgnoreCase);
|
public bool IsLivePrivate => IsLive && string.Equals(StreamVisibility, "Private", StringComparison.OrdinalIgnoreCase);
|
||||||
public string RecDotBrush => !IsRecording ? "#555555" : "#e94560";
|
public string RecDotBrush => !IsRecording
|
||||||
public string RecTextBrush => (IsLive || IsRecording) ? "#ffffff" : "#888888";
|
? ThemeBrush.Hex("Brush.OnSurfaceDisabled")
|
||||||
|
: ThemeBrush.Hex("Brush.Primary");
|
||||||
|
public string RecTextBrush => (IsLive || IsRecording)
|
||||||
|
? ThemeBrush.Hex("Brush.OnSurface")
|
||||||
|
: ThemeBrush.Hex("Brush.OnSurfaceDisabled");
|
||||||
public double RecDotOpacity => IsRecording ? _recDotPulse : 0.55;
|
public double RecDotOpacity => IsRecording ? _recDotPulse : 0.55;
|
||||||
public string OnAirBrush => !IsLive ? "#555555" : IsLivePrivate ? "#22c55e" : "#e94560";
|
public string OnAirBrush => !IsLive
|
||||||
|
? ThemeBrush.Hex("Brush.OnSurfaceDisabled")
|
||||||
|
: IsLivePrivate
|
||||||
|
? ThemeBrush.Hex("Brush.Positive")
|
||||||
|
: ThemeBrush.Hex("Brush.Primary");
|
||||||
|
|
||||||
// ─── REC / ON-AIR pills (TASK 18) ───
|
// ─── REC / ON-AIR pills (TASK 18) ───
|
||||||
public bool RecordPillOn
|
public bool RecordPillOn
|
||||||
@@ -101,6 +112,9 @@ public partial class MainViewModel : ViewModelBase
|
|||||||
if (!SetProperty(ref _recordPillOn, value)) return;
|
if (!SetProperty(ref _recordPillOn, value)) return;
|
||||||
if (value && _onAirPillOn) OnAirPillOn = false; // record-OR-live — arming REC drops ON-AIR
|
if (value && _onAirPillOn) OnAirPillOn = false; // record-OR-live — arming REC drops ON-AIR
|
||||||
OnPropertyChanged(nameof(ShowPrimaryStartButton));
|
OnPropertyChanged(nameof(ShowPrimaryStartButton));
|
||||||
|
OnPropertyChanged(nameof(PrimaryStartKind));
|
||||||
|
OnPropertyChanged(nameof(PrimaryStartButtonLabel));
|
||||||
|
OnPropertyChanged(nameof(PrimaryStartCommand));
|
||||||
OnPropertyChanged(nameof(CanStartSession));
|
OnPropertyChanged(nameof(CanStartSession));
|
||||||
RaiseTopBarModes();
|
RaiseTopBarModes();
|
||||||
}
|
}
|
||||||
@@ -117,6 +131,9 @@ public partial class MainViewModel : ViewModelBase
|
|||||||
if (!SetProperty(ref _onAirPillOn, value)) return;
|
if (!SetProperty(ref _onAirPillOn, value)) return;
|
||||||
if (value && _recordPillOn) RecordPillOn = false; // record-OR-live — arming ON-AIR drops REC
|
if (value && _recordPillOn) RecordPillOn = false; // record-OR-live — arming ON-AIR drops REC
|
||||||
OnPropertyChanged(nameof(ShowPrimaryStartButton));
|
OnPropertyChanged(nameof(ShowPrimaryStartButton));
|
||||||
|
OnPropertyChanged(nameof(PrimaryStartKind));
|
||||||
|
OnPropertyChanged(nameof(PrimaryStartButtonLabel));
|
||||||
|
OnPropertyChanged(nameof(PrimaryStartCommand));
|
||||||
OnPropertyChanged(nameof(CanStartSession));
|
OnPropertyChanged(nameof(CanStartSession));
|
||||||
RaiseTopBarModes();
|
RaiseTopBarModes();
|
||||||
}
|
}
|
||||||
@@ -138,6 +155,9 @@ public partial class MainViewModel : ViewModelBase
|
|||||||
OnPropertyChanged(nameof(IsEditMode));
|
OnPropertyChanged(nameof(IsEditMode));
|
||||||
OnPropertyChanged(nameof(ShowEndStreamButton));
|
OnPropertyChanged(nameof(ShowEndStreamButton));
|
||||||
OnPropertyChanged(nameof(ShowPrimaryStartButton));
|
OnPropertyChanged(nameof(ShowPrimaryStartButton));
|
||||||
|
OnPropertyChanged(nameof(PrimaryStartKind));
|
||||||
|
OnPropertyChanged(nameof(PrimaryStartButtonLabel));
|
||||||
|
OnPropertyChanged(nameof(PrimaryStartCommand));
|
||||||
OnPropertyChanged(nameof(EndButtonText));
|
OnPropertyChanged(nameof(EndButtonText));
|
||||||
OnPropertyChanged(nameof(ShowTestButton));
|
OnPropertyChanged(nameof(ShowTestButton));
|
||||||
RaiseTopBarModes();
|
RaiseTopBarModes();
|
||||||
@@ -161,8 +181,37 @@ public partial class MainViewModel : ViewModelBase
|
|||||||
/// routes to the sign-in inside StartSession (Start — the account step shows up
|
/// routes to the sign-in inside StartSession (Start — the account step shows up
|
||||||
/// beside it as the Sign In button); a signed-out go-live stays the dead-end the
|
/// beside it as the Sign In button); a signed-out go-live stays the dead-end the
|
||||||
/// creator ruling 2026-09-20-02 forbids.</summary>
|
/// creator ruling 2026-09-20-02 forbids.</summary>
|
||||||
public string PrimaryStartButtonLabel =>
|
/// <summary>Creator ruling 2026-10-30: EDIT decides whether the ON-AIR start is the real
|
||||||
OnAirPillOn ? "Go Live" : "Start Recording";
|
/// livestream or the test one, which is why the separate TEST button is gone.</summary>
|
||||||
|
public SessionStartKind PrimaryStartKind =>
|
||||||
|
SessionStartDecision.For(RecordPillOn, OnAirPillOn, EditingActive);
|
||||||
|
|
||||||
|
public string PrimaryStartButtonLabel => SessionStartDecision.LabelFor(PrimaryStartKind);
|
||||||
|
|
||||||
|
private ICommand? _primaryStartCommand;
|
||||||
|
|
||||||
|
/// <summary>The button's action follows its label — and a signed-out ON-AIR press starts the
|
||||||
|
/// SIGN-IN flow instead of disabling the control (which is what binding straight to
|
||||||
|
/// <see cref="StartTestCommand"/> did: its CanExecute needs a connection, so the button the
|
||||||
|
/// creator was told to press could not be pressed).</summary>
|
||||||
|
public ICommand PrimaryStartCommand =>
|
||||||
|
_primaryStartCommand ??= new RelayCommand(_ => StartFromPrimaryButton(), _ => ShowPrimaryStartButton);
|
||||||
|
|
||||||
|
private void StartFromPrimaryButton()
|
||||||
|
{
|
||||||
|
switch (SessionStartDecision.RouteFor(PrimaryStartKind, IsConnected))
|
||||||
|
{
|
||||||
|
case SessionStartDecision.Route.SignIn:
|
||||||
|
_ = SignInAsync();
|
||||||
|
return;
|
||||||
|
case SessionStartDecision.Route.Test:
|
||||||
|
BeginTestStream();
|
||||||
|
return;
|
||||||
|
default:
|
||||||
|
StartSession();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>The End button shows while recording OR live.</summary>
|
/// <summary>The End button shows while recording OR live.</summary>
|
||||||
public bool ShowEndStreamButton => IsLive || IsRecording;
|
public bool ShowEndStreamButton => IsLive || IsRecording;
|
||||||
@@ -222,7 +271,11 @@ public partial class MainViewModel : ViewModelBase
|
|||||||
/// <summary>Reality dot color, one meaning per mode: gold = test, red = live,
|
/// <summary>Reality dot color, one meaning per mode: gold = test, red = live,
|
||||||
/// green = recording. The pre-spec pulsing lamp never shipped; the word + bar
|
/// green = recording. The pre-spec pulsing lamp never shipped; the word + bar
|
||||||
/// color carry the state and the dot just pins it.</summary>
|
/// color carry the state and the dot just pins it.</summary>
|
||||||
public string RunningDotBrush => IsTestStream ? "#9c6f1c" : IsLive ? "#e94560" : "#22c55e";
|
public string RunningDotBrush => IsTestStream
|
||||||
|
? ThemeBrush.Hex("Brush.TestContainer")
|
||||||
|
: IsLive
|
||||||
|
? ThemeBrush.Hex("Brush.Primary")
|
||||||
|
: ThemeBrush.Hex("Brush.Positive");
|
||||||
|
|
||||||
/// <summary>Raises every flag the top bar renders, so any state change re-renders
|
/// <summary>Raises every flag the top bar renders, so any state change re-renders
|
||||||
/// exactly the world that is now true.</summary>
|
/// exactly the world that is now true.</summary>
|
||||||
@@ -273,8 +326,8 @@ public partial class MainViewModel : ViewModelBase
|
|||||||
private set => SetProperty(ref _healthIssueBanner, value);
|
private set => SetProperty(ref _healthIssueBanner, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Banner background: app red (#8f1f1f) for an error issue, amber
|
/// <summary>Banner background: the error surface for an error issue, the warning surface
|
||||||
/// (#b8860b) for a warning. Transparent when no banner is shown.</summary>
|
/// for a warning (both tokens). Transparent when no banner is shown.</summary>
|
||||||
public string HealthIssueBackground
|
public string HealthIssueBackground
|
||||||
{
|
{
|
||||||
get => _healthIssueBackground;
|
get => _healthIssueBackground;
|
||||||
|
|||||||
@@ -109,8 +109,8 @@ public partial class MainViewModel : ViewModelBase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static readonly SolidColorBrush BarOnBrush = CreateBrush("#2ecc71");
|
private static SolidColorBrush BarOnBrush => ThemeBrush.Get("Brush.Positive");
|
||||||
private static readonly SolidColorBrush BarOffBrush = CreateBrush("#e94560");
|
private static SolidColorBrush BarOffBrush => ThemeBrush.Get("Brush.Primary");
|
||||||
private static SolidColorBrush CreateBrush(string hex)
|
private static SolidColorBrush CreateBrush(string hex)
|
||||||
=> (SolidColorBrush)new BrushConverter().ConvertFromString(hex)!;
|
=> (SolidColorBrush)new BrushConverter().ConvertFromString(hex)!;
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,11 @@ public sealed class SocialsDialogViewModel : ViewModelBase
|
|||||||
_signInProvider = signInProvider;
|
_signInProvider = signInProvider;
|
||||||
_signOutAction = signOutAction;
|
_signOutAction = signOutAction;
|
||||||
_barEnabled = current?.BarEnabled ?? true;
|
_barEnabled = current?.BarEnabled ?? true;
|
||||||
|
_barTextColor = current?.BarTextColor ?? "#FFFFFF";
|
||||||
|
_barBackgroundEnabled = current?.BarBackgroundEnabled ?? false;
|
||||||
|
_barBackgroundColor = current?.BarBackgroundColor ?? "#000000";
|
||||||
|
_barBackgroundOpacity = current?.BarBackgroundOpacity ?? 0.55;
|
||||||
|
_barTextShadow = current?.BarTextShadow ?? false;
|
||||||
_account = account;
|
_account = account;
|
||||||
_isSignedIn = account != null;
|
_isSignedIn = account != null;
|
||||||
|
|
||||||
@@ -64,6 +69,47 @@ public sealed class SocialsDialogViewModel : ViewModelBase
|
|||||||
set => SetProperty(ref _barEnabled, value);
|
set => SetProperty(ref _barEnabled, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ─── Bar appearance (creator request 2026-10-30) ───────────────────────────
|
||||||
|
|
||||||
|
private string _barTextColor = "#FFFFFF";
|
||||||
|
public string BarTextColor
|
||||||
|
{
|
||||||
|
get => _barTextColor;
|
||||||
|
set => SetProperty(ref _barTextColor, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool _barBackgroundEnabled;
|
||||||
|
public bool BarBackgroundEnabled
|
||||||
|
{
|
||||||
|
get => _barBackgroundEnabled;
|
||||||
|
set => SetProperty(ref _barBackgroundEnabled, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _barBackgroundColor = "#000000";
|
||||||
|
public string BarBackgroundColor
|
||||||
|
{
|
||||||
|
get => _barBackgroundColor;
|
||||||
|
set => SetProperty(ref _barBackgroundColor, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private double _barBackgroundOpacity = 0.55;
|
||||||
|
public double BarBackgroundOpacity
|
||||||
|
{
|
||||||
|
get => _barBackgroundOpacity;
|
||||||
|
set => SetProperty(ref _barBackgroundOpacity, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool _barTextShadow;
|
||||||
|
public bool BarTextShadow
|
||||||
|
{
|
||||||
|
get => _barTextShadow;
|
||||||
|
set => SetProperty(ref _barTextShadow, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The colours offered for the text and the plate — the same catalogue the border
|
||||||
|
/// picker uses, so there is one list of "the app's colours" (TASK 60/63).</summary>
|
||||||
|
public IReadOnlyList<NamedColor> ColorOptions => BorderColorPalette.All;
|
||||||
|
|
||||||
public bool IsSignedIn
|
public bool IsSignedIn
|
||||||
{
|
{
|
||||||
get => _isSignedIn;
|
get => _isSignedIn;
|
||||||
@@ -275,7 +321,15 @@ public sealed class SocialsDialogViewModel : ViewModelBase
|
|||||||
{
|
{
|
||||||
var entries = CommittedEntries ?? throw new InvalidOperationException("Save was not completed.");
|
var entries = CommittedEntries ?? throw new InvalidOperationException("Save was not completed.");
|
||||||
if (entries.Count == 0) return null;
|
if (entries.Count == 0) return null;
|
||||||
var config = new SocialsConfig { BarEnabled = BarEnabled };
|
var config = new SocialsConfig
|
||||||
|
{
|
||||||
|
BarEnabled = BarEnabled,
|
||||||
|
BarTextColor = BarTextColor,
|
||||||
|
BarBackgroundEnabled = BarBackgroundEnabled,
|
||||||
|
BarBackgroundColor = BarBackgroundColor,
|
||||||
|
BarBackgroundOpacity = BarBackgroundOpacity,
|
||||||
|
BarTextShadow = BarTextShadow,
|
||||||
|
};
|
||||||
foreach (var entry in entries)
|
foreach (var entry in entries)
|
||||||
config.Entries.Add(entry);
|
config.Entries.Add(entry);
|
||||||
return config;
|
return config;
|
||||||
|
|||||||
+3
-5
@@ -476,9 +476,7 @@ new panel must use a different binding (`IsWebcamSelected`) or the selector matc
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Related in [`ai.md`](../../ai.md)
|
## Related files
|
||||||
|
|
||||||
- **Resolution tiers** — `OutputRect*` and the tier list (the vertical tier's 607×1080 band).
|
- [`ui-surface.md`](ui-surface.md) — **resolution tiers** (`OutputRect*`, the tier list, the vertical tier's 607×1080 band) and **key patterns** (MVVM/binding conventions the capture UI follows).
|
||||||
- **Key patterns** — MVVM/binding conventions the capture UI follows.
|
- [`environment.md`](environment.md) — **Tests** (hermetic real-window rules camera tests must obey) and **Run** (launch/take procedure, the Release-only rule for measurements).
|
||||||
- **Tests** — hermetic-real-window rules that camera tests must obey.
|
|
||||||
- **Run** — launch/take procedure and the Release-only rule for measurements.
|
|
||||||
|
|||||||
@@ -0,0 +1,89 @@
|
|||||||
|
# Decisions log — retired paths, kept so they are not re-litigated
|
||||||
|
|
||||||
|
One dated line per decision that **no longer governs**, plus the reason it died. Read only when
|
||||||
|
you are about to re-open one of them. Live rules live in the subsystem files; this is the
|
||||||
|
graveyard with cause of death.
|
||||||
|
|
||||||
|
## Monetization — all superseded by the free-forever ruling (2026-10-08, TASK 54)
|
||||||
|
|
||||||
|
- **2026-09-21** one-time perpetual licence `$29` founder → `$49` list — superseded 6 days later.
|
||||||
|
- **2026-09-27** `$10/mo` subscription or `$400` lifetime, **no annual**. Store revenue share was
|
||||||
|
verified at **15%** (ADA v8.10 §6(b)(i) → `$8.50` / `$340` net), including subscriptions.
|
||||||
|
- **No annual tier** because Microsoft does not pro-rate: *"monthly subscriptions and initial
|
||||||
|
(pre-renewal) purchases aren't eligible for a prorated refund"* — a first-year subscriber who
|
||||||
|
cancels loses the remaining months and the developer cannot refund it.
|
||||||
|
- **Clean numbers, no `.99`** (creator: *"Let's stop with the x.99 stuff"*). The convention exists
|
||||||
|
only to make a price look cheaper, which is incoherent for a brand sold on honesty.
|
||||||
|
- **Escalation model** (2026-09-01): the credit was deliberately obnoxious self-promo; the cadence
|
||||||
|
*is* the nagware — no modals, no feature locks, no stream-time cutoffs.
|
||||||
|
- **Pre-GA posture — preview-only flash** (reversed 2026-09-26): the credit used to render in the
|
||||||
|
preview and never on the broadcast, to keep test VODs clean. The creator ruled the free tier must
|
||||||
|
be honest advertising; it now composites into output and recordings when enabled.
|
||||||
|
- **Rejected**: always-on watermark (obscurable — replaced by the flash), hard stream-time cutoffs
|
||||||
|
(a stream dying mid-broadcast reads as broken), soft-limit nagging, freemium feature tiers,
|
||||||
|
donation-only, and any resolution/quality ceiling. Auto step-down (TASK 33) is a *protect the
|
||||||
|
stream* feature, never a monetization penalty.
|
||||||
|
- **Polar** — $50 already paid, 5% + $0.50 Starter, merchant of record. Dormant, not
|
||||||
|
deleted-in-principle: no product, org ID, key prefix or discount code exists
|
||||||
|
(`d105dfa1-…`, `c05fb364-…`, `LCYT-`, `LLAMAFOUNDER`/`LLAMA50`, the portal-validate endpoint and
|
||||||
|
the 14-day offline-grace machine are all gone). `Distribution.md` §4.2/§4.5 keeps the design.
|
||||||
|
- **Store IAP** was never implemented — `Windows.Services.Store` appears nowhere in the repo.
|
||||||
|
- ⚠️ **Two obligations any future subscription would create** (ADA §6(h)): fulfil the whole period
|
||||||
|
as marketed (breach → Microsoft may refund in full at its discretion), and **raising the price
|
||||||
|
disables auto-renew** — the launch price is effectively locked for the product's life.
|
||||||
|
|
||||||
|
## Distribution — Store route withdrawn 2026-10-22
|
||||||
|
|
||||||
|
- **2026-09-27 Store MSIX + Store IAP decided; 2026-10-22 withdrawn.** A brand name on the
|
||||||
|
Store's *publisher* line requires a **Company** account → a registered legal entity (LLC ~$85
|
||||||
|
New Mexico with a ~2-week SOS backlog, ~$143 Wyoming). Partner Center does **not** convert an
|
||||||
|
Individual account to a Company account later, and an Individual account publishes under the
|
||||||
|
verified legal name. The creator will not fund an entity for a nameplate.
|
||||||
|
- **2026-10-22 Velopack deleted** — it downloaded and executed, which Store policy 10.2.2 forbids.
|
||||||
|
The Store was going to update the app, so that premise died with the route: **the app now has no
|
||||||
|
update path**, and `StorePackagingTests` currently asserts that no updater exists — rewrite that
|
||||||
|
guard with the chosen updater, never leave it to veto one.
|
||||||
|
- **The MSIX package still builds** (159 MB `artifacts/LlamaCasty.msix`, submitted nowhere). The
|
||||||
|
route contradiction between `ai.md`'s older text and the TASKS files is settled in one sweep at
|
||||||
|
the distribution revisit, not patched piecemeal.
|
||||||
|
- **Signing**: Microsoft removed the EV instant-bypass for SmartScreen in March 2024, so EV buys
|
||||||
|
what OV buys; the 2026-10-22 ruling is **ship unsigned** and accept the "unrecognized publisher"
|
||||||
|
warning until download reputation accrues. Deferred, not rejected.
|
||||||
|
- **Steam when $100 exists**: Steam Direct $100/product (recoupable after $1,000 AGR), categories
|
||||||
|
*Audio/Video Production* / *Player Tools* (OBS precedent), developer/publisher name self-chosen
|
||||||
|
(no entity needed), 5+ 1920×1080 screenshots + capsule art, a build Valve runs, a 2-week live
|
||||||
|
page, 30% cut.
|
||||||
|
|
||||||
|
## Product surface — retired
|
||||||
|
|
||||||
|
- **2026-09-24 StreamElements replaced by native alerts** (TASK 43). No third-party widget feed:
|
||||||
|
the chat poll *is* the event feed.
|
||||||
|
- **2026-09-01 the screens/layers settings audit** was retired into the gold pass (TASK 36 item 3)
|
||||||
|
rather than run as session debt.
|
||||||
|
- **2026-10-04 launch position**: restoring the saved position was rejected for a derived
|
||||||
|
top-left placement. The live rule is in `ui-surface.md`; the old clamp's tolerance range is why
|
||||||
|
it must not come back.
|
||||||
|
- **D3D11 swap compositor** — superseded by the software compositor (TASK 3 item 16).
|
||||||
|
- **Windows 8 / 32-bit support** — 64-bit Windows 10/11 only (creator ruling 2026-10-09).
|
||||||
|
- **"There is no v1.x"** (2026-09-01): everything queues to v1 or to *out of product,
|
||||||
|
permanently* — no feature parks "for a later version".
|
||||||
|
|
||||||
|
## Out of product — permanently
|
||||||
|
|
||||||
|
Do not build these; each was explicitly ruled out.
|
||||||
|
|
||||||
|
- D3D11 swap compositor (superseded by the software compositor).
|
||||||
|
- OBS-style source expansion — game capture, browser-source zoo, media playlist, VLC, colour-key,
|
||||||
|
MIDI. The minimal source set is deliberate; creators who need more have graduated to OBS.
|
||||||
|
- Multi-layout / profiles / presets — that is what OBS is for.
|
||||||
|
- Cross-process stream resume (impossible via the API; creator ruling 2026-09-01).
|
||||||
|
- Stream Deck / Loupedeck integration — the device sends keystrokes, and global hotkeys already
|
||||||
|
*are* the integration.
|
||||||
|
- Per-source audio sync offset — global offset shipped (TASK 22); per-source is the OBS mixer
|
||||||
|
rabbit hole and breaks the one-knob audio rule.
|
||||||
|
- Chroma key / NVIDIA-only background removal (the bundled ONNX path is the one shipped).
|
||||||
|
- Virtual camera output — a different product and a device-driver swamp; our output is one
|
||||||
|
YouTube stream.
|
||||||
|
- Replay buffer, stream clipping, multi-destination restreaming, an in-app bug reporter, and an
|
||||||
|
advanced broadcast-form tab (latency/DVR/embed/projection/CC/region are fixed at sane defaults;
|
||||||
|
every exposed field is a support ticket).
|
||||||
@@ -0,0 +1,156 @@
|
|||||||
|
# Environment, build & tests
|
||||||
|
|
||||||
|
Lookup material: LAN hosts, the Windows build commands, where the DB/auth/log live, and the
|
||||||
|
test suite map. Read when you are about to build, run, or add a test — not on every session.
|
||||||
|
|
||||||
|
> Paths and secrets belong with the runbook in [`../../HANDOFF.md`](../../HANDOFF.md) →
|
||||||
|
> "Secrets / paths" until the queue trim moves them here.
|
||||||
|
## LAN infrastructure (192.168.50.x)
|
||||||
|
|
||||||
|
All LAN credentials live in `CREDENTIALS.md` (gitignored). Server IPs and roles:
|
||||||
|
|
||||||
|
| Host | IP | Role |
|
||||||
|
|------|----|------|
|
||||||
|
| corsair | .132 | Gaming/streaming primary — RTX 5070 Ti (this machine) |
|
||||||
|
| llamavault | .87 | ODROID-HC4, 12TB RAID5, media storage (NFS). SSH: `ssh mshallop@192.168.50.87`. **DHCP-bound — it moved off `.86` after the 2026-10 power outage, so confirm with a ping before trusting any path.** SMB is reached by the **`llamavault` name**, pinned in the Windows hosts file, never by literal IP: `\\llamavault\llamaVault\...` |
|
||||||
|
| pivault | .158 | RPi5 8GB, 10.83TB RAID5 NAS |
|
||||||
|
| jarvis | .210 | AMD Ryzen 5 5600X, RX 6600 XT — AI inference, SearXNG, Docker registry, Immich |
|
||||||
|
| ultron | .108 | AMD Ryzen 7 7840HS — AI orchestrator, llama-server, Qdrant |
|
||||||
|
| gordito | .144 | Home Assistant, Alarmo, Zigbee |
|
||||||
|
| officerfriendly | .26 | Pi-hole DNS |
|
||||||
|
| octopi | .197 | OctoPrint (Prusa MK4) |
|
||||||
|
| BigBlinkyRouter | .1 | ASUS ROG GT-BE98 Pro, WiFi 7 |
|
||||||
|
|
||||||
|
Web infra (DO droplet): `llamacasty.com` + `llamachile.tube` at `143.244.176.131`.
|
||||||
|
|
||||||
|
**Pushing to the Gitea instance (`llgit.llamachile.tube`).** The repo is **`gramps/LlamaCasty`**
|
||||||
|
(renamed from `gramps/ytLlive`; the old path 301-redirects). **Push over HTTPS**, not SSH:
|
||||||
|
`origin = https://llgit.llamachile.tube/gramps/LlamaCasty.git`, with the credential helper
|
||||||
|
`/home/gramps/bin/gitea-credential` (registered as
|
||||||
|
`credential.https://llgit.llamachile.tube.helper`) reading the account password from the
|
||||||
|
gitignored `CREDENTIALS.md` on demand — nothing stored in plaintext, nothing in a command line.
|
||||||
|
**The Gitea account password IS the portal password** in `CREDENTIALS.md`, and the same password
|
||||||
|
authenticates the REST API (`curl --config …/api/v1/user`) — **that API is the fastest way to ask
|
||||||
|
the server questions** (the repo's real name and clone URL, the account's SSH keys, a token).
|
||||||
|
⛔ **The SSH endpoint on `llgit:2214` is not a usable push path**: the account's SSH keys ARE
|
||||||
|
registered (key id 6 "Corsair VSC" = this machine's `~/.ssh/id_ed25519`) yet the server refuses
|
||||||
|
the publickey, and the port later refused connections outright. Do not spend a session on key
|
||||||
|
archaeology — ask the API, then push over HTTPS.
|
||||||
|
|
||||||
|
## Run
|
||||||
|
|
||||||
|
**First time on a fresh clone (or if `ffmpeg/` was deleted) — this is REQUIRED, not optional:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./scripts/fetch-ffmpeg.sh # ~65 MB once; verifies SHA-256, extracts 9 files into ./ffmpeg
|
||||||
|
```
|
||||||
|
|
||||||
|
FFmpeg is **bundled, never downloaded at runtime** (Windows Store policy 10.2.2 — the old runtime
|
||||||
|
download 404'd on 2026-09-01 and would fail certification). The binaries are gitignored because
|
||||||
|
135 MB of DLLs in git would tax every commit on this 9p tree; the pinned URL + SHA-256 in the script
|
||||||
|
are the audit trail. `ytLive.csproj`'s `GuardBundledFfmpeg` target **fails the build** with that
|
||||||
|
exact instruction if the folder is missing. `FFMPEG_ZIP=<path>` reuses a pre-downloaded archive.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# From WSL, ALWAYS use the Windows dotnet host — never Linux `dotnet` for this project:
|
||||||
|
"/mnt/c/Program Files/dotnet/dotnet.exe" build "C:\Users\gramp\Documents\Code\projects\ytLive\ytLive.csproj"
|
||||||
|
"/mnt/c/Program Files/dotnet/dotnet.exe" run -c Release # the launch command (creator, 2026-10-16): Release, not Debug — perf takes must read Release numbers
|
||||||
|
```
|
||||||
|
|
||||||
|
**Run-mode convention (creator directive 2026-10-16):** the creator launches with `-c Release`
|
||||||
|
by DEFAULT. Debug runs happen ONLY when the AI explicitly names the Debug command for a
|
||||||
|
specific reason — never implicitly, and never for reading performance numbers (Debug pixel
|
||||||
|
paths are several × slower; every take in the 141ms saga read Debug numbers where Release is
|
||||||
|
the real reading).
|
||||||
|
|
||||||
|
**Pre-commit gate (write it down — I forgot once):** ALWAYS run
|
||||||
|
`./scripts/verify.sh "<file1>" "<file2>" ...` (declared scope) before committing. It forces a
|
||||||
|
**clean** build (0 warnings), the full test suite (passes only the 2 known pre-existing `[FAIL]`s), and
|
||||||
|
the scope check in one shot. An **incremental** build can report `0 Warning(s)` while skipping
|
||||||
|
recompiles — that's how `CS8601` slipped past on 2026-08-29. Never claim 0 warnings from anything but
|
||||||
|
`verify.sh`'s clean build.
|
||||||
|
|
||||||
|
`EnableWindowsTargeting=true` in `ytLive.csproj` lets a cold restore work from WSL, but a Linux
|
||||||
|
`dotnet run`/`build` re-downloads 100M+ of `windowsdesktop.app.*` packs into the Linux NuGet cache
|
||||||
|
(which lacks them) over the slow 9p `/mnt/c` bridge — twice, because the WPF `_wpftmp` generated
|
||||||
|
project triggers a second restore (203s observed). The Windows cache has the SQLite packages and the
|
||||||
|
packs resolve from `C:\Program Files\dotnet\packs`, so the Windows host never re-downloads.
|
||||||
|
Never use `--no-restore` right after an interrupted restore — the stale `project.assets.json`
|
||||||
|
produces misleading `NETSDK1064` "package not found" errors. Running requires Windows anyway.
|
||||||
|
|
||||||
|
## Tests
|
||||||
|
|
||||||
|
xUnit in `ytLive.Tests` (net8.0-windows10.0.19041.0, matches the app TFM). Run on Windows —
|
||||||
|
WSL can't run net8.0-windows tests:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
dotnet.exe vstest "C:\...\ytLive.Tests\bin\Debug\net8.0-windows10.0.19041.0\ytLive.Tests.dll"
|
||||||
|
```
|
||||||
|
|
||||||
|
Good Dog Rule: ONE integration test per change (no feature branches pre-1.0 — work lands on
|
||||||
|
`main`, see AGENTS.md). Current: TokenStore DPAPI
|
||||||
|
roundtrip/corrupt/missing/clear, OAuth exchange/refresh/ClearSession, CameraManager refcount +
|
||||||
|
frame pump + failure handling (fakes for the WinRT seams), real-`MainWindow` round-clip
|
||||||
|
interaction test, LayoutStore delete roundtrip, LayoutStore pre-round-rect-dims roundtrip,
|
||||||
|
LayoutStore background roundtrip, LayoutStore HasBackground roundtrip + v5→v6 non-Live backfill,
|
||||||
|
ScreenCaptureManager refcount + shared-bitmap + coalescing
|
||||||
|
(fake `IScreenCaptureSource` + a real background-STA `Dispatcher`), BackgroundTests, SceneCatalogTests,
|
||||||
|
the TASK 25 dirty-layout heal (BackgroundHealIntegrationTests), WebcamSafeguardTests,
|
||||||
|
SceneCompositorTests (full-scene composite + vertical tier), StretchMathTests, FfmpegLocatorTests,
|
||||||
|
FfmpegEncoderTests, FramePumpTests, the TASK 8/11/12 audio chain (AudioPipelineTests + MasterLimiter),
|
||||||
|
the Socials fediverse-heal roundtrip, AboutHubTests, NotificationAreaIntegrationTests (TASK 24),
|
||||||
|
GlobalHotkeyTests + HotkeyConfigTests (TASK 20), WebcamMenuGateTests (TASK 26), ChatLayerGateTests
|
||||||
|
(TASK 27), BroadcastPullOutTests (TASK 29), DefaultRecordFolder fallback (TASK 30), WebView2ManagerTests
|
||||||
|
(TASK 17), RecordingFileTests + OnAirSignTests (TASK 18), SessionTeardownTests +
|
||||||
|
WebcamOutputKeyTests + GameMeterHonestyTests (2026-09-01 recording-verification fixes) — **ZERO
|
||||||
|
known failures as of 2026-09-01. `AudioPipelineTests` 25/25 green in 26ms —
|
||||||
|
the "known failing" `Mix_HonorsProviderGains…` and the class's notorious STANDALONE HANG shared
|
||||||
|
one root cause: TASK 22's `_delayedMix` (nullable, never initialized) was dereferenced
|
||||||
|
(`delayed.Length` on null) every live-mix tick — a swallowed NRE starved the pipe the tests
|
||||||
|
read and flooded startup.log. Test was right, code drifted from the map's own contract
|
||||||
|
(loopbackGain = GameAudioVolume — now honored; the "unity because loopback scales with the
|
||||||
|
endpoint" assumption was disproven by the creator's 20%-volume meter observation). The former
|
||||||
|
RoundClip "known failure" (stale-test layers: namescoped `FindName` + `VisualTreeHelper.HitTest`
|
||||||
|
where `UIElement.InputHitTest` models input — see MyMistakes) was fixed the same day.
|
||||||
|
Per-class runs through the Windows dotnet.exe host execute the RealApp/MainWindow suites fine;
|
||||||
|
only the FULL-suite run still hangs (WASAPI teardown, pre-existing) — and the whole-suite
|
||||||
|
"247 total" era count is stale; trust per-class results.**
|
||||||
|
|
||||||
|
Reward-event capture (monetization awareness, see the Monetization section) will add its integration
|
||||||
|
tests here when it ships: one real chat-poll payload containing all seven reward event types →
|
||||||
|
assert the persisted canonical `RewardEvent` rows (type + amount/currency/tier/memberLevel/participant
|
||||||
|
ids) round-trip into SQLite.
|
||||||
|
|
||||||
|
### Real-MainWindow tests MUST be hermetic (DB pollution bug)
|
||||||
|
|
||||||
|
The integration test boots a real `MainWindow` → `MainViewModel` → real `LayoutStore`
|
||||||
|
(`%APPDATA%\ytLlive\ytLlive.db`). `Shutdown()` on close **saves the layout** (full rewrite:
|
||||||
|
DELETE all scenes/sources, re-insert), so any source a test adds would be persisted over the
|
||||||
|
user's real ones — this happened and wiped the real webcam source (DeviceId replaced by the
|
||||||
|
test's fake `test-camera`). Rule: a test that constructs `MainWindow` MUST first set
|
||||||
|
`MainViewModel.LayoutPathOverride` to a temp DB path and reset it (plus
|
||||||
|
`SqliteConnection.ClearAllPools()` + delete) in `finally`. The seam is
|
||||||
|
`internal static string? LayoutPathOverride` (line ~529 in `MainViewModel.cs`),
|
||||||
|
`ytLive.csproj` has `InternalsVisibleTo("ytLive.Tests")`.
|
||||||
|
|
||||||
|
The layout DB is a **full rewrite per save** (delete all, re-insert from memory), so
|
||||||
|
save/load round trips are exact: an element removed in the UI (`RemoveElement` →
|
||||||
|
`scene.Elements.Remove` → `OnElementsChanged` → debounced `ScheduleSave`, plus `Shutdown` on
|
||||||
|
close) does **not** come back after reload (`LayoutStorePersistenceTests` guards this).
|
||||||
|
|
||||||
|
|
||||||
|
## Persistence & external accounts (lookup)
|
||||||
|
|
||||||
|
- Layout: `%APPDATA%\ytLlive\ytLlive.db` (SQLite, schema v8 — scenes, sources, assets by SHA-256
|
||||||
|
content hash, socials, settings; **full rewrite per save**).
|
||||||
|
- Auth session: `%APPDATA%\ytLlive\ytLlive.auth` (DPAPI, CurrentUser scope).
|
||||||
|
- Startup log: `%APPDATA%\ytLlive\startup.log`, capped at 5 MB with one rolled copy
|
||||||
|
(`Helpers/LogRotation.cs`, TASK 55 slice 1).
|
||||||
|
- **Google Cloud project `198374416003`** — the OAuth ClientId prefix is the project number. It is
|
||||||
|
owned by **`llamachile.shop@gmail.com`** ("gramps"), which is **NOT** the Google account a creator
|
||||||
|
signs into YouTube with; console access and channel identity are separate logins. Direct link:
|
||||||
|
`https://console.cloud.google.com/apis/credentials?project=198374416003` — if the picker shows no
|
||||||
|
match it defaults to the **"Recent"** tab, so switch to **"All"**.
|
||||||
|
- LAN credentials live in the gitignored `CREDENTIALS.md`. ⚠️ It says Home Assistant is
|
||||||
|
`192.168.50.144`; the real HA is `192.168.50.145` (`.144` is `gordito`). Fix that file when next
|
||||||
|
editing it.
|
||||||
@@ -122,7 +122,7 @@ allowed until a real reading names the culprit.
|
|||||||
|
|
||||||
**Read takes in Release.** The creator launches `dotnet run -c Release`; Debug pixel paths are
|
**Read takes in Release.** The creator launches `dotnet run -c Release`; Debug pixel paths are
|
||||||
several× slower, so a Debug number is not a reading of this pipeline (see
|
several× slower, so a Debug number is not a reading of this pipeline (see
|
||||||
[`ai.md` → Run](../../ai.md#run)).
|
[`environment.md` → Run](environment.md#run)).
|
||||||
|
|
||||||
**Derivative check (AGENTS.md):** this is not invented — OBS's own answer to "which source is slow" is
|
**Derivative check (AGENTS.md):** this is not invented — OBS's own answer to "which source is slow" is
|
||||||
the **Source Profiler**, which reports the *average execution time of each source's tick and render
|
the **Source Profiler**, which reports the *average execution time of each source's tick and render
|
||||||
@@ -793,11 +793,11 @@ Full suite 290/291 passing, the sole failure the pre-existing compositor pixel t
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Related in [`ai.md`](../../ai.md)
|
## Related files
|
||||||
|
|
||||||
This file owns the compositor and the pump. The neighbours stay in `ai.md`:
|
This file owns the compositor and the pump. The neighbours live elsewhere:
|
||||||
|
|
||||||
- **Live encoder + RTMP push** — `IFfmpegEncoder`/`FfmpegEncoder`, `FfmpegArgs`, locator and bundle.
|
- [`output.md`](output.md) — **live encoder + RTMP push**, `IFfmpegEncoder`/`FfmpegEncoder`, `FfmpegArgs`, locator and bundle.
|
||||||
- **Media source** — `MediaVideoSource` (ffmpeg `rawvideo` decode) feeding the pump's resolver.
|
- [`TASKS/task-21-media-source.md`](../../TASKS/task-21-media-source.md) — **media source**, `MediaVideoSource` (ffmpeg `rawvideo` decode) feeding the pump's resolver.
|
||||||
- **Social bar** and **Native events & alerts** — the overlay strips the compositor blits last.
|
- [`overlays.md`](overlays.md) — **social bar** and **native events & alerts**, the overlay strips the compositor blits last.
|
||||||
- **Run** and **Tests** — how to launch in Release and how the suite is run.
|
- [`environment.md`](environment.md) — **Run** and **Tests**, how to launch in Release and how the suite is run.
|
||||||
|
|||||||
+11
-7
@@ -1,9 +1,9 @@
|
|||||||
# docs/ai — index
|
# docs/ai — index
|
||||||
|
|
||||||
Subsystems split out of [`ai.md`](../../ai.md) (2026-10-26) so a session pays only for the
|
Subsystems split out of [`ai.md`](../../ai.md) so a session pays only for the subsystem its task
|
||||||
subsystem its task touches. The split is a **verbatim move**: history, traps and measurements are
|
touches. `ai.md` is now a **router** (what the product is, the architecture table, where truth
|
||||||
unchanged, and `ai.md` keeps a short stub carrying the load-bearing invariants plus a link here, so
|
lives) and `AGENTS.md` carries the invariants that hold across all of them, so no rule is
|
||||||
no rule is reachable only from a file you forgot to open.
|
reachable only from a file you forgot to open.
|
||||||
|
|
||||||
Read the file whose row matches the task. There is no required reading order.
|
Read the file whose row matches the task. There is no required reading order.
|
||||||
|
|
||||||
@@ -12,9 +12,13 @@ Read the file whose row matches the task. There is no required reading order.
|
|||||||
| [`frame-pipeline.md`](frame-pipeline.md) | Render budget & measurement (`FrameCadence`, per-element composite timing, scene dump), `SceneCompositor` design + `StripPool`, and `FramePump` from scene snapshot to encoder (pacing, pool/paste caches, backpressure, teardown, health stats) | Touching the compositor, the render loop, per-frame cost, `Services/Encoder/*`, or debugging dropped/juddering frames |
|
| [`frame-pipeline.md`](frame-pipeline.md) | Render budget & measurement (`FrameCadence`, per-element composite timing, scene dump), `SceneCompositor` design + `StripPool`, and `FramePump` from scene snapshot to encoder (pacing, pool/paste caches, backpressure, teardown, health stats) | Touching the compositor, the render loop, per-frame cost, `Services/Encoder/*`, or debugging dropped/juddering frames |
|
||||||
| [`capture.md`](capture.md) | The locked Background layer (screen/game/window capture, WinRT GraphicsCapture interop), the webcam seam + `CameraManager` sessions, MediaPipe background effects, and the vertical 9:16 tier's per-scene camera placement | Touching any frame source, the Background row, camera acquisition/conflicts, background effects, or vertical-tier camera geometry |
|
| [`capture.md`](capture.md) | The locked Background layer (screen/game/window capture, WinRT GraphicsCapture interop), the webcam seam + `CameraManager` sessions, MediaPipe background effects, and the vertical 9:16 tier's per-scene camera placement | Touching any frame source, the Background row, camera acquisition/conflicts, background effects, or vertical-tier camera geometry |
|
||||||
| [`output.md`](output.md) | The bundled `ffmpeg.exe` and the encoder subprocess (args, probe order, seams), local recording (REC/ON-AIR, filenames, private-broadcast close-out), and the WASAPI capture → filter → mix → named-pipe audio chain (TRAX, sync offset, ducking, limiter) | Touching ffmpeg args/bundling, encoder or recording behaviour, REC/ON-AIR, the audio mix and its meters, or loudness/sync problems |
|
| [`output.md`](output.md) | The bundled `ffmpeg.exe` and the encoder subprocess (args, probe order, seams), local recording (REC/ON-AIR, filenames, private-broadcast close-out), and the WASAPI capture → filter → mix → named-pipe audio chain (TRAX, sync offset, ducking, limiter) | Touching ffmpeg args/bundling, encoder or recording behaviour, REC/ON-AIR, the audio mix and its meters, or loudness/sync problems |
|
||||||
|
| [`environment.md`](environment.md) | LAN hosts/IPs/SSH and the Gitea push recipe, the Windows `dotnet.exe` build + run commands, the test suite map, and the hermetic real-`MainWindow` test rule | Before building, running, adding a test, or reaching any box on the LAN |
|
||||||
|
| [`product.md`](product.md) | Brand/naming split, AI transparency, the GPL licensing prohibitions, the free-forever monetization posture, auth/account assumptions, and packaging/distribution | Branding, marketing, pricing, licensing, or packaging decisions |
|
||||||
|
| [`youtube-api.md`](youtube-api.md) | Go-live ordering + the broadcast-binding fix, the private-only lock, health parsing, end-stream pre-flight, Test mode, and chat-insert shape | Touching go-live, broadcast lifecycle, health polling, streaming close-out, or the chat service |
|
||||||
|
| [`overlays.md`](overlays.md) | The social bar, the native alert box (six animations, alert clip, ticker) and the chat box conventions — everything composited over the frame | Adding or changing anything drawn on top of the output |
|
||||||
|
| [`decisions.md`](decisions.md) | Retired paths with cause of death: the paid tier and pricing, Polar, Store IAP, the Store route, the deleted updater, the rejected monetization ideas, and the permanent out-of-product list | You are about to re-open a decision that was already settled |
|
||||||
|
| [`ui-surface.md`](ui-surface.md) | The control surface, scene strip, preview rail, hotkeys, broadcast drawer, toasts, transitions, brand logo, launch geometry, and the theme/properties-panel conventions | Changing anything the creator sees: layout, controls, theming, properties panel |
|
||||||
|
|
||||||
## Split-out yet to come
|
## Split-out yet to come
|
||||||
|
|
||||||
The remaining `ai.md` blocks are being moved in staged units (capture, YouTube/alerts/auth, product,
|
Nothing — `ai.md` is now a router with the always-read invariants; the subsystem detail lives here.
|
||||||
UI patterns/theming, audio/recording/encoder). Add the row when the file lands; do not create empty
|
|
||||||
placeholders.
|
|
||||||
|
|||||||
+4
-2
@@ -319,8 +319,10 @@ devices, no timers).
|
|||||||
pipe and mute silences the loopback).
|
pipe and mute silences the loopback).
|
||||||
---
|
---
|
||||||
|
|
||||||
## Related in [`ai.md`](../../ai.md) and [`frame-pipeline.md`](frame-pipeline.md)
|
## Related files
|
||||||
|
|
||||||
- [`frame-pipeline.md`](frame-pipeline.md) — the `FramePump` that feeds this encoder (pacing, backpressure, teardown order).
|
- [`frame-pipeline.md`](frame-pipeline.md) — the `FramePump` that feeds this encoder (pacing, backpressure, teardown order).
|
||||||
- **ai.md** — resolution tiers (W×H/FPS/bitrate), go-live/prep ordering, toast notifications, licensing guardrails.
|
- [`ui-surface.md`](ui-surface.md) — resolution tiers (W×H/FPS/bitrate) and toast notifications.
|
||||||
|
- [`youtube-api.md`](youtube-api.md) — go-live/prep ordering and the broadcast lifecycle.
|
||||||
|
- [`product.md`](product.md) — licensing guardrails (the ffmpeg pin, LGPL obligations).
|
||||||
- [`TASKS/research-store-certification.md`](../../TASKS/research-store-certification.md) — §4, the ffmpeg bundling analysis.
|
- [`TASKS/research-store-certification.md`](../../TASKS/research-store-certification.md) — §4, the ffmpeg bundling analysis.
|
||||||
|
|||||||
@@ -0,0 +1,154 @@
|
|||||||
|
# Output overlays: social bar, alerts, chat
|
||||||
|
|
||||||
|
Everything composited *over* the frame: the social bar, the native alert box (six event
|
||||||
|
animations, alert video, ticker), and the chat box conventions. Read before touching any of
|
||||||
|
them or anything that composites a global layer.
|
||||||
|
|
||||||
|
**Invariant:** every global overlay must be composited on **every** render path — pump,
|
||||||
|
preview/thumbnails, scene dump (`SceneCompositor.Overlay` is shared by all three). A feature
|
||||||
|
wired into one path is silently absent from the output. That bug ("preview-only forever",
|
||||||
|
2026-09-26) is why the rule exists.
|
||||||
|
|
||||||
|
## Social bar (TASK 6 — shipped 2026-08-12, plan in TASKS.md; bar bug-fix branch 2026-08-13)
|
||||||
|
|
||||||
|
A **global bar layer** (never a Source, no sources-list row) that sits over the bottom or top of the
|
||||||
|
output and carries the creator's social links — content-sized, centered, GREEN glow when ON, position is a
|
||||||
|
**click-toggle top ⇄ bottom** (default BOTTOM, persisted `SocialBarPosition`). `Models/Socials.cs`: `SocialService` enum
|
||||||
|
(YouTube/Twitch/X/Instagram/TikTok/Facebook/Discord/Kick/Threads/Bluesky/GitHub/LinkedIn/Pinterest/
|
||||||
|
Snapchat/Reddit/WhatsApp/Telegram/Link/Website/**Fediverse**), `SocialEntry` (Service/Handle/ProfileUrl/
|
||||||
|
`FediverseSoftware`), `SocialsConfig` (Entries + `BarPosition` + `BarEnabled`; `BarJustify` dropped,
|
||||||
|
column back-compat). Configured in the "Social Media Site Promotion" dialog (`SocialsDialog.xaml` +
|
||||||
|
`ViewModels/SocialsDialogViewModel`, WPF-free, injected `ISocialValidator` + sign-in/sign-out fakes):
|
||||||
|
ON/OFF bar switch (schema v8), 6 fixed slots — row 1 always YouTube (signed-in → channel handle;
|
||||||
|
signed-out → sign-in gate → OAuth; delete → confirm sign-out), row 2 free, rows 3–6 lock icons on
|
||||||
|
freemium. Service detection (`SocialServiceIcons.DetectService`): URL domain / fediverse `@user@domain` →
|
||||||
|
**Fediverse** / bare→Website. Validation (`Services/SocialValidator.cs`, `ISocialValidator` seam +
|
||||||
|
`HttpSocialValidator` default): async GET of the canonical profile URL; 200/redirect = valid, 404/failure =
|
||||||
|
rejected. Fediverse additionally does a **best-effort nodeinfo lookup** (`/.well-known/nodeinfo` →
|
||||||
|
`software.name`, stored in `SocialEntry.FediverseSoftware` / the `SocialEntry.Software` column,
|
||||||
|
column-presence migration, no version bump) so the entry shows the **instance's real logo**
|
||||||
|
(`LogoDataForFediverse`: mastodon/peertube/pixelfed/misskey/lemmy/pleroma/firefish, generic fediverse
|
||||||
|
honeycomb fallback — Simple Icons CC0 path data, initials badges gone); nodeinfo failure still validates
|
||||||
|
(glyph falls back). If the identity domain's nodeinfo is blocked (YunoHost SSO gates
|
||||||
|
`/.well-known/nodeinfo` behind the login page) but the bare root 302s to the real instance, the lookup
|
||||||
|
**follows the root redirect** and asks the resolved host. Cancel is a hard stop: `LookupAsync` takes a
|
||||||
|
`CancellationToken` (dialog VM owns a CTS; Cancel/X/Save abort in-flight lookups, canceled continuations
|
||||||
|
never touch slot state).
|
||||||
|
|
||||||
|
**Bar bug-fix branch (2026-08-13) — three changes:**
|
||||||
|
|
||||||
|
1. **Positioning is a click-toggle (KISS)** — the original drag set a local `Canvas.SetTop` value that
|
||||||
|
permanently overrides the `{Binding SocialBarTop}` (a binding can never win over a local value), so the
|
||||||
|
bar stayed wherever it was dropped. The first drag-snap fix (`SocialBarSnap.Decide` + `ClearValue` on
|
||||||
|
release) still failed for shaky hands — jitter around the ±6px deadzone snapped the bar up but wouldn't
|
||||||
|
let it come back down. **Superseded by the user's click-toggle:** clicking the bar flips it top ⇄ bottom
|
||||||
|
(`MainViewModel.ToggleSocialBarPosition`), the bar rides the binding alone, and `SocialBarSnap` is gone.
|
||||||
|
2. **Fediverse software self-heal** — the DB row `@gramps@llamachile.tube` had `Software = NULL` because
|
||||||
|
nodeinfo was only ever asked of the identity domain (a landing page; the real instance is
|
||||||
|
`mastodon.llamachile.tube`). `HttpSocialValidator.ResolveFediverseSoftwareAsync` now **probes
|
||||||
|
well-known subdomains** (`mastodon.` → `social.` → … `FediverseSubdomainCandidates`) when the identity
|
||||||
|
domain and its redirect both come up empty, under a ~15s linked-CTS budget. `MainViewModel` runs the
|
||||||
|
static `HealFediverseSoftwareAsync` off the UI thread on layout load, applies matches via the dispatcher,
|
||||||
|
and saves; `SocialEntry.FediverseSoftware` is settable and raises `LogoData`, so the icon updates in place.
|
||||||
|
3. **The bar renders on the live output** — `Compositor/SocialBarRenderer.cs` rasterizes the entries into a
|
||||||
|
transparent straight-alpha BGRA strip (1920-wide, 40px content + 24px glow pad, the green glow baked in,
|
||||||
|
Pbgra32→straight-alpha unpremultiply) and the compositor blits it above the flash (see "Live frame
|
||||||
|
pipeline").
|
||||||
|
|
||||||
|
## Native events & alerts (TASK 43, shipped 2026-09-24 — StreamElements replaced)
|
||||||
|
|
||||||
|
The creator asked to replace the external StreamElements feed with native YouTube events;
|
||||||
|
the answer is **native events + a native alert box**, and the product decisions are
|
||||||
|
published decisions (recorded in `TASKS/task-43-native-alerts.md`):
|
||||||
|
|
||||||
|
- **No third party.** The chat feed IS the event feed: `liveChat/messages` carries all six
|
||||||
|
monetization events (superChat / superSticker / newSponsor / membershipGifting /
|
||||||
|
giftMembershipReceived / memberMilestoneChat). `streamList` is the *connection semantics*
|
||||||
|
of that same endpoint (pollingIntervalMillis-driven), not a separate call — the service
|
||||||
|
re-arms its one-shot poll on the server's cadence (clamp 1000–6000ms), `maxResults=2000`.
|
||||||
|
Cite: https://developers.google.com/youtube/v3/live/docs/liveChatMessages/streamList
|
||||||
|
- **`SourceType.AlertBox` — one "Stream Alerts" celebration zone per layout**, OBS
|
||||||
|
alert-box style: a designated draggable canvas area, idle = transparent. Mirrors the chat
|
||||||
|
gate (`CanAddAlerts`; `AddSource` refuses a second). Defaults 620×430 → 680×200.
|
||||||
|
- **Six events → six unique animations** (`Services/AlertRenderer.cs`): SuperChat slide-up
|
||||||
|
+ gold count-up + shine sweep (green), SuperSticker scale-pop on a tilted chip (purple),
|
||||||
|
NewMember drop-in + flash band (violet), MemberGift slide-left + gift-chip `×N` fan
|
||||||
|
(amber), GiftReceived confetti scale-in (green→purple), MemberMilestone rise + tenure
|
||||||
|
growth bar (orange). Phases enter/hold/exit (~4–5s); every card draws the **brand line
|
||||||
|
"made with LlamaCasty!"** — each broadcasted event is free product placement.
|
||||||
|
- **`Services/AlertOverlayLayer.cs`** — the component: enqueues events one-at-a-time,
|
||||||
|
advances on a 33ms dispatch ticker, serves the live frame through `RenderFrame` (same
|
||||||
|
cache-first pattern as chat) and the preview through `UpdatePreview`; **`Advance(double)`
|
||||||
|
is the deterministic test clock** (tests drive playback with no timer). Queue cap 10
|
||||||
|
(floods drop the tail, never stall). `ChatEventKind.None` rows (plain chat, sub mentions)
|
||||||
|
**never enqueue** — per the creator ruling, a subscriber mention is sufficient; there is
|
||||||
|
no free-sub alert (YouTube emits none) and no viewer count (vetoed — demotivating,
|
||||||
|
weaponizable).
|
||||||
|
- **Alert box VIDEO (TASK 47, 2026-09-26):** since TASK 47 the box plays a clip on every
|
||||||
|
alert instead of (only) an animation — `Enqueue`→`BeginClip` spawns a **per-play**
|
||||||
|
`IAlertClipDecoder` (ffmpeg `rawvideo bgra -vf scale=W:H` frame pipe + `f32le` audio
|
||||||
|
pipe, both real-time paced via `RawVideoFrameReader`; **not** the refcounted
|
||||||
|
`MediaVideoSourceManager` — alerts are one-shot plays that must be disposed at drain).
|
||||||
|
Custom clip wins per-source over the built-in ONLY when `AlertUseDefaultVideo==false`
|
||||||
|
AND the file exists; the shipped `Assets/alert-default.mp4` is stamped into the `Asset`
|
||||||
|
table at startup (`AlertDefaultVideoKey` setting; the prune keeps it via UNION) and
|
||||||
|
read-at-play; any decode failure falls back to the six `AlertRenderer` animations
|
||||||
|
(deliberate, not an error). Fades in/out via **`FadeDurationSeconds = 0.30`**
|
||||||
|
(`AlertOverlayLayer` const): fade-in by `elapsed` on straight-alpha frame copies;
|
||||||
|
EOF → freeze-frame → fade-out → drain (the clip branch of `Advance` **clears
|
||||||
|
`_current` before `AdvanceToNext`** — the miss that the TASK 47 test caught). Audio
|
||||||
|
forwards to the mixer sink scaled by `volume × fade`.
|
||||||
|
- **Alert ticker (announcement strip):** `AlertTickerFrame` (in the layer) composes
|
||||||
|
"Author — Kind · amount" and hands it to `Services/Compositor/AlertTickerRenderer.cs` —
|
||||||
|
a strip rasterized **on the UI thread once per text** (cached, unpremultiplied
|
||||||
|
straight-alpha pill) then positioned by pure byte-math per call, so the pump calls it
|
||||||
|
from its own thread with no locking. **It is a dynamic overlay, NEVER baked** (the
|
||||||
|
social bar IS baked into `BakeStaticBase`): `SceneCompositor.Render` +
|
||||||
|
`CompositeLayers` take a trailing `tickerFrame` threaded from
|
||||||
|
`FramePump._alertTicker` (`Func<VideoFrame?>` ctor seam) through
|
||||||
|
`RenderScene`/`RenderFull` and **mixed into `BuildFullRenderSignature`** so a scroll
|
||||||
|
changes the cache key. Toggled by `AlertShowTicker`.
|
||||||
|
- **It draws INSIDE the Stream Alerts box (creator ruling 2026-09-26).** Was a global
|
||||||
|
1920px bar pinned to the top edge: *"the ticker should appear over the stream alerts
|
||||||
|
video, not over the entire preview window"*. The strip is now rendered at the
|
||||||
|
**alert box's own size** (`AlertTickerRenderer.Render(..., width, height)`, defaults
|
||||||
|
still 1920×48) and the box's origin rides on **`VideoFrame.Placement`**
|
||||||
|
(`(int X, int Y)?`, with `OriginX`/`OriginY` = 0 when unset). Every blit site reads
|
||||||
|
`tickerFrame.OriginX/OriginY` instead of a literal `0, 0` — `SceneCompositor` ×2 and
|
||||||
|
`FramePump`'s static-bake `Overlay` path. The preview binds the same numbers
|
||||||
|
(`AlertTickerLeft/Top/Width/Height` → `AlertTickerElement`'s `Canvas.Left/Top` +
|
||||||
|
`Width`/`Height`), so preview and output cannot drift — the same guarantee as the
|
||||||
|
branding credit. Product default box is **680×200 at (620, 430)**
|
||||||
|
(`MainViewModel.Sources.cs`); height is clamped to the natural 48px strip.
|
||||||
|
**No alert box in the scene ⇒ no ticker at all** — there is no global position left.
|
||||||
|
- **Why the position travels on the frame, not in a full-canvas frame:** a 1920×1080
|
||||||
|
overlay is 8.3MB of large-object-heap garbage per tick — ~2.5GB churned over one 10s
|
||||||
|
alert at 30fps. A box-sized strip is ~370KB. The branding flash *does* render
|
||||||
|
full-canvas, but it **recycles** one 8MB buffer and bumps `Epoch`, so it never
|
||||||
|
allocates per frame; the ticker allocates per call, so it must stay small.
|
||||||
|
- `CopyStrip` clips **rows** to the target height: the pill rasterises at its natural
|
||||||
|
48px, so a box shorter than 48px would otherwise write past the end of the buffer.
|
||||||
|
- **Three display methods** (`Source.AlertDisplayMethod`, DB column, panel "Display"
|
||||||
|
selector): `TickerScroll` (marquee), `Flash` (0.5s on / 0.5s off), `Solid` (centred,
|
||||||
|
still). The marquee is paced in **reads per alert** — `TickerReadsPerAlert = 3`
|
||||||
|
passes inside the alert's own length, speed derived from that — **never px/s**; the
|
||||||
|
old fixed `140px/s` took ~17s per pass, so a 10s alert showed the message once.
|
||||||
|
Same convention as the incumbent (Streamlabs: "Alert Duration" + "Text Delay", not a
|
||||||
|
scroll-speed slider). Flash's off half returns null.
|
||||||
|
- **A ticker still needs its own preview element, not a `Source`.** It is a frame-pump
|
||||||
|
producer, so it never rides a per-element `Image`; `AlertOverlayLayer` takes a
|
||||||
|
`tickerPreviewSink` and publishes from `RefreshAlertPreviews()` (UI thread only —
|
||||||
|
the pump thread must never touch a `WriteableBitmap`); the VM writes it into one
|
||||||
|
reused `WriteableBitmap` (`AlertTickerImageSource`/`AlertTickerVisible`) bound to
|
||||||
|
`AlertTickerElement` in `PreviewPane.xaml`, mirroring `SocialBarElement`. The rect
|
||||||
|
is re-raised on **every** published frame, not just on a bitmap resize, so a box
|
||||||
|
moved or resized mid-alert tracks live.
|
||||||
|
- **Two measurement traps here:** a seamless marquee never goes blank (a wrapped copy
|
||||||
|
enters as the pill clears), so count a pass by the pill's leading edge resetting, not
|
||||||
|
by an empty frame; and the run is phase-started half a frame in, or the first
|
||||||
|
published frame is blank (the pill sits exactly off the right edge).
|
||||||
|
- **Alert audio under the master limiter:** `AudioMixer.EnqueueAlertAudio` writes a
|
||||||
|
dedicated 8s stereo-48k ring (`AlertBufferSeconds`), drained in `FillAndMix` before the
|
||||||
|
limiter and added at **unity — never ducked** (creator ruling: "don't lower my game
|
||||||
|
audio for a tip"); `StartLive` clears it. Per-alert loudness = the Volume slider.
|
||||||
|
|
||||||
@@ -0,0 +1,362 @@
|
|||||||
|
# Product: brand, licensing, monetization & distribution
|
||||||
|
|
||||||
|
What the product is called, what it promises, what it may never do legally, and how it ships.
|
||||||
|
Read before branding, marketing, pricing, licensing or packaging work.
|
||||||
|
|
||||||
|
## Brand
|
||||||
|
|
||||||
|
**The UI design standard is [`DESIGN.md`](../../DESIGN.md)** — colours, type scale, spacing, radii
|
||||||
|
and elevation, all normative, implemented by `Themes/Tokens.xaml`. Accent blue `#38bdf8` is the only
|
||||||
|
interactive accent; red `#ff5451` means live/record and nothing else. The old brand red `#e94560` is
|
||||||
|
retired from app chrome (the wordmark/logo artwork is unchanged).
|
||||||
|
|
||||||
|
Marketing palette, official assets and copy live in `MARCOM.md` (gitignored — read it before any
|
||||||
|
branding or marketing work).
|
||||||
|
|
||||||
|
### Product name vs repo/assembly branding (2026-09-14)
|
||||||
|
|
||||||
|
The product is **llamacasty** (llamacasty.com, llamachile.tube, `llgit.llamachile.tube`). The
|
||||||
|
repo path, csproj `AssemblyName`/`RootNamespace`, DB/log paths (`%APPDATA%\ytLlive\...`),
|
||||||
|
and most internal namings are the legacy **ytLive/ytLlive** — a re-brand that never renamed
|
||||||
|
the internals. Treat the two as separate: external/user-facing language says "llamacasty",
|
||||||
|
code/assembly/repo names stay `ytLive`. If a full internal re-brand is ever done, this note
|
||||||
|
and the UI locator (Premium/wordmark) are the checklists; it is NOT a goal pre-1.0.
|
||||||
|
|
||||||
|
**Say "LlamaCasty" when reporting to the creator** — never "ytLive" in prose. `ytLive` is
|
||||||
|
the internal repo/assembly/namespace name only. Exact current split:
|
||||||
|
|
||||||
|
| surface | name | note |
|
||||||
|
|---|---|---|
|
||||||
|
| product / site / marketing | **LlamaCasty** | llamacasty.com, llamachile.tube |
|
||||||
|
| repo dir, csproj, `RootNamespace` | `ytLive` | 230 files: `namespace ytLive.*` |
|
||||||
|
| `AssemblyName` → shipped exe | `ytLive` | `ytLive.exe` |
|
||||||
|
| app data dir | `%APPDATA%\ytLlive` | **capital L**, drifts from `ytLive` |
|
||||||
|
| `Distribution.md` tells customers | `LlamaCasty.exe` | ⚠ **mismatch vs the real `ytLive.exe`** |
|
||||||
|
|
||||||
|
**Consequences, so nobody re-hunts them:**
|
||||||
|
- Renaming `<AssemblyName>` to `LlamaCasty` is the cheap win (the customer-visible exe
|
||||||
|
name matches what `Distribution.md` already promises; namespaces can stay `ytLive.*`).
|
||||||
|
It is **4 lines**, but it hard-breaks three pack URIs that spell the assembly name:
|
||||||
|
`MainWindow.xaml:14` (the **window icon** — taskbar/Alt-Tab), `OverlayHost.xaml:96`,
|
||||||
|
`RenameRecordingDialog.xaml:5`. Miss those and you ship a broken icon. Queued in TASKS.md
|
||||||
|
under the shipping task, not done.
|
||||||
|
- Renaming the `%APPDATA%\ytLlive` folder is **breaking** — it would orphan every existing
|
||||||
|
user's layout DB, `Assets` and settings. Never do it casually; needs a migration.
|
||||||
|
- No code compares its own assembly name (no `GetExecutingAssembly().GetName().Name` checks),
|
||||||
|
so the assembly name is otherwise free to change.
|
||||||
|
|
||||||
|
### AI transparency
|
||||||
|
|
||||||
|
This project is built through AI-assisted pair-programming. All code is generated
|
||||||
|
under the supervision of an experienced developer with decades of coding experience.
|
||||||
|
Architecture decisions, product direction, and quality gates are human-owned;
|
||||||
|
AI accelerates implementation. This is a testimonial to successful human-AI
|
||||||
|
collaboration, not autonomous code generation.
|
||||||
|
|
||||||
|
## Licensing — do not violate (GPL-3.0 open source since 2026-10-09; see `LICENSE`, `ADDITIONAL-TERMS.md`, `THIRD-PARTY-NOTICES.txt`)
|
||||||
|
|
||||||
|
**LlamaCasty is free software under GPL-3.0-or-later** (creator rulings 2026-10-09 — free forever, public
|
||||||
|
repo, "GPL-3 with attribution"). Copyright (C) 2026 Gramps. `ADDITIONAL-TERMS.md` carries the three
|
||||||
|
§7 terms: **7(b)** every copy keeps "Based on LlamaCasty by Gramps — https://llamacasty.com" in its
|
||||||
|
About screen; **7(c)** modified versions are marked and renamed; **7(e)** no trademark rights. The
|
||||||
|
**icon + logo files** (`Assets/llamacasty-icon.png/.ico`, `Assets/llamacasty-logo.jpg`) are **all
|
||||||
|
rights reserved, outside the GPL** — verbatim copies may carry them, forks must replace them (this is
|
||||||
|
what keeps the merch brand protected). The scene backgrounds + default alert video are AI-generated
|
||||||
|
**placeholders** (creator: made "with the intent of individual creators to immediately replace with
|
||||||
|
their own images") — they go out under the GPL with the code, no reservation. `LICENSE` + `ADDITIONAL-TERMS.md` ship beside the exe
|
||||||
|
(csproj `None` items); the About panel shows `THIRD-PARTY-NOTICES.txt`, whose header carries the
|
||||||
|
LlamaCasty license notice (GPL §5(d) "Appropriate Legal Notices"). **Source offer (§6):**
|
||||||
|
`https://llgit.llamachile.tube/gramps/LlamaCasty` (the Gitea repo; creator toggles it public — the
|
||||||
|
old `gramps/ytLlive` path 301-redirects there), recorded in the notices header + README.
|
||||||
|
|
||||||
|
Every bundled component must stay GPL-3.0-compatible (MIT/BSD/Apache-2.0/LGPL/public domain all are;
|
||||||
|
**GPL-2.0-only and proprietary are not**; Apache-2.0 is fine with GPL-3 but NOT with GPL-2). The
|
||||||
|
rules below predate the GPL switch; where their *reason* was "proprietary product" it is noted, but
|
||||||
|
the rule itself still stands for its other reasons. **NEVER:**
|
||||||
|
|
||||||
|
- **Swap the FFmpeg pin casually** — the BtbN `lgpl-shared` pin is the verified build. A GPL FFmpeg
|
||||||
|
build would now be license-compatible (the old "GPL contaminates the paid product" reason is gone),
|
||||||
|
but changing builds means re-verifying encoders, and libx264 carries no H.264 patent grant (Cisco's
|
||||||
|
covers OpenH264). Keep `lgpl-shared` unless a task says otherwise.
|
||||||
|
- **Distribute the static lgpl build** — LGPLv2.1 §6 wants relinkable object files for static linking.
|
||||||
|
The **shared** (dynamic-DLL) build sidesteps that: compliance is "license text + source offer +
|
||||||
|
unmodified binaries". The pin is `lgpl-shared`; when the pin is refreshed, keep the shared variant.
|
||||||
|
- **Use BtbN's `nonfree` variant** — it adds fdk-aac (Fraunhofer code licensing). The native FFmpeg AAC
|
||||||
|
encoder is fine (no Fraunhofer code) but grants no AAC patent license — accepted low-risk posture for
|
||||||
|
RTMP→YouTube, since encoder vendors cover their implementations (Cisco OpenH264, NVIDIA NVENC, Intel
|
||||||
|
QSV, AMD AMF).
|
||||||
|
- **Link FFmpeg into the app** — it stays a separate subprocess fed frames over a pipe; that separation
|
||||||
|
keeps the app's own code out of LGPL reach.
|
||||||
|
- **Drop `THIRD-PARTY-NOTICES.txt`** from the shipped app or the About screen, or alter the FFmpeg
|
||||||
|
copyright/LGPL notices inside the downloaded binaries. Automating the download counts as distribution
|
||||||
|
— the obligations are not optional.
|
||||||
|
- **Pin to a moving target** — the `latest` BtbN release tag floats. Only immutable autobuild tags give
|
||||||
|
a reproducible source offer. Record the tag + variant beside the URL (TASKS.md) every time the pin moves.
|
||||||
|
- **Use non-CC0 icon art** — the social bar's bundled SVG logo path data comes from **Simple Icons**
|
||||||
|
(CC0 1.0, public domain — see `THIRD-PARTY-NOTICES.txt`). Replacing or adding logos must stay CC0 or
|
||||||
|
another public-domain source; a logo asset under an incompatible or attribution-heavy license
|
||||||
|
would complicate every redistribution. The app's icon + logo (`Assets/llamacasty-icon.*`,
|
||||||
|
`Assets/llamacasty-logo.jpg`) are the creator's own art — all rights reserved, outside the GPL
|
||||||
|
(`ADDITIONAL-TERMS.md`).
|
||||||
|
- **Ship a font whose licence was not checked.** The two bundled families — **Inter** and
|
||||||
|
**JetBrains Mono** — are **SIL Open Font License 1.1** (approved 2026-10-30 with the DESIGN.md
|
||||||
|
standard). OFL is a free licence but is **not** GPL-compatible in the linking sense; they ship as
|
||||||
|
separate `.ttf` files loaded through WPF's font stack, which is aggregation, so the two coexist.
|
||||||
|
Obligations: keep the copyright line in `THIRD-PARTY-NOTICES.txt`, ship the `OFL-*.txt` text
|
||||||
|
beside the files in `Assets/Fonts/`, and never modify the fonts or reuse their reserved family
|
||||||
|
names for a modified version. Any new typeface needs this same check before it ships.
|
||||||
|
- **Ship an ML model without clean provenance** — the background-effects model (TASK 51) is Google's
|
||||||
|
official MediaPipe Selfie Segmenter download (Apache-2.0, model card), converted by our own script.
|
||||||
|
Model-zoo re-hosts (e.g. PINTO #109 = ML Kit's model, extracted) are off-limits. Apache-2.0 §4
|
||||||
|
obligations (license notice + "we converted it") live in `THIRD-PARTY-NOTICES.txt`.
|
||||||
|
- **Forget the v1 license-texts gate** — `THIRD-PARTY-NOTICES.txt` links the canonical license texts; at
|
||||||
|
**v1 (GA)** the full texts of every license it names MUST ship alongside it (TASK 4 requirement 9 is the
|
||||||
|
release blocker). Queued early is wrong; the release pass owns it.
|
||||||
|
- **Break the in-app About requirement** — since TASK 11 the About overlay is the app's in-app creator
|
||||||
|
hub: the real logo, the creator links (YouTube channel, Mastodon, Buy me a coffee, and the greyed
|
||||||
|
"Unlock Premium" seam whose billing URL is tabled), and a **Licenses & legal** sub-panel that loads
|
||||||
|
`THIRD-PARTY-NOTICES.txt` from the executable directory and renders it in a scrolling panel —
|
||||||
|
**never the OS viewer, no Notepad, no browser tab**. The premium/coffee link constants live in
|
||||||
|
`MainViewModel` (`PremiumUrl`, `CoffeeUrl`, `ChannelUrl`, `MastodonUrl`); filling in the billing URL
|
||||||
|
lights up the premium button. Do not reintroduce an "open the notices in Notepad" button.
|
||||||
|
|
||||||
|
## Design Principle
|
||||||
|
|
||||||
|
> This software is so intuitive that even the most right-brained person can easily intuit and use it.
|
||||||
|
|
||||||
|
Apply this to every UI decision:
|
||||||
|
- One-click go-live with working defaults
|
||||||
|
- Prefilled YouTube defaults (RTMP URL, bitrate, resolution, latency)
|
||||||
|
- Visual/drag-and-drop scene building over property panels
|
||||||
|
- Every action produces a visible outcome — no dead ends
|
||||||
|
- **"We're not them" (2026-09-01):** assume the creator's hardware is mediocre, because it is.
|
||||||
|
Every feature spends the machine's budget once — never twice for the same result (record OR
|
||||||
|
stream, not both; one reusable stream; one webcam; two mixer inputs). If a feature only sings on
|
||||||
|
a high-end chassis, it doesn't ship — the OBS escape hatch is open by design.
|
||||||
|
|
||||||
|
## Monetization — free forever, no watermark
|
||||||
|
|
||||||
|
**All features are free and ungated** (creator ruling 2026-10-08, TASK 54): no feature lock, no paid
|
||||||
|
tier, no watermark. Money comes from gratuity and merch, not gating. **No licence chatter reaches a
|
||||||
|
user** — no keys, no expiry, no licence UI. Support is email + GitHub issues; an in-app bug reporter
|
||||||
|
is out of product. `IsPremium` gates nothing in v1.
|
||||||
|
|
||||||
|
**The branding credit is OFF by default.** `MainViewModel.ShowBrandFlash` (internal static, default
|
||||||
|
`false`) is the master switch; `BrandFlashEnabled => ShowBrandFlash && !IsPremium` feeds the
|
||||||
|
presenter. The code is kept, not deleted — creator ruling: *"don't delete it, just make it
|
||||||
|
conditionally displayed."* `BrandFlashOutputTests` opts in by setting the switch before constructing
|
||||||
|
a `MainWindow`; `Credit_IsOffByDefault_EvenOnTheFreeTier` guards the default.
|
||||||
|
|
||||||
|
If it is ever enabled, the mechanics that matter:
|
||||||
|
|
||||||
|
- Full-frame neon "made with LlamaCasty!" at a **random position per presentation**, held **2s**
|
||||||
|
(500ms in / 1000ms full / 500ms out), first ~5s after start then every `rand(30s)+30s`.
|
||||||
|
- Published to the frame pump and the preview from the **same** `VideoFrame`, so preview and
|
||||||
|
broadcast cannot drift. Deliberately **not** folded into `SceneGraph.GetBakedBase` — the bake
|
||||||
|
cache compares element ids and would freeze the credit in place.
|
||||||
|
- **App-lifetime cadence:** the presenter is `Start()`ed once in the `MainViewModel` ctor, not per
|
||||||
|
go-live, because go-live and local recording share one `FramePump`. `IsPremium`'s setter therefore
|
||||||
|
restarts the cadence timer when re-enabling (`IsCadenceTimerEnabled` is the test seam).
|
||||||
|
- **It composites into the recording and the stream** (reversed 2026-09-26 — the free tier must be
|
||||||
|
honest advertising). Test arithmetic trap: `Advance(5.1)` in one call blows through the 2s window
|
||||||
|
(it both opens and ages the presentation) — step in 1/30s increments like `BrandFlashOutputTests`.
|
||||||
|
- **A mid-credit downgrade** cuts the advertisement on the next tick: the presenter re-checks its own
|
||||||
|
`Enabled` gate every frame rather than letting the credit finish.
|
||||||
|
|
||||||
|
Pricing, billing, the Store IAP plan and the rejected alternatives are history →
|
||||||
|
[`decisions.md`](decisions.md).
|
||||||
|
|
||||||
|
|
||||||
|
**Monetization awareness (built-in, ungated, free — 2026-09-01; v1 SCOPE per the complete-v1
|
||||||
|
ruling — build order: capture → report → journey → Alerts):** the app is monetization-aware by
|
||||||
|
design, for **every** creator, free and ungated (the only subscriber swap remains the branding-flash
|
||||||
|
removal above). It has three layers, all free — this is the product's differentiator, not a paid tier:
|
||||||
|
|
||||||
|
- **Reward-event capture (the data foundation).** The live-chat poll (`YouTubeChatService.Poll`)
|
||||||
|
receives every reward event over `liveChat/messages` and — since TASK 43 (2026-09-24) —
|
||||||
|
**decodes all six types**, not two: `superChatEvent`, `superStickerEvent`, `newSponsorEvent`,
|
||||||
|
`membershipGiftingEvent`, `giftMembershipReceivedEvent`, `memberMilestoneChatEvent` land as
|
||||||
|
`ChatMessage.Kind` (`ChatEventKind`) with their payload fields (display string, sticker
|
||||||
|
description, gift count, gifter name, milestone months); free subscriptions emit NO event
|
||||||
|
(API fact — a sub mention is a plain text row). The remaining half of the original capture
|
||||||
|
plan stays open (TASK 3 item 20): persist each event to the canonical SQLite `RewardEvents`
|
||||||
|
table (broadcastId, type, timestamp, amountMicros, currency, tier...) + `superChatEvents.list`
|
||||||
|
(30-day lookback) backfill — that persistence is what the session report and the journey
|
||||||
|
tracker read. Alerts did not wait on it: the shipped alert path (TASK 43) renders directly
|
||||||
|
from the in-memory `ChatMessage` feed.
|
||||||
|
- **Session / broadcast report.** A session is created at Go Live; the poll + End roll that session's
|
||||||
|
reward totals (new members, Super Chat $, stickers $, gifts, milestones). This is the in-app
|
||||||
|
replacement for the emailed external "stream activity report" — the incumbents (Streamlabs et al.)
|
||||||
|
email near-useless post-stream summaries; we track the same data natively and maintain it.
|
||||||
|
- **Journey tracker (TASK 39, slice 1 shipped 2026-09-22).** A **"YPP"** tab below the
|
||||||
|
Stream Settings pull-out (Live screen right edge) shows the connected creator's position
|
||||||
|
toward each YPP tier threshold. Slice 1 = current-scope data only: `channels.list?mine=true
|
||||||
|
&part=statistics,contentDetails` (subs/views/videos + uploads-playlist id) +
|
||||||
|
`playlistItems.list` for 90-day public uploads. Every refresh appends
|
||||||
|
a `YppSnapshot` to SQLite (schema v10) — the history a later slice needs for velocity/ETA.
|
||||||
|
**The `auditDetails` part is OUT (fixed 2026-09-23):** readding it 403s the WHOLE request —
|
||||||
|
that part alone requires the `youtubepartner-channel-audit` scope no app for normal creators
|
||||||
|
should request (the standing flags sat unreadable since slice 1 shipped; the app's `youtube` +
|
||||||
|
`youtube.force-ssl` scopes were never sufficient for them — the "no re-consent" slice-1 claim
|
||||||
|
was wrong for that part). Channel standing now deep-links to the Earn page; API stats come from
|
||||||
|
`statistics,contentDetails` only. YPP/API failures log the response body's `error.reason`.
|
||||||
|
**YPP thresholds are versioned, date-aware DATA, never constants** — the Tier-2 bar doubles
|
||||||
|
for new applicants on **2027-02-01** (long-form 4,000 → 8,000 qualified hrs / 365d; Shorts
|
||||||
|
10M → 20M / 90d), while the Tier-1 fan-funding bar (500 subs / 3,000 hrs / 3M Shorts) is
|
||||||
|
unchanged. Hardcoding the pre-2027 numbers would ship the wrong ETA. Watch-hours / Shorts /
|
||||||
|
velocity / ETA are **slice 2**: Analytics-API scopes (`yt-analytics.readonly`, additive
|
||||||
|
`yt-analytics-monetary.readonly`) behind the `IChannelStatsProvider` seam (additive
|
||||||
|
capability, requires an OAuth re-consent). Compliance items no API exposes (2FA, AdSense
|
||||||
|
linkage) are in-app self-reported checkboxes with deep links; channel standing (exposed only
|
||||||
|
via the partner-audit scope) deep-links to the Earn page. Slice 2's once-daily refresh gate +
|
||||||
|
snapshot history were baked into slice 1.
|
||||||
|
|
||||||
|
|
||||||
|
## Auth gates Go Live, but not exploration
|
||||||
|
|
||||||
|
The app is fully usable without authentication: users can build scenes, add sources, compose
|
||||||
|
previews, and audition the software with zero commitment. But **going live requires authentication** —
|
||||||
|
it's the one capability gated behind YouTube sign-in. The sign-in should never pressure the user
|
||||||
|
("sign in (optional)", not a modal wall): the two-state top bar shows **Start Stream** (offline) /
|
||||||
|
**End Stream** (live), and the Start Stream dialog hosts the account — a saved session appears as
|
||||||
|
the default with "Change Account"; with none saved, a "Sign in to YouTube" button starts OAuth and
|
||||||
|
the Start button stays disabled until signed in.
|
||||||
|
|
||||||
|
## Account assumption (do not build an account setup flow)
|
||||||
|
|
||||||
|
Connecting uses Google OAuth ("Sign in with Google") to link an **existing** YouTube creator
|
||||||
|
account. ytLlive **never creates or sets up accounts** — that is YouTube's job. If the creator has no
|
||||||
|
YouTube channel, they go to YouTube first. This assumption is explicit and must never be silently
|
||||||
|
replaced by an in-app account-creation step. Zero state = the Start Stream dialog's "Sign in to
|
||||||
|
YouTube" button; going live is unreachable until an account is connected.
|
||||||
|
|
||||||
|
## Windows packaging & distribution (direct + Steam; Store dropped 2026-10-22)
|
||||||
|
|
||||||
|
**The Microsoft Store route is dead** — a brand on the publisher line needs a Company account and
|
||||||
|
a legal entity. Cause of death and the abandoned routes: [`decisions.md`](decisions.md).
|
||||||
|
|
||||||
|
**The route now:**
|
||||||
|
|
||||||
|
1. **Direct download from `llamacasty.com`** — the app is **free forever** (TASK 54), so there is
|
||||||
|
nothing to bill in v1.
|
||||||
|
2. **Steam when $100 exists** — Steam Direct is $100 per product (recoupable after $1,000 AGR),
|
||||||
|
accepted categories include *Audio/Video Production* / *Player Tools* (OBS Studio is the
|
||||||
|
precedent), the **developer/publisher name is self-chosen** so the brand needs no entity,
|
||||||
|
5+ screenshots at 1920×1080 + capsule art, a build Valve runs, and a **2-week live page**
|
||||||
|
before release. Valve takes 30%.
|
||||||
|
3. **Polar is dormant, not deleted-in-principle** — chosen checkout/licence provider if a paid
|
||||||
|
tier ever returns; $50 already paid. `Distribution.md` §4.2/§4.5 holds the design.
|
||||||
|
4. **The Microsoft Store: not pursued.** The MSIX package stays as a working artifact and is
|
||||||
|
submitted nowhere. History: `TASKS/research-store-certification.md`,
|
||||||
|
`TASKS/task-48-distribution-msix.md`.
|
||||||
|
|
||||||
|
**Consequences that are architecture, not packaging detail:**
|
||||||
|
|
||||||
|
- **⛔ The updater is now MISSING, not deleted-by-design.** Velopack and its bootstrap were
|
||||||
|
removed on 2026-10-22 (TASK 48 slice 3) because the Store was going to deliver updates — that
|
||||||
|
premise is gone. An update path must come back, and
|
||||||
|
`ytLive.Tests/StorePackagingTests.cs` (which asserts no updater returns) must be rewritten
|
||||||
|
with the chosen updater rather than left to veto one.
|
||||||
|
- **The MSIX package still builds** via `scripts/package-msix.sh` (TASK 48 slice 2) — publish
|
||||||
|
`Release -r win-x64 --self-contained` into `artifacts/msix-stage`, copy
|
||||||
|
`Packaging/Package.appxmanifest` in as `AppxManifest.xml` + `Packaging/Assets/`, then
|
||||||
|
`makeappx pack` → `artifacts/LlamaCasty.msix` (159 MB, gitignored; `MSIX_PFX` signs it for a
|
||||||
|
local install). The manifest is a **full-trust `packagedClassicApp` at `mediumIL`** with
|
||||||
|
`runFullTrust` + webcam + microphone. `Square310x310Logo`/`Wide150x150Logo` traps are in
|
||||||
|
`MyMistakes.md`. Logos come from the app's own artwork via `scripts/make-store-logos.py`.
|
||||||
|
- **⛔ Bundle ffmpeg — no runtime downloads** (was Store policy 10.2.2; still right for a direct
|
||||||
|
download, and it fixes the 2026-09-01 404). See [`output.md`](output.md) → "FFmpeg locator".
|
||||||
|
- **⛔ 64-bit Windows only (creator ruling 2026-10-09).** Both csproj files set
|
||||||
|
`<PlatformTarget>x64</PlatformTarget>` (the test project too — an AnyCPU test project
|
||||||
|
referencing an x64 app raises MSB3270 and breaks the 0-warning gate). Why: the bundled ffmpeg
|
||||||
|
is the win64 build, ONNX Runtime 1.31 ships no win-x86 native (only win-x64/win-arm64), and a
|
||||||
|
32-bit address space can't hold the 1080p frame buffers. Windows 11 is 64-bit-only anyway.
|
||||||
|
Public copy says "64-bit Windows 10 or 11".
|
||||||
|
|
||||||
|
**What does NOT change: the monetization posture.** The app is **free forever with no watermark**
|
||||||
|
(TASK 54, 2026-10-08), so `IsPremium` gates nothing in v1 and the branding flash is OFF by
|
||||||
|
default. `Monetization` above governs.
|
||||||
|
|
||||||
|
### ⛔ Durable invariant: full trust, or recording silently breaks
|
||||||
|
|
||||||
|
MSIX packages run at one of two trust levels. A packaged WPF app declaring
|
||||||
|
`rescap:Capability Name="runFullTrust"` runs at **mediumIL — the same permissions as a
|
||||||
|
standard desktop app, NOT AppContainer** — and may spawn child processes, which is why
|
||||||
|
bundling ffmpeg is legal. Writes to user-profile locations (AppData, Downloads, MyVideos)
|
||||||
|
**pass through unvirtualized at mediumIL**; the package install folder is read-only.
|
||||||
|
|
||||||
|
**`ViewModels/MainViewModel.Recording.cs` writes recordings to
|
||||||
|
`%USERPROFILE%\Downloads` / `SpecialFolder.MyVideos` (`DefaultRecordFolder()`,
|
||||||
|
`ChooseRecordFolder()` via `Microsoft.Win32.OpenFolderDialog`), and the whole
|
||||||
|
temp-write-then-move lifecycle stays in one directory.** That works *only* because we are full
|
||||||
|
trust. No `broadFileSystemAccess` capability is needed, and none should be added.
|
||||||
|
|
||||||
|
⚠️ **If anyone flips the manifest to `appContainer`, `Directory.CreateDirectory` and
|
||||||
|
`File.Move` start resolving to a per-package virtualized location and output vanishes with no
|
||||||
|
error.** A comment at `DefaultRecordFolder()` is owed **when the manifest lands** (TASK 48
|
||||||
|
item 6) — not before; a comment describing a manifest that doesn't exist is worse than none.
|
||||||
|
|
||||||
|
### Signing — do not buy EV
|
||||||
|
|
||||||
|
Microsoft **removed the SmartScreen instant-bypass for EV certificates in March 2024**. An
|
||||||
|
EV-signed file now accrues reputation exactly like an OV-signed one, so EV ($400+/yr) buys
|
||||||
|
what OV (~$150–300/yr) buys. Signing is **not** instant regardless — a valid cert stops the
|
||||||
|
*malware* warning immediately, but "unrecognized publisher" clears only as SmartScreen accrues
|
||||||
|
reputation from real download volume. Cert validity is capped at **460 days** (recurring
|
||||||
|
line item) and private keys must live on an **HSM or hardware token**. **The 2026-10-22 ruling
|
||||||
|
is to ship unsigned and accept the "unrecognized publisher" warning** until download reputation
|
||||||
|
accrues — buying a certificate is deferred, not rejected. `Distribution.md` §4.3 was corrected
|
||||||
|
2026-09-27 (it previously recommended EV).
|
||||||
|
|
||||||
|
### Distribution and licensing are independent — and the channel decision does not decide licensing
|
||||||
|
|
||||||
|
A **Store-distributed** app *may* still verify licences with **Polar** (Store policy 10.8.1
|
||||||
|
explicitly permits a secure third-party purchase API for non-game PC products), so "which
|
||||||
|
channel?" never implied "which billing?" — route B was a real option. The 2026-10-22 reversal
|
||||||
|
proves the point in the other direction: dropping the Store did not by itself restart Polar,
|
||||||
|
because the **2026-10-08 free-forever ruling** (TASK 54) had already removed the paid tier.
|
||||||
|
Polar is therefore *dormant*, ready if a paid tier ever returns, and nothing in v1 depends on it.
|
||||||
|
The lesson worth keeping: the licensing choice rides on a **monetization** decision, not on a
|
||||||
|
distribution decision.
|
||||||
|
|
||||||
|
### ⛔ "Only when the user says so" is enforced by Windows, not by us
|
||||||
|
|
||||||
|
Camera/mic consent is layered: Store policy **10.6** forbids circumventing OS checks; the
|
||||||
|
**Windows desktop-app camera/microphone toggle** (Settings → Privacy & security, since Win10
|
||||||
|
1903) is the gate; hardware lights and tray indicators are the OS's disclosure mechanism. So
|
||||||
|
**route everything through the standard MF/DShow/WASAPI paths and we never write that
|
||||||
|
certification ourselves** — the OS does it and gets neither our credit nor our blame.
|
||||||
|
|
||||||
|
⚠️ **Untested:** whether that toggle reliably gates a **DShow webcam and a capture card**.
|
||||||
|
Microsoft's own support page admits desktop apps "might still be able to access your camera
|
||||||
|
or microphone even when these settings are turned off." This is **not** a certification
|
||||||
|
failure (we declare `webcam` honestly and use supported APIs) but it is a real user-trust
|
||||||
|
issue — so **no privacy-forward marketing copy until it is measured.** Guard note added to
|
||||||
|
`MARCOM.md`.
|
||||||
|
|
||||||
|
### ⛔ Durable invariant: chat is rendered, never stored
|
||||||
|
|
||||||
|
`TASK 49`'s profanity filter is **local, on-device, opt-in, non-persistent**, with a
|
||||||
|
**user-supplied word list — never a hardcoded slur list baked into the binary** (unpleasant
|
||||||
|
artifact, false positives across dialects, extractable). It must **never match the SuperChat
|
||||||
|
amount or any reward field** — those are financial data under policy 10.5.5.
|
||||||
|
|
||||||
|
The non-persistence half is not just hygiene: it is the load-bearing half of the **11.12 UGC
|
||||||
|
certification answer** (mirrored YouTube chat is moderated at industrial scale upstream; ~1.6B
|
||||||
|
comments removed in Q1 2026 alone, child safety the #2 reason at 124.6M). **No future feature
|
||||||
|
— chat history, moderation logs, analytics, crash payloads — may quietly break that
|
||||||
|
assumption.** If one is ever proposed, the 11.12 position must be re-argued first.
|
||||||
|
|
||||||
|
### Minors
|
||||||
|
|
||||||
|
The **operator is 13+ by construction**, not by promise: LlamaCasty requires a YouTube
|
||||||
|
account to stream, and YouTube's ToS sets the account floor at **13** (regional variants reach
|
||||||
|
14; 13–17 need parent/guardian permission; under-13s are on supervised/YouTube Kids accounts).
|
||||||
|
So a COPPA theory premised on collecting PI from under-13s has no purchase against the
|
||||||
|
operator. The residual is **viewers** — still possible on supervised family accounts — and it
|
||||||
|
is weak: live chat is restricted there, YouTube moderates before we see it, and we persist
|
||||||
|
nothing. COPPA is very unlikely to bind (not child-directed), but note the enforcement trend
|
||||||
|
(FTC Sept 2025 *Apitor*: operators are responsible for what third-party components collect) —
|
||||||
|
so the answer is a documented inquiry, and ours is "no third-party analytics or ad SDKs, no
|
||||||
|
persisted chat or reward payloads."
|
||||||
|
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,277 @@
|
|||||||
|
# YouTube Live API — design constraints (do not violate)
|
||||||
|
|
||||||
|
Go-live ordering and binding, the deliberate private-only lock, health parsing, end-stream
|
||||||
|
pre-flight, Test mode and chat-insert rules. Read before touching go-live, broadcasts, health,
|
||||||
|
or the chat service. The native alert box built on these events lives in
|
||||||
|
[`overlays.md`](overlays.md).
|
||||||
|
|
||||||
|
|
||||||
|
> ## ✅ SOLVED 2026-10-04 — the broadcasts never went live because they were never BOUND.
|
||||||
|
>
|
||||||
|
> **The bug, in one line: `contentDetails.boundStreamId` on `liveBroadcasts.insert` does not bind
|
||||||
|
> the broadcast.** Binding requires an explicit `POST liveBroadcasts/bind?id=…&streamId=…&part=id`.
|
||||||
|
>
|
||||||
|
> **How it was finally proven, after a week of misdiagnosis** — the diagnostic line, once its own
|
||||||
|
> JSON-nesting bug was fixed (`FirstItem`), read:
|
||||||
|
> ```
|
||||||
|
> lifeCycle=created privacy=private autoStart=true bound=NONE boundMatches=NO-BINDING
|
||||||
|
> | streamStatus=active activeChat=none cdn=rtmp/variable@variable
|
||||||
|
> ```
|
||||||
|
> Every field is real, and together they are conclusive:
|
||||||
|
> - `bound=NONE` **with** `autoStart=true`. Both live in the *same* `contentDetails` object on the
|
||||||
|
> insert, so the request was well-formed and accepted — the API took one field and silently ignored
|
||||||
|
> the other. That asymmetry is the proof; a malformed request would have failed outright.
|
||||||
|
> - `lifeCycle=created`, **not** `ready`. Google: `created` = *"incomplete settings, so it is not
|
||||||
|
> ready to transition to a live or testing status"*. An unbound broadcast is precisely incomplete.
|
||||||
|
> - `streamStatus=active` — the ingest half was never broken. YouTube had an active stream and a
|
||||||
|
> broadcast that was not attached to it.
|
||||||
|
>
|
||||||
|
> **The causal chain, complete:** no binding → `lifeCycleStatus` stuck at `created` →
|
||||||
|
> `enableAutoStart` has no bound stream to fire from → never live → close-out 403s
|
||||||
|
> `invalidTransition` because `created → complete` is not a legal edge (only `ready`/`live` are).
|
||||||
|
>
|
||||||
|
> **Why it survived a week, and the lesson worth keeping:** every observable pointed away from the
|
||||||
|
> binding. ffmpeg pushed ~99 MB cleanly, the reusable stream went `active`, close-out returned a
|
||||||
|
> *transition* error (which reads like a lifecycle-timing problem), and the insert returned a valid
|
||||||
|
> broadcast ID (which reads like success). **A reusable stream accepts bytes for a broadcast that is
|
||||||
|
> not watching it**, so a perfectly healthy RTMP session is exactly what an unbound broadcast looks
|
||||||
|
> like. Google says it outright in the migration guide: *"a liveBroadcast must be bound to exactly one
|
||||||
|
> stream before the live broadcast can actually start. The broadcast is not bound to any streams at
|
||||||
|
> the time that it's created."* That sentence was in the docs I read during the original design and
|
||||||
|
> was not applied. **Read the failure modes in the docs, not just the happy path.**
|
||||||
|
>
|
||||||
|
> **Shipped:** `YouTubeStreamService.BindBroadcastAsync`, called from `PrepareAndStartLiveAsync`
|
||||||
|
> immediately after `CreateBroadcast` and **before** the pump starts. Failure is fatal to the session
|
||||||
|
> (an unbound broadcast can never go live, so a live-looking UI over it is a lie). `boundStreamId` was
|
||||||
|
> **removed** from the insert body and the `streamId` parameter **removed from `CreateBroadcast`** — a
|
||||||
|
> parameter that looks meaningful but cannot affect the outcome is what made the misdiagnosis possible.
|
||||||
|
> The old test `CreateBroadcast_With_StreamId_Binds_Reusable_Stream_At_Insert`, which asserted the
|
||||||
|
> disproven behaviour and therefore *laundered a guess into a guarantee*, is replaced by
|
||||||
|
> `CreateBroadcast_Does_Not_Claim_To_Bind_And_Omits_BoundStreamId` plus
|
||||||
|
> `BindBroadcastAsync_Posts_To_Bind_Endpoint_With_Both_Ids_And_No_Body`.
|
||||||
|
>
|
||||||
|
> **Bind failures are not all "sign in again."** Google documents six reasons
|
||||||
|
> (`insufficientLivePermissions`, `liveStreamingNotEnabled`, `liveBroadcastBindingNotAllowed`,
|
||||||
|
> `liveStreamNotFound`, `liveBroadcastNotFound`, `internalError`, plus rate limiting) and only the
|
||||||
|
> first is an auth problem. `BindFailureMessage` maps each to its own text; `liveBroadcastBindingNotAllowed`
|
||||||
|
> matters most, because it means *our* ordering is wrong and a generic "check the sign-in" would hide
|
||||||
|
> a bug in our own code behind a plausible excuse.
|
||||||
|
|
||||||
|
These are the hard facts behind every decision. Full list in `TASKS.md`.
|
||||||
|
|
||||||
|
- **One-click go-live** — never call `transition(live)`. Insert the broadcast with
|
||||||
|
`enableAutoStart=true`, `enableAutoStop=true`, `enableMonitorStream=false`,
|
||||||
|
`selfDeclaredMadeForKids=false`, `latencyPreference=low`. The encoder starting brings YouTube live.
|
||||||
|
`enableMonitorStream=false` is what lets us skip the testing stage.
|
||||||
|
- **⛔ CORRECTION (2026-10-04): the push is provably healthy — stop investigating it.** The long
|
||||||
|
test run settles it: `liveBroadcasts.insert` at 14:17:04.577, ffmpeg `Output #0, flv` to
|
||||||
|
`rtmp://a.rtmp.youtube.com/live2/5f6z-…` at 14:17:05.686, and at 14:18:56.473 ffmpeg's own
|
||||||
|
muxing summary reads **`video:101229KiB audio:1419KiB`**, `muxing overhead: 0.202949%` — ~99 MB
|
||||||
|
of real video plus audio over 112s, which is exactly what 8000+128 kb/s should produce. **No
|
||||||
|
socket error, no 4xx from ingest, no reconnect.** The broadcast *still* never left `ready`, and
|
||||||
|
close-out earned 403 `invalidTransition` again. An earlier 8s run behaved identically, so
|
||||||
|
"YouTube needed longer" is disproven — 112s is longer. The break is between *ingest accepted*
|
||||||
|
and *broadcast told to start*, nowhere in the RTMP path.
|
||||||
|
- **The binding is the prime suspect, and the app was blind to it.** `contentDetails.boundStreamId`
|
||||||
|
("the live stream bound to the broadcast") and `enableAutoStart` ("start automatically when you
|
||||||
|
start streaming video **on the bound live stream**") are both valid on insert, with no documented
|
||||||
|
restriction against a reusable stream. But YouTube's migration guide carries the danger:
|
||||||
|
**"a liveBroadcast must be bound to exactly one stream before the live broadcast can actually
|
||||||
|
start. The broadcast is not bound to any streams at the time that it's created."** And this
|
||||||
|
failure mode is *invisible from the RTMP side*, because **a reusable stream accepts bytes for an
|
||||||
|
unbound broadcast** — ingest succeeding proves nothing. ⇒ `LogBroadcastDiagnosticsAsync` rides
|
||||||
|
the **existing** stream-health poll (no second timer) and writes one greppable line:
|
||||||
|
`lifeCycleStatus`, `privacyStatus`, `recordingStatus`, `boundStreamId` **compared against the
|
||||||
|
stream id we are actually pushing** (`BoundMatches` → `yes`/`MISMATCH`/`NO-BINDING`/`unknown`),
|
||||||
|
`boundStreamLastUpdateTimeMs`, `enableAutoStart/Stop`, `liveChatId` presence, the stream's own
|
||||||
|
`status.streamStatus` + `activeLiveChatId`, and the CDN settings we declared. It is
|
||||||
|
**self-limiting** — `_broadcastSeenLive` latches on `live`/`liveStarting`, so the line shouts only
|
||||||
|
while the broadcast is stuck and goes quiet once healthy. **The next run reads this line; it is
|
||||||
|
the whole experiment.** Guarded by `BroadcastBindingTests.BoundMatches_ComparesTheBroadcastAgainstTheStreamWePush`,
|
||||||
|
which pins `unknown` for a missing expectation so an absent stream id can never be misreported
|
||||||
|
as a match.
|
||||||
|
- **⚠️ The first version of this diagnostic LIED, and the first real run caught it (2026-10-04).**
|
||||||
|
`liveBroadcasts.list` returns a **list wrapper**, so the broadcast lives at `items[0]`. The
|
||||||
|
original code descended into `items` for the *stream* but read the *broadcast's* response root,
|
||||||
|
so every broadcast field came back `?` — and `BoundMatches` then dutifully reported a confident
|
||||||
|
**`boundMatches=NO-BINDING`** from a parse that had never happened. Three lines of fabricated
|
||||||
|
alarm. Two fixes, both load-bearing: **`FirstItem()`** descends into `items[0]` for both halves
|
||||||
|
(and returns `default` when there is genuinely no item), and the line now prints
|
||||||
|
**`boundMatches=unread`** when the broadcast could not be read, so an absent parse can never be
|
||||||
|
reported as a verdict. Guarded by
|
||||||
|
`BroadcastBindingTests.FirstItem_DescendsIntoTheListWrapper_AndReportsAbsenceHonestly`.
|
||||||
|
**Generalisation: a diagnostic must degrade to "I don't know", never to a confident wrong
|
||||||
|
answer** — otherwise one level of JSON nesting manufactures a bug that isn't there.
|
||||||
|
- **What the one run that *did* work proved:** the stream half was correct, and it shows
|
||||||
|
`streamStatus=ready` → **`streamStatus=active`** about 30s into the push. So the ingest does
|
||||||
|
register as active server-side, which is a genuine step forward — combined with the 99MB muxed
|
||||||
|
in the earlier run, the stream half of the system is now verified healthy. The broadcast half is
|
||||||
|
still unobserved pending a re-run.
|
||||||
|
- **Visibility picker (TASK 9 item 6) — DELIBERATE TEST-PHASE LOCK, not drift (2026-09-01).**
|
||||||
|
The "always Private" enforcement in `YouTubeStreamService.CreateBroadcast` stays while the creator
|
||||||
|
runs multi-month real-world testing: non-private test streams would clutter the channel with VODs
|
||||||
|
highlighting where the product breaks. `recordFromStart`/DVR stay ON — Private VODs are invisible
|
||||||
|
to subscribers and serve as post-mortem review tapes; bulk-delete pre-GA. The unlock is a
|
||||||
|
deliberate final-pass item in **TASK 36 (gold pass)**, wired with the dialog selection — never
|
||||||
|
opportunistic. The PRIVATE badge keeps showing when the stream is actually private.
|
||||||
|
- **⛔⛔ STOP. The always-Private lock is a DECISION, not a bug, not drift, not an open question.
|
||||||
|
(Creator ruling, restated 2026-10-04 after being asked about it AGAIN.)**
|
||||||
|
`privacyStatus = "private"` hardcoded in `YouTubeStreamService.CreateBroadcast` is
|
||||||
|
**exactly right as written. Do not change it, do not "unlock" it, and — this is the part I keep
|
||||||
|
getting wrong — do not raise it as a question, an observation, a suggestion, or a
|
||||||
|
"heads-up".** The creator has now answered this more than once.
|
||||||
|
- **What it becomes:** the hardcoded lock is replaced by a real, user-selectable
|
||||||
|
visibility option in the Go-Live dialog — **at v1, not before.** Not at 1.0-candidate, not
|
||||||
|
at GA prep, not opportunistically during any other unit.
|
||||||
|
- **Why it exists:** pre-v1 test streams would otherwise publish VODs of a product still
|
||||||
|
breaking, in public, to subscribers. Private keeps those tapes usable for post-mortem review
|
||||||
|
while staying invisible to the channel's audience.
|
||||||
|
- **Do not let these look like symptoms of the one they resemble.** All are working as designed:
|
||||||
|
`privacy=private` in the broadcast diag line; the PRIVATE badge; `recordFromStart`/DVR ON;
|
||||||
|
and the absence of any delete call in the codebase (there is no delete feature, by design at
|
||||||
|
this stage — "can we delete the test VODs" is a *retired* question, answered 2026-10-04:
|
||||||
|
`videos.delete` accepts `youtube.force-ssl` which we already hold, private is a visibility
|
||||||
|
setting not a deletion lock, and anyway a broadcast that never reaches `live` never becomes a
|
||||||
|
VOD at all).
|
||||||
|
- **`UpdateBroadcast` is NOT the unlock — and it is also currently DEAD CODE. (Fact corrected
|
||||||
|
2026-10-04: an earlier version of this note said `CreateBroadcast:112` /
|
||||||
|
`UpdateBroadcastMetadataAsync`, both wrong.)** The method that can change a live broadcast's
|
||||||
|
privacy is `YouTubeStreamService.UpdateBroadcast(broadcastId, meta)`, which sends
|
||||||
|
`privacyStatus = meta.Visibility ?? "private"`. **It has no production caller** — the only
|
||||||
|
caller in the repo is `BroadcastPullOutTests.cs:120`. So `CreateBroadcast` hardcoding private
|
||||||
|
is not merely backed up by convention, it is the *only* thing enforcing it.
|
||||||
|
- **⇒ Is a Go Live video private? YES — verified 2026-10-04, and this answers a standing
|
||||||
|
creator doubt.** Three independent hardcodes (`CreateBroadcast` → `"private"`;
|
||||||
|
`GoLiveViewModel.Visibility => "Private"`; `BeginTestStream` → `StreamVisibility = "Private"`)
|
||||||
|
plus one unreachable method. There is no path by which a broadcast this app creates can become
|
||||||
|
non-private today. The creator's actual concern — "do not populate my channel with videos
|
||||||
|
showing the app at its worst" — is fully met.
|
||||||
|
- **⛔ THE LANDMINE, and the reason the above matters:** `LiveBroadcastFormViewModel` still
|
||||||
|
exposes `VisibilityOptions = {private, unlisted, public}` and `UpdateBroadcast` would happily
|
||||||
|
honour it. **The v1 visibility option is the first thing that will ever wire `UpdateBroadcast`
|
||||||
|
up — so v1 is exactly when this guarantee ends, by the creator's own choice.** When that
|
||||||
|
happens, private stops being guaranteed and becomes a default the user can change. That is
|
||||||
|
intended at v1; it is a disaster before v1. Do not wire `UpdateBroadcast` into any
|
||||||
|
production path before v1, and do not "fix" the dead-code smell by calling it.
|
||||||
|
- **⛔ The TEST button is HIDDEN at v1 — it exists only because of the lock above (creator
|
||||||
|
ruling 2026-10-04).** This was **absent from the map entirely** until that date, which is how the
|
||||||
|
dry-run framing below came to be the only recorded one. Both are true, and the second is the
|
||||||
|
load-bearing one:
|
||||||
|
- **Its real job is being the guaranteed-private path.** `BeginTestStream` hard-sets
|
||||||
|
`StreamVisibility = "Private"` (`MainViewModel.Streaming.Operations.cs:105`), so Test can never
|
||||||
|
publish. That is *why* it exists for the whole pre-v1 phase — a dry run you cannot leak.
|
||||||
|
- **At v1 it is redundant and gets hidden**, because once visibility is a real dialog option the
|
||||||
|
user picks Private themselves and a separate "safe" button no longer earns its place. Hiding it
|
||||||
|
is part of the v1 visibility work, not a separate cleanup.
|
||||||
|
- **The pre-existing "dry run" framing is now known to be incomplete** (`ShowTestButton`'s own
|
||||||
|
comment calls it "a dry-run of the livestream"). Do not read that comment as the reason the
|
||||||
|
button must persist, and do not re-derive the button's purpose from it. If a dry run is still
|
||||||
|
wanted at v1 it must be re-justified on its own merits — that question is **open, and is for
|
||||||
|
v1, not now.**
|
||||||
|
- **It is a computed predicate, not a setting** — `ShowTestButton => ShowStreamActions &&
|
||||||
|
IsConnected` (`MainViewModel.Streaming.cs:182`), feeding both `CanStartTest` and the XAML
|
||||||
|
visibility. So the v1 hide is a one-line predicate change, not a settings migration.
|
||||||
|
- **Not a v1 blocker:** the Test route is the *same* pipeline as Go Live —
|
||||||
|
`BeginTestStream` → `StartStreamingSession(alsoRecord: false)` → `PrepareAndStartLiveAsync` —
|
||||||
|
so Test and Go Live create identical broadcasts (`boundStreamId`, `enableAutoStart`). Test
|
||||||
|
differs only in never recording (`alsoRecord: false`) and forcing Private. **This is why Test
|
||||||
|
is the correct way to run any diagnostic stream**, and why a Test result is evidence about Go
|
||||||
|
Live.
|
||||||
|
- **Full broadcast form (TASK 9 item 7) — RESCOPED 2026-09-01** — the core editable fields ship (since 2026-08-24) as the always-visible **Text drawer**: title, description, tags, visibility, made-for-kids, live-editable; scheduling ships as **TASK 34** (drawer ☑ Scheduled + adoption at Start). The old **Advanced tab is permanently out of product** (the 10% margin — see TASKS.md → "Out of product"): latency locked `low`, DVR/record-from-start locked on, embed/projection/CC/region fixed at sane defaults, invisible — every exposed field is a support ticket. `categoryId` is removed from `CreateBroadcast` (not a `liveBroadcast` field, silently ignored). Monetization enablement (if ever needed) rides the reward-events chain via `liveBroadcasts.update`, not a form field. Go-live order (TASK 9, shipped 2026-08-16):
|
||||||
|
`BeginGoLive` → `PrepareAndStartLiveAsync` — ensure the reusable stream (`GetOrCreateReusableStreamAsync`,
|
||||||
|
cache it), create the broadcast bound to it (`CreateBroadcast(..., stream.Id)` → `boundStreamId`),
|
||||||
|
THEN start the pump (the URL must exist before `FramePump.StartAsync`, which reads it once). Failure →
|
||||||
|
`StreamStatus.Error`, never a crash; `StopStream` clears `_currentBroadcastId`.
|
||||||
|
- **Variable reusable stream** (shipped 2026-08-16) — `GetOrCreateReusableStreamAsync` lists
|
||||||
|
`liveStreams?mine=true` and reuses the existing `cdn.isReusable` stream, inserting once per channel
|
||||||
|
(`cdn.resolution=variable`, `cdn.frameRate=variable`, `isReusable=true`) only on first use; the
|
||||||
|
ingestion URL is cached via `LayoutStore` Settings (`SaveReusableStream`/`LoadReusableStream`) and
|
||||||
|
bound to each broadcast at insert (`boundStreamId`). Any quality tier works without recreating the
|
||||||
|
stream, and auto step-down rides the same property — we drop bitrate/resolution on the fly, zero
|
||||||
|
API calls — **but the deciding governor is not built**: the old present tense there was a map-lie,
|
||||||
|
corrected 2026-09-01; step-down is **TASK 33** (v1 scope).
|
||||||
|
- **Quality is greyed out while live** — resolution/frameRate/ingestionType are immutable after
|
||||||
|
stream creation; editing title/description/privacy is fine at any time.
|
||||||
|
- **Report-by-exception health (SHIPPED 2026-08-16, TASK 9 item 3)** — `YouTubeStreamService.GetStreamHealthAsync(streamId)`
|
||||||
|
polls `liveStreams.list?part=status`; render nothing on `good`/`ok`/`noData`, surface a banner only
|
||||||
|
on `configurationIssues[]` with `warning`/`error` severity. The decision is the pure
|
||||||
|
`Services/StreamHealthReporter.BannerFor` (null text = no banner; error beats warning). The VM polls
|
||||||
|
every **30s while live** (`DispatcherTimer` `_healthPollTimer`, first poll right after go-live) and
|
||||||
|
clears on End via `ResetHealth`; poll failures log only. **Parsing (fix 2026-09-22):** the real API
|
||||||
|
nests `status.healthStatus = {status, lastUpdateTimeSeconds, configurationIssues[]}` — reading it as
|
||||||
|
a string crashed every poll (`requires an element of type 'String'`, seen 2026-09-22 on both test
|
||||||
|
sessions); the parse now reads the nested `.status`/`configurationIssues` and tolerates the old
|
||||||
|
flat-string shape. UI = a full-width banner strip under the
|
||||||
|
top bar, `HealthIssueBanner` text + `HealthIssueBackground` (amber `#b8860b` warning / dark red
|
||||||
|
`#8f1f1f` error), hidden by `NotNullToVis`. The design's bottom-strip YouTube logo + green/red dot
|
||||||
|
(clickable → dialog) is still queued.
|
||||||
|
- **One dialog, three states** — not connected / connected-offline (all editable) / live
|
||||||
|
(title + description + visibility editable; quality + account greyed out). Both entry points
|
||||||
|
(Start Stream button + bottom strip) open it; prefilled from saved session profile.
|
||||||
|
- **End stream (SHIPPED 2026-09-01; pre-flight hardened 2026-09-22)** — stop encoder → `YouTubeStreamService.EndBroadcastAsync` POSTs `liveBroadcasts/transition?broadcastStatus=complete&id=…&part=status` (AFTER RTMP EOF, so no frames post-date the end — VOD finalizes immediately instead of ~1min of frozen "stream offline"). **2026-09-22: every end logged 403 `invalidTransition`** — a blind complete races enableAutoStop/YouTube's auto-complete (the old doc's "already fired" guess was wrong; it's a broadcast state race). The call now pre-flights `liveBroadcasts.list→status.lifeCycleStatus` and only transitions from `live`/`testing`, skipping silently otherwise (`enableAutoStop` finishes every skip — never throws, never toasts a finished session). Inconclusive pre-check still posts (old behavior, backstopped). Record-only stops make ZERO API calls (guard: `wasLive && _currentBroadcastId != null`).
|
||||||
|
- **Encoder compliance** — keyframes ≤ 4s (gopSizeLong), closed GOP, H.264, AAC/MP3 @ 44.1/48kHz,
|
||||||
|
mono/stereo only. YouTube flags violations via health status.
|
||||||
|
- **Broadcast ID == Video ID** — one ID tracks status, health, and the auto-created VOD
|
||||||
|
(`recordFromStart` + `enableDvr` default true).
|
||||||
|
- **Test Stream mode (TASK 41, SHIPPED 2026-09-22)** — every broadcast is private-only anyway
|
||||||
|
(see the visibility lock above), so "Test" is a **session variant over the real go-live
|
||||||
|
pipeline**, not a new mode: `BeginTestStream` → `StartStreamingSession(alsoRecord:false)`
|
||||||
|
(the dialog path was extracted into this shared boot — no Go Live dialog for a Test, no
|
||||||
|
`BroadcastForm.CaptureGoLive` "last live" stamp, no recording). `IsTestStream` flips the face:
|
||||||
|
gold top bar + glow (`#9c6f1c`), a **TEST** badge, and the End button reads **"End Test"**;
|
||||||
|
`StopStream` clears it in every path (including pump-failure rollback). Once the liveChatId
|
||||||
|
resolves, `TestSession.BeginTest(broadcastId, liveChatId)` opens the **TEST drawer** (third
|
||||||
|
right-rail pull-out, three-way one-open-at-a-time exclusivity wired in `MainViewModel.Ypp.cs`;
|
||||||
|
any left-click outside the rail closes whichever drawer is open — TEST included (fixed
|
||||||
|
2026-09-25, TASK 46; the code-behind outside-click close in `MainWindow` had skipped
|
||||||
|
TestSession, so only Stream Settings + YPP dismissed on an outside click).
|
||||||
|
**liveChatId resolution (fixed 2026-09-25, TASK 44; ⚠️ CORRECTED 2026-10-04):** the id is
|
||||||
|
`snippet.liveChatId` — `contentDetails` has NO liveChatId property — and
|
||||||
|
`GetBroadcastLiveChatIdAsync(broadcastId, maxAttempts=10, delayMs=2000)` reads part=snippet and
|
||||||
|
polls with a bounded retry, and `PrepareAndStartLiveAsync` starts the frame pump FIRST before
|
||||||
|
resolving it. **The old claim that "YouTube only populates it once the broadcast is LIVE" is
|
||||||
|
WRONG, and it was inferred from a sample rather than from the API.** The 2026-10-04 diagnostic
|
||||||
|
caught `liveChatId=present` while `lifeCycleStatus=created` — not live, not even `ready`. The
|
||||||
|
official `GetLiveChatId.java` sample tests `broadcastStatus == active` before returning the id, and
|
||||||
|
that read as a statement about *when YouTube populates the field*; it is only a guard in the
|
||||||
|
sample. **Generalisation: a sample's defensive check is not a spec.** Also note the old note said
|
||||||
|
the missing id meant "the ready state" — the broadcasts were never `ready` at all, they were
|
||||||
|
`created` and unbound (see the SOLVED box above), so the terminology was wrong too.
|
||||||
|
The bounded retry is harmless and stays, but the id is available far earlier than assumed — worth
|
||||||
|
revisiting only if chat startup latency is ever reported as slow.
|
||||||
|
Drawer tooling: **Mock Chat Input** = a REAL `liveChat/messages.insert` (`YouTubeStreamService.InsertChatMessageAsync`)
|
||||||
|
that round-trips through the real ~2s poll and renders through the live overlay path;
|
||||||
|
**simulated Subscriber / New Member / Super Chat** = `YouTubeChatService.InjectSimulatedMessage`,
|
||||||
|
which raises the poller's `MessageReceived` seam, marked `ChatMessage.IsSimulated`. **API fact
|
||||||
|
(researched + hard constraint): `liveChat/messages.insert` only creates `textMessageEvent`s —
|
||||||
|
SuperChats / memberships / sponsorships cannot be inserted via any API**; simulated non-text
|
||||||
|
events are local-only by design and never reach YouTube. **Insert body shape (fixed 2026-09-25,
|
||||||
|
TASK 45):** the body MUST include `snippet.type` = `"textMessageEvent"` alongside `liveChatId`
|
||||||
|
and `textMessageDetails.messageText` — omitting type returns `400 MISSING_REQUIRED_FIELD`
|
||||||
|
(found live on the next Test Stream; the TASK 41 test had asserted body presence but not
|
||||||
|
type, so it stayed false-green). Scopes `youtube` + `youtube.force-ssl`
|
||||||
|
already cover insert. **Real stinger/TTS alert widgets are DONE (TASK 43, shipped
|
||||||
|
2026-09-24) as the native alert box** — see the next section; Text source (TASK 3 item 16)
|
||||||
|
and the RewardEvent persistence (item 20) remain open.
|
||||||
|
|
||||||
|
## Auth & session (YouTube OAuth)
|
||||||
|
|
||||||
|
- `Helpers/OAuthCredentials.cs` holds the real ClientId/ClientSecret. Auth is complete and the
|
||||||
|
session **persists via Windows DPAPI** (`Helpers/TokenStore.cs` → `%APPDATA%\ytLlive\ytLlive.auth`,
|
||||||
|
CurrentUser scope), reloaded best-effort at startup with a proactive refresh of a near-expiry
|
||||||
|
access token.
|
||||||
|
- Sign-in / Change Account lives **inside the Start Stream dialog** — a two-state flow, no separate
|
||||||
|
Connect button. Sign-out is **explicit only**: `StopStream()` does NOT clear the session
|
||||||
|
("stopping a recording leaves the creator signed in", 2026-08-29).
|
||||||
|
- `YouTubeAuthService` takes an optional `HttpClient` + `sessionChanged` + `openBrowser` callback
|
||||||
|
(test seams + save hook; services are constructed in `MainViewModel`).
|
||||||
|
- **Change Account must never sign out first** (fixed 2026-09-27): `SignOutYouTubeAsync` →
|
||||||
|
`TokenStore.Clear()` **deletes** `ytLlive.auth`, so cancelling in the Google chooser left the
|
||||||
|
creator logged out of a working account. It is now just `await SignInAsync()` — success overwrites
|
||||||
|
the token through the `sessionChanged` hook; cancel/failure leaves the session untouched.
|
||||||
|
- **The OAuth flow releases its loopback port on retry:** an abandoned browser attempt holds
|
||||||
|
`localhost:8765` for its 5-minute timeout, so `AuthenticateAsync` cancels and awaits the abandoned
|
||||||
|
attempt before binding, serialised by a `SemaphoreSlim` (`_authGate`) — without the gate, two
|
||||||
|
overlapping calls both see a free port and race to bind it.
|
||||||
|
- Test seam: `YouTubeAuthService.SetSession()` is public — inject a channel with a future
|
||||||
|
`TokenExpiry` so `EnsureToken()` passes offline, paired with `HttpClient(new StubHandler())`.
|
||||||
+3
-3
@@ -1,11 +1,11 @@
|
|||||||
# docs — index
|
# docs — index
|
||||||
|
|
||||||
Reference material that is too large for [`ai.md`](../ai.md)'s front half. Nothing here is
|
Reference material that would bloat the router. Nothing here is mandatory reading on session
|
||||||
mandatory reading on session start; open the file whose subsystem your task touches.
|
start; open the file whose subsystem your task touches.
|
||||||
|
|
||||||
| Path | Purpose |
|
| Path | Purpose |
|
||||||
|------|---------|
|
|------|---------|
|
||||||
| [`ai/`](ai/index.md) | Split-out subsystems of the AI guide — each started life verbatim inside `ai.md`, which keeps a short invariant stub pointing here |
|
| [`ai/`](ai/index.md) | Subsystem truth for the AI guide — one file per subsystem, routed from [`ai.md`](../ai.md) |
|
||||||
| `ytLlive-preview.jpg` | Preview screenshot used by [`README.md`](../README.md) |
|
| `ytLlive-preview.jpg` | Preview screenshot used by [`README.md`](../README.md) |
|
||||||
|
|
||||||
See [`schema.md`](../schema.md) for the memory-map conventions.
|
See [`schema.md`](../schema.md) for the memory-map conventions.
|
||||||
|
|||||||
@@ -16,15 +16,15 @@ that every other memory file follows. Read `ai.md` first; this file explains
|
|||||||
|
|
||||||
| File | Role | Entry point? |
|
| File | Role | Entry point? |
|
||||||
|------|------|--------------|
|
|------|------|--------------|
|
||||||
| `AGENTS.md` | Auto-read on-ramp for AI sessions — points to the map and the working rules | **always read first** |
|
| `AGENTS.md` | Auto-read on-ramp: working rules, **the invariants that break the product**, response style | **always read first** |
|
||||||
|
| `ai.md` | **Router** — what the product is, the architecture table, a "where the truth lives" table. No narrative, no status (≤100 lines, gated) | yes — the map |
|
||||||
| `README.md` | Human-facing intro: what the app is, how to run it, roadmap | no |
|
| `README.md` | Human-facing intro: what the app is, how to run it, roadmap | no |
|
||||||
| `ai.md` | **AI guide + session handoff** — architecture, patterns, decisions, the cognitive map home | **yes — start here** |
|
| `TASKS.md` | The active queue. Full task detail and research live in [`TASKS/`](TASKS/); done work in `TASKS/archive.md` | when the task is "what's next" |
|
||||||
| `TASKS.md` | **Catalog/index** for the task queue. The actual task files live in [`TASKS/`](TASKS/) (one file per task); `TASKS.md` carries the status table, open items, and research facts pointer. Read this for queue state; open task files for full detail. | yes — for status |
|
| `HANDOFF.md` | Current operational state: branch, in flight, next action, landmines (≤40 lines, overwritten never appended) | yes — trust it as current state |
|
||||||
| `HANDOFF.md` | Current operational state: what's in flight, landmines, next step, secret/DB/port locations | yes — trust it as current state |
|
| `MyMistakes.md` | Failure log **+ RECIPES REGISTRY**: one-off solutions / how-tos get recorded here the same session, then grepp'd before ever re-deriving them | grep first on any "did this before?" wall |
|
||||||
| `MyMistakes.md` | Per-task failure log **+ RECIPES REGISTRY** (derived-solution rule): one-off solutions / how-tos get recorded here the same session, then grepp'd before ever re-deriving them (see `AGENTS.md` 🔬) | grep first on any "did this before?" wall |
|
|
||||||
| `schema.md` | This file: the conventions below | when in doubt |
|
| `schema.md` | This file: the conventions below | when in doubt |
|
||||||
| `<dir>/index.md` | Per-directory map (progressive disclosure): what lives there + links | when diving into code |
|
| `<dir>/index.md` | Per-directory map (progressive disclosure): what lives there + links | when diving into code |
|
||||||
| `docs/ai/*.md` | **Split-out subsystems** of `ai.md` — verbatim moves (from 2026-10-26); `ai.md` keeps a short invariant stub + link, and [`docs/ai/index.md`](docs/ai/index.md) routes | when the task touches a moved subsystem |
|
| `docs/ai/*.md` | **Subsystem truth** — one file per subsystem (capture, frame pipeline, output, overlays, youtube-api, ui-surface, product, environment). `ai.md` routes; [`docs/ai/index.md`](docs/ai/index.md) lists them with a "read when" | when the task touches that subsystem |
|
||||||
| `Views/` | Reserved for Views; currently empty | — |
|
| `Views/` | Reserved for Views; currently empty | — |
|
||||||
|
|
||||||
## Conventions
|
## Conventions
|
||||||
@@ -46,16 +46,15 @@ that every other memory file follows. Read `ai.md` first; this file explains
|
|||||||
|
|
||||||
## Reading order
|
## Reading order
|
||||||
|
|
||||||
1. `AGENTS.md` — auto-read on-ramp; it points you here.
|
1. `AGENTS.md` — auto-read on-ramp: rules + invariants; it points you here.
|
||||||
2. `ai.md` — what this app is, how it's built, current state, open decisions.
|
2. `HANDOFF.md` — current state. Trust it; don't re-derive it.
|
||||||
3. `TASKS.md` — what's done, what's next, and the YouTube API constraints.
|
3. `ai.md` — the router: architecture and where truth lives.
|
||||||
4. `<dir>/index.md` — to understand a directory before reading its files.
|
4. The one `docs/ai/*.md` file that matches the task.
|
||||||
5. The source files themselves — always the authority over any memory file.
|
5. `<dir>/index.md` — before reading that directory's files.
|
||||||
|
6. The source files themselves — always the authority over any memory file.
|
||||||
|
|
||||||
## Integration rule
|
## Integration rule
|
||||||
|
|
||||||
Every feature change ships with its memory update **in the same commit**:
|
Every feature change ships with what it **falsifies** corrected in the same commit — a path, an
|
||||||
`ai.md` for architecture / patterns, `TASKS.md` for status, index files when
|
invariant, a status line. Broader restatement may be batched at a milestone. The point is that
|
||||||
the layout changes. No code commit without its docs — a follow-up "docs
|
the map never stays wrong; it is not a tax on every commit.
|
||||||
backfill" commit is a broken rule, not a style. That is what keeps the map
|
|
||||||
accurate enough to trust next session.
|
|
||||||
|
|||||||
+24
-4
@@ -8,7 +8,8 @@
|
|||||||
# against fresh compiler output.
|
# against fresh compiler output.
|
||||||
#
|
#
|
||||||
# Requires WINDOWS dotnet (never Linux dotnet — it re-downloads the windowsdesktop packs
|
# Requires WINDOWS dotnet (never Linux dotnet — it re-downloads the windowsdesktop packs
|
||||||
# over the slow 9p bridge; see ai.md -> Run). Reads the Windows path from the WSL mount.
|
# over the slow 9p bridge; see docs/ai/environment.md -> Run). Reads the Windows path from the
|
||||||
|
# WSL mount.
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
@@ -18,7 +19,26 @@ DOTNET="/mnt/c/Program Files/dotnet/dotnet.exe"
|
|||||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||||
ROOTWIN="$(wslpath -w "$ROOT")"
|
ROOTWIN="$(wslpath -w "$ROOT")"
|
||||||
|
|
||||||
echo "══ 1/3 CLEAN BUILD (expect 0 warnings) ══"
|
echo "══ 1/4 DOC BUDGETS ══"
|
||||||
|
# The map stays cheap to read. A commit that PADS a capped file instead of replacing or
|
||||||
|
# moving detail fails here (see AGENTS.md -> Reading budget).
|
||||||
|
check_budget() {
|
||||||
|
local rel="$1" cap="$2" lines
|
||||||
|
[ -f "$ROOT/$rel" ] || { echo "✗ $rel is missing"; exit 1; }
|
||||||
|
lines=$(wc -l < "$ROOT/$rel")
|
||||||
|
if [ "$lines" -gt "$cap" ]; then
|
||||||
|
echo "✗ $rel is $lines lines (cap $cap)."
|
||||||
|
echo " Move the detail to docs/ai/<subsystem>.md, MyMistakes.md or git log — do not pad."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
printf " ✓ %-12s %3s/%s lines\n" "$rel" "$lines" "$cap"
|
||||||
|
}
|
||||||
|
check_budget "AGENTS.md" 210
|
||||||
|
check_budget "ai.md" 100
|
||||||
|
check_budget "HANDOFF.md" 40
|
||||||
|
check_budget "TASKS.md" 120
|
||||||
|
|
||||||
|
echo "══ 2/4 CLEAN BUILD (expect 0 warnings) ══"
|
||||||
"$DOTNET" clean "$ROOTWIN\\ytLive.csproj" > /dev/null
|
"$DOTNET" clean "$ROOTWIN\\ytLive.csproj" > /dev/null
|
||||||
OUT="$("$DOTNET" build "$ROOTWIN\\ytLive.csproj" 2>&1)"
|
OUT="$("$DOTNET" build "$ROOTWIN\\ytLive.csproj" 2>&1)"
|
||||||
if echo "$OUT" | grep -qI ": warning"; then
|
if echo "$OUT" | grep -qI ": warning"; then
|
||||||
@@ -29,7 +49,7 @@ fi
|
|||||||
echo "$OUT" | grep -E "Build succeeded" || { echo "$OUT" | tail -5; exit 1; }
|
echo "$OUT" | grep -E "Build succeeded" || { echo "$OUT" | tail -5; exit 1; }
|
||||||
echo "✓ Build clean, 0 warnings."
|
echo "✓ Build clean, 0 warnings."
|
||||||
|
|
||||||
echo "══ 2/3 TEST SUITE ══"
|
echo "══ 3/4 TEST SUITE ══"
|
||||||
TESTDLL="$ROOTWIN\\ytLive.Tests\\bin\\Debug\\net8.0-windows10.0.19041.0\\ytLive.Tests.dll"
|
TESTDLL="$ROOTWIN\\ytLive.Tests\\bin\\Debug\\net8.0-windows10.0.19041.0\\ytLive.Tests.dll"
|
||||||
"$DOTNET" build "$ROOTWIN\\ytLive.Tests\\ytLive.Tests.csproj" > /dev/null
|
"$DOTNET" build "$ROOTWIN\\ytLive.Tests\\ytLive.Tests.csproj" > /dev/null
|
||||||
set +e
|
set +e
|
||||||
@@ -52,7 +72,7 @@ if [ "$TEST_EXIT" -ne 0 ]; then
|
|||||||
echo "⚠ Test exit=$TEST_EXIT but only the 2 known pre-existing failures present (OK)."
|
echo "⚠ Test exit=$TEST_EXIT but only the 2 known pre-existing failures present (OK)."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "══ 3/3 SCOPE CHECK ══"
|
echo "══ 4/4 SCOPE CHECK ══"
|
||||||
"$ROOT/scripts/scope-check.sh" "$@"
|
"$ROOT/scripts/scope-check.sh" "$@"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
@@ -0,0 +1,60 @@
|
|||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace ytLive.Tests;
|
||||||
|
|
||||||
|
/// <summary>The creator (2026-10-30): in App Settings the brand-logo field is only a file NAME,
|
||||||
|
/// which says nothing about the picture, so "myopic users like myself" cannot confirm what is
|
||||||
|
/// set. The field now carries a thumbnail — hover enlarges it, a click collapses it.
|
||||||
|
///
|
||||||
|
/// <para>The ONE test covers both halves: the XAML wiring that routes hover/leave/click, and the
|
||||||
|
/// control's own open/close behaviour (a Popup is a separate window, so only this seam can
|
||||||
|
/// observe it). Runs inside the real App because the control resolves theme resources at load.</para></summary>
|
||||||
|
[Collection("RealApp")]
|
||||||
|
public class BrandLogoPreviewTests
|
||||||
|
{
|
||||||
|
private readonly RealAppHost _app;
|
||||||
|
|
||||||
|
public BrandLogoPreviewTests(RealAppHost app) => _app = app;
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void Hovering_the_thumbnail_opens_the_enlarged_preview_and_a_click_collapses_it()
|
||||||
|
{
|
||||||
|
// 1. Wiring: the thumbnail is image-bound and hidden when no image is set, the enlarged
|
||||||
|
// popup shows the same source at a readable size, and every gesture reaches a handler.
|
||||||
|
var xaml = SourceAssert.Text("Controls", "OverlayHost.xaml");
|
||||||
|
Assert.Contains("x:Name=\"BrandLogoThumbImage\"", xaml);
|
||||||
|
Assert.Contains("{Binding BrandLogoPreviewImage}", xaml);
|
||||||
|
Assert.Contains("NotNullToVis", xaml);
|
||||||
|
Assert.Contains("x:Name=\"BrandLogoPreviewPopup\"", xaml);
|
||||||
|
Assert.Contains("MaxWidth=\"420\"", xaml);
|
||||||
|
foreach (var handler in new[]
|
||||||
|
{
|
||||||
|
"MouseEnter=\"BrandLogoThumb_MouseEnter\"",
|
||||||
|
"MouseLeave=\"BrandLogoThumb_MouseLeave\"",
|
||||||
|
"MouseLeftButtonUp=\"BrandLogoThumb_Click\"",
|
||||||
|
"MouseLeave=\"BrandLogoPreviewPopup_MouseLeave\"",
|
||||||
|
})
|
||||||
|
Assert.Contains(handler, xaml);
|
||||||
|
|
||||||
|
// 2. Behaviour on the real control.
|
||||||
|
_app.Run(() =>
|
||||||
|
{
|
||||||
|
// A Popup refuses to open until its placement target is in a live visual tree, so the
|
||||||
|
// control is hosted in a real window — the same condition the app provides.
|
||||||
|
var host = new ytLive.Controls.OverlayHost();
|
||||||
|
var window = new System.Windows.Window { Content = host, Width = 420, Height = 420 };
|
||||||
|
window.Show();
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Assert.False(host.IsBrandLogoPreviewOpen);
|
||||||
|
|
||||||
|
host.OpenBrandLogoPreview();
|
||||||
|
Assert.True(host.IsBrandLogoPreviewOpen, "hovering the thumbnail must open the enlargement");
|
||||||
|
|
||||||
|
host.CloseBrandLogoPreview();
|
||||||
|
Assert.False(host.IsBrandLogoPreviewOpen, "a click must collapse it again");
|
||||||
|
}
|
||||||
|
finally { window.Close(); }
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace ytLive.Tests;
|
||||||
|
|
||||||
|
/// <summary>The DESIGN.md type standard names Inter and JetBrains Mono, and the creator ruled
|
||||||
|
/// (2026-10-30) that they ship with the app rather than depending on what the machine happens to
|
||||||
|
/// have installed. That makes them third-party assets with obligations, so this guard covers the
|
||||||
|
/// whole chain: the files are present and unmodified, the project ships them as resources, the
|
||||||
|
/// theme resolves them from the pack folder, and the OFL notice + license text travel with them.
|
||||||
|
///
|
||||||
|
/// <para>A missing font would otherwise fail silently — WPF falls back to a system face and the
|
||||||
|
/// design standard quietly stops being true.</para></summary>
|
||||||
|
public class BundledFontsTests
|
||||||
|
{
|
||||||
|
private static readonly string[] Files =
|
||||||
|
{
|
||||||
|
"Inter-Regular.ttf", "Inter-Medium.ttf", "Inter-SemiBold.ttf", "Inter-Bold.ttf",
|
||||||
|
"JetBrainsMono-Medium.ttf", "JetBrainsMono-SemiBold.ttf",
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void The_standard_typefaces_ship_bundled_with_their_OFL_notice()
|
||||||
|
{
|
||||||
|
// 1. The files are there and are real font binaries, not placeholders.
|
||||||
|
foreach (var name in Files)
|
||||||
|
{
|
||||||
|
var path = SourceAssert.RepoPath("Assets", "Fonts", name);
|
||||||
|
Assert.True(new FileInfo(path).Length > 50_000, $"{name} looks like a placeholder");
|
||||||
|
}
|
||||||
|
|
||||||
|
// 2. The project packages each one as a WPF resource (an explicit item, not a guess).
|
||||||
|
var csproj = SourceAssert.Text("ytLive.csproj");
|
||||||
|
foreach (var name in Files)
|
||||||
|
Assert.Contains($@"Assets\Fonts\{name}", csproj);
|
||||||
|
|
||||||
|
// 3. The theme resolves each family from the pack folder — a bare family name would
|
||||||
|
// only work if the user happened to have the font installed.
|
||||||
|
var tokens = SourceAssert.Text("Themes", "Tokens.xaml");
|
||||||
|
Assert.Contains("/Assets/Fonts/#Inter", tokens);
|
||||||
|
Assert.Contains("/Assets/Fonts/#JetBrains Mono", tokens);
|
||||||
|
|
||||||
|
// 4. The OFL obligations: notice in THIRD-PARTY-NOTICES.txt, license text beside the files.
|
||||||
|
var notices = SourceAssert.Text("THIRD-PARTY-NOTICES.txt");
|
||||||
|
Assert.Contains("Inter", notices);
|
||||||
|
Assert.Contains("JetBrains Mono", notices);
|
||||||
|
Assert.Contains("SIL Open Font License 1.1", notices);
|
||||||
|
|
||||||
|
foreach (var ofl in new[] { "OFL-Inter.txt", "OFL-JetBrainsMono.txt" })
|
||||||
|
{
|
||||||
|
var text = SourceAssert.Text("Assets", "Fonts", ofl);
|
||||||
|
Assert.Contains("SIL OPEN FONT LICENSE", text);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 5. No other font family sneaks in through the token sheet.
|
||||||
|
var families = SourceAssert.Text("Themes", "Tokens.xaml")
|
||||||
|
.Split('\n')
|
||||||
|
.Where(l => l.Contains("FontFamily x:Key=", System.StringComparison.Ordinal))
|
||||||
|
.ToList();
|
||||||
|
Assert.Equal(2, families.Count);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,164 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Xml.Linq;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace ytLive.Tests;
|
||||||
|
|
||||||
|
/// <summary>DESIGN.md became the visual standard on 2026-10-30. This is its guard: the document
|
||||||
|
/// is the contract, `Themes/Tokens.xaml` is the implementation, and a token documented in one but
|
||||||
|
/// missing (or different) in the other fails here — so the palette cannot drift into two truths
|
||||||
|
/// the way the 2026-10-26 and 2026-10-29 Stitch exports did.
|
||||||
|
///
|
||||||
|
/// <para>Deliberately parses the markdown rather than duplicating a list: adding a colour to the
|
||||||
|
/// standard requires implementing it, and changing a value in the theme without the document is a
|
||||||
|
/// lie the gate catches.</para></summary>
|
||||||
|
public class DesignTokensTests
|
||||||
|
{
|
||||||
|
private static readonly XNamespace Xaml = "http://schemas.microsoft.com/winfx/2006/xaml";
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void Every_colour_in_the_standard_exists_as_a_token_brush_with_the_documented_value()
|
||||||
|
{
|
||||||
|
var documented = DocumentedColours();
|
||||||
|
Assert.True(documented.Count >= 20,
|
||||||
|
$"parsed only {documented.Count} colour tokens out of DESIGN.md — the table format changed");
|
||||||
|
|
||||||
|
var brushes = Brushes();
|
||||||
|
|
||||||
|
foreach (var (token, hex) in documented)
|
||||||
|
{
|
||||||
|
var key = "Brush." + Pascal(token);
|
||||||
|
Assert.True(brushes.ContainsKey(key),
|
||||||
|
$"DESIGN.md documents `{token}` ({hex}) but Themes/Tokens.xaml has no `{key}` brush");
|
||||||
|
Assert.Equal(hex, brushes[key], ignoreCase: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void The_meter_bands_are_the_standard_three()
|
||||||
|
{
|
||||||
|
var brushes = Brushes();
|
||||||
|
|
||||||
|
// DESIGN.md -> "Meter thresholds": nominal to -12 dB, caution to -3 dB, red above.
|
||||||
|
Assert.Equal("#38bdf8", brushes["Brush.Meter.Nominal"], ignoreCase: true);
|
||||||
|
Assert.Equal("#ffb95f", brushes["Brush.Meter.Caution"], ignoreCase: true);
|
||||||
|
Assert.Equal("#ff5451", brushes["Brush.Meter.Peak"], ignoreCase: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void Tokens_merge_before_the_theme_so_styles_can_resolve_them()
|
||||||
|
{
|
||||||
|
var app = XDocument.Load(SourceAssert.RepoPath("App.xaml"));
|
||||||
|
var sources = app.Descendants()
|
||||||
|
.Where(e => e.Name.LocalName == "ResourceDictionary")
|
||||||
|
.Select(e => (string?)e.Attribute("Source"))
|
||||||
|
.Where(s => s != null)
|
||||||
|
.ToList();
|
||||||
|
|
||||||
|
var tokens = sources.FindIndex(s => s!.EndsWith("Themes/Tokens.xaml", StringComparison.Ordinal));
|
||||||
|
var controls = sources.FindIndex(s => s!.EndsWith("Themes/Controls.xaml", StringComparison.Ordinal));
|
||||||
|
|
||||||
|
Assert.True(tokens >= 0, "App.xaml does not merge Themes/Tokens.xaml");
|
||||||
|
Assert.True(controls >= 0, "App.xaml no longer merges Themes/Controls.xaml");
|
||||||
|
Assert.True(tokens < controls,
|
||||||
|
"Themes/Tokens.xaml must merge BEFORE Themes/Controls.xaml, or styles cannot resolve a token");
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void Converted_surfaces_carry_no_raw_colour()
|
||||||
|
{
|
||||||
|
// The sweep converts one surface per commit; each adds its file here, so every step is
|
||||||
|
// guarded on its own instead of waiting for a global grep at the end. Pure white and black
|
||||||
|
// are allowed (gloss highlights, knockout masks) — everything else must be a token.
|
||||||
|
string[] converted = { "Themes/Controls.xaml", "MainWindow.xaml", "Controls/TopBar.xaml", "Controls/SceneThumbnailStrip.xaml",
|
||||||
|
"Controls/LeftPanel.xaml",
|
||||||
|
"Controls/PreviewPane.xaml",
|
||||||
|
"Controls/OverlayHost.xaml", "SocialsDialog.xaml", "GoLiveWindow.xaml",
|
||||||
|
"HotkeyConfigDialog.xaml", "MicPickerDialog.xaml", "CameraPickerDialog.xaml",
|
||||||
|
"ReuseImageDialog.xaml", "RenameRecordingDialog.xaml",
|
||||||
|
"KeepBroadcastDialog.xaml" };
|
||||||
|
|
||||||
|
foreach (var file in converted)
|
||||||
|
{
|
||||||
|
var text = SourceAssert.Text(file.Split('/'));
|
||||||
|
var raw = Regex.Matches(text, @"#[0-9a-fA-F]{6,8}")
|
||||||
|
.Select(m => m.Value)
|
||||||
|
.Where(v => !v.Equals("#ffffff", StringComparison.OrdinalIgnoreCase)
|
||||||
|
&& !v.Equals("#000000", StringComparison.OrdinalIgnoreCase))
|
||||||
|
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||||
|
.ToList();
|
||||||
|
|
||||||
|
Assert.True(raw.Count == 0,
|
||||||
|
$"{file} still hardcodes {string.Join(", ", raw)} — resolve a Brush.* token instead");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void The_retired_brand_red_is_not_a_token()
|
||||||
|
{
|
||||||
|
// #e94560 was the general accent in 15 files. It is retired (DESIGN.md, 2026-10-30):
|
||||||
|
// blue is interactive, red means live/record. Re-introducing it as a token would undo
|
||||||
|
// the rule, so it must not appear anywhere in the token sheet.
|
||||||
|
Assert.DoesNotContain("#e94560", File.ReadAllText(SourceAssert.RepoPath("Themes", "Tokens.xaml")),
|
||||||
|
StringComparison.OrdinalIgnoreCase);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The `| Token | Hex |` tables under "## Colour", stopping at "## Typography".
|
||||||
|
/// The "Rejected from the export" table lives further down and must not count.</summary>
|
||||||
|
private static Dictionary<string, string> DocumentedColours()
|
||||||
|
{
|
||||||
|
var result = new Dictionary<string, string>(StringComparer.Ordinal);
|
||||||
|
var inColour = false;
|
||||||
|
|
||||||
|
foreach (var raw in File.ReadAllLines(SourceAssert.RepoPath("DESIGN.md")))
|
||||||
|
{
|
||||||
|
var line = raw.Trim();
|
||||||
|
if (line.StartsWith("## ", StringComparison.Ordinal))
|
||||||
|
{
|
||||||
|
inColour = line.StartsWith("## Colour", StringComparison.Ordinal);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (!inColour || !line.StartsWith("| `", StringComparison.Ordinal)) continue;
|
||||||
|
|
||||||
|
var cells = line.Split('|').Select(c => c.Trim()).Where(c => c.Length > 0).ToArray();
|
||||||
|
if (cells.Length < 2) continue;
|
||||||
|
|
||||||
|
// The token cell may carry a note after the backticked name("`tertiary` (electric blue)").
|
||||||
|
var token = Backticked(cells[0]);
|
||||||
|
var hex = Backticked(cells[1]);
|
||||||
|
// 6-digit RGB or 8-digit ARGB (the scrim washes carry alpha).
|
||||||
|
if (!hex.StartsWith("#", StringComparison.Ordinal) || hex.Length is not (7 or 9)) continue;
|
||||||
|
result[token] = hex;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Dictionary<string, string> Brushes()
|
||||||
|
{
|
||||||
|
var dict = XDocument.Load(SourceAssert.RepoPath("Themes", "Tokens.xaml"));
|
||||||
|
return dict.Descendants()
|
||||||
|
.Where(e => e.Name.LocalName == "SolidColorBrush")
|
||||||
|
.Select(e => ((string?)e.Attribute(Xaml + "Key"), (string?)e.Attribute("Color")))
|
||||||
|
.Where(p => p.Item1 != null && p.Item2 != null)
|
||||||
|
.ToDictionary(p => p.Item1!, p => p.Item2!, StringComparer.Ordinal);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The first `backticked` run in a markdown cell, or the trimmed cell itself.</summary>
|
||||||
|
private static string Backticked(string cell)
|
||||||
|
{
|
||||||
|
var start = cell.IndexOf('`');
|
||||||
|
if (start < 0) return cell.Trim();
|
||||||
|
var end = cell.IndexOf('`', start + 1);
|
||||||
|
return end < 0 ? cell.Trim() : cell[(start + 1)..end].Trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>`surface-container-lowest` → `SurfaceContainerLowest`.</summary>
|
||||||
|
private static string Pascal(string token) =>
|
||||||
|
string.Concat(token.Split('-', StringSplitOptions.RemoveEmptyEntries)
|
||||||
|
.Select(part => char.ToUpperInvariant(part[0]) + part[1..]));
|
||||||
|
}
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Windows;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace ytLive.Tests;
|
||||||
|
|
||||||
|
/// <summary>DESIGN.md names Inter for all UI text, but a dialog is a SEPARATE WPF window: the
|
||||||
|
/// FontFamily set on MainWindow never reaches it, so every dialog still rendered Segoe UI while
|
||||||
|
/// the main window had moved on (found 2026-10-30).
|
||||||
|
///
|
||||||
|
/// <para>The theme now carries an implicit <c>Window</c> style. This test proves the mechanism on
|
||||||
|
/// a real window inside the real app — which is what catches a missing resource or a broken
|
||||||
|
/// implicit-style lookup — and asserts no dialog opts out by setting FontFamily itself.</para></summary>
|
||||||
|
[Collection("RealApp")]
|
||||||
|
public class DialogTypographyTests
|
||||||
|
{
|
||||||
|
private readonly RealAppHost _app;
|
||||||
|
|
||||||
|
public DialogTypographyTests(RealAppHost app) => _app = app;
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void A_window_inherits_the_standard_typeface_and_no_dialog_opts_out()
|
||||||
|
{
|
||||||
|
// 1. The mechanism: any Window opened in the app resolves the token family. Dialogs are
|
||||||
|
// Windows; proving it once here covers all of them, and it fails if the implicit style
|
||||||
|
// or the font resource ever goes missing.
|
||||||
|
_app.Run(() =>
|
||||||
|
{
|
||||||
|
var window = new Window();
|
||||||
|
window.Show();
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Assert.Contains("Inter", window.FontFamily?.Source ?? string.Empty,
|
||||||
|
StringComparison.OrdinalIgnoreCase);
|
||||||
|
}
|
||||||
|
finally { window.Close(); }
|
||||||
|
});
|
||||||
|
|
||||||
|
// 2. Opt-outs: a dialog that sets FontFamily itself would silently leave the standard.
|
||||||
|
foreach (var file in DialogFiles())
|
||||||
|
Assert.DoesNotContain("FontFamily=", File.ReadAllText(file));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static IEnumerable<string> DialogFiles()
|
||||||
|
{
|
||||||
|
var root = Path.GetDirectoryName(SourceAssert.RepoPath("App.xaml"))!;
|
||||||
|
return Directory.EnumerateFiles(root, "*.xaml", SearchOption.AllDirectories)
|
||||||
|
.Where(p => !p.Contains($"{Path.DirectorySeparatorChar}obj{Path.DirectorySeparatorChar}", StringComparison.Ordinal)
|
||||||
|
&& !p.Contains($"{Path.DirectorySeparatorChar}bin{Path.DirectorySeparatorChar}", StringComparison.Ordinal)
|
||||||
|
&& !p.Contains("ytLive.Tests", StringComparison.Ordinal))
|
||||||
|
.Where(p => Path.GetFileName(p).Contains("Dialog", StringComparison.OrdinalIgnoreCase)
|
||||||
|
|| Path.GetFileName(p).StartsWith("GoLiveWindow", StringComparison.OrdinalIgnoreCase));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -48,14 +48,14 @@ public sealed class GameMeterHonestyTests
|
|||||||
vm.GameAudioVolume = 1.0;
|
vm.GameAudioVolume = 1.0;
|
||||||
vm.GameAudioLevel = 1.0;
|
vm.GameAudioLevel = 1.0;
|
||||||
Assert.True(vm.GameMeterFillWidth > 230, "unity volume must keep the meter hot");
|
Assert.True(vm.GameMeterFillWidth > 230, "unity volume must keep the meter hot");
|
||||||
Assert.Equal("#ef4444", vm.GameMeterBrush);
|
Assert.Equal("#ff5451", vm.GameMeterBrush); // DESIGN.md: peak band
|
||||||
|
|
||||||
// Drop the knob to 20% — the captured level does NOT change (the OS
|
// Drop the knob to 20% — the captured level does NOT change (the OS
|
||||||
// tap is pre-endpoint-volume); the meter must scale it anyway.
|
// tap is pre-endpoint-volume); the meter must scale it anyway.
|
||||||
vm.GameAudioVolume = 0.2;
|
vm.GameAudioVolume = 0.2;
|
||||||
vm.GameAudioLevel = 1.0;
|
vm.GameAudioLevel = 1.0;
|
||||||
Assert.InRange(vm.GameMeterFillWidth, 40, 80);
|
Assert.InRange(vm.GameMeterFillWidth, 40, 80);
|
||||||
Assert.Equal("#22c55e", vm.GameMeterBrush);
|
Assert.Equal("#38bdf8", vm.GameMeterBrush); // DESIGN.md: nominal band
|
||||||
|
|
||||||
// And the push really reached the (faked) endpoint — one knob, honest.
|
// And the push really reached the (faked) endpoint — one knob, honest.
|
||||||
Assert.Contains(0.2, pushed);
|
Assert.Contains(0.2, pushed);
|
||||||
|
|||||||
@@ -37,16 +37,16 @@ public sealed class OnAirSignTests
|
|||||||
var vm = new MainViewModel();
|
var vm = new MainViewModel();
|
||||||
|
|
||||||
Assert.Equal(StreamStatus.Offline, vm.StreamStatus);
|
Assert.Equal(StreamStatus.Offline, vm.StreamStatus);
|
||||||
Assert.Equal("#555555", vm.OnAirBrush);
|
Assert.Equal("#5b6478", vm.OnAirBrush);
|
||||||
|
|
||||||
var raised = 0;
|
var raised = 0;
|
||||||
vm.PropertyChanged += (_, e) => { if (e.PropertyName == nameof(MainViewModel.OnAirBrush)) raised++; };
|
vm.PropertyChanged += (_, e) => { if (e.PropertyName == nameof(MainViewModel.OnAirBrush)) raised++; };
|
||||||
|
|
||||||
vm.StreamVisibility = "Public";
|
vm.StreamVisibility = "Public";
|
||||||
Assert.Equal("#555555", vm.OnAirBrush);
|
Assert.Equal("#5b6478", vm.OnAirBrush);
|
||||||
|
|
||||||
vm.StreamStatus = StreamStatus.Streaming;
|
vm.StreamStatus = StreamStatus.Streaming;
|
||||||
Assert.Equal("#e94560", vm.OnAirBrush);
|
Assert.Equal("#ff5451", vm.OnAirBrush);
|
||||||
|
|
||||||
vm.StreamVisibility = "Private";
|
vm.StreamVisibility = "Private";
|
||||||
Assert.Equal("#22c55e", vm.OnAirBrush);
|
Assert.Equal("#22c55e", vm.OnAirBrush);
|
||||||
|
|||||||
@@ -0,0 +1,81 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Globalization;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using Xunit;
|
||||||
|
using ytLive.Services.Compositor;
|
||||||
|
|
||||||
|
namespace ytLive.Tests;
|
||||||
|
|
||||||
|
/// <summary>On-stream graphics cannot read application resources (the frame pump is not the UI
|
||||||
|
/// thread), so their colours live in <see cref="OutputPalette"/>. That duplication is safe only
|
||||||
|
/// if it is checked: this test proves every brand token there equals the brush in
|
||||||
|
/// <c>Themes/Tokens.xaml</c>, and that the renderers carry no colour literals of their own.
|
||||||
|
///
|
||||||
|
/// <para>Without it, the broadcast picture would drift away from the UI one "quick fix" at a
|
||||||
|
/// time — the exact failure mode DESIGN.md exists to stop.</para></summary>
|
||||||
|
public class OutputPaletteTests
|
||||||
|
{
|
||||||
|
[Fact]
|
||||||
|
public void The_on_stream_palette_matches_the_theme_and_the_renderers_carry_no_literals()
|
||||||
|
{
|
||||||
|
var brushes = Tokens();
|
||||||
|
|
||||||
|
var mirrored = new (string Brush, Color Colour)[]
|
||||||
|
{
|
||||||
|
("Brush.Primary", OutputPalette.Live),
|
||||||
|
("Brush.PrimaryContainer", OutputPalette.LiveDark),
|
||||||
|
("Brush.Secondary", OutputPalette.Amber),
|
||||||
|
("Brush.Attention", OutputPalette.Attention),
|
||||||
|
("Brush.Positive", OutputPalette.Positive),
|
||||||
|
("Brush.Error", OutputPalette.Error),
|
||||||
|
("Brush.ErrorContainer", OutputPalette.ErrorSurface),
|
||||||
|
("Brush.Tertiary", OutputPalette.Tertiary),
|
||||||
|
("Brush.OnSurface", OutputPalette.TextPrimary),
|
||||||
|
("Brush.OnSurfaceVariant", OutputPalette.TextMuted),
|
||||||
|
("Brush.Background", OutputPalette.Background),
|
||||||
|
("Brush.SurfaceContainer", OutputPalette.Surface),
|
||||||
|
("Brush.SurfaceContainerHigh", OutputPalette.SurfaceHigh),
|
||||||
|
("Brush.Outline", OutputPalette.Outline),
|
||||||
|
};
|
||||||
|
|
||||||
|
foreach (var (brushKey, colour) in mirrored)
|
||||||
|
{
|
||||||
|
Assert.True(brushes.ContainsKey(brushKey), $"{brushKey} missing from Themes/Tokens.xaml");
|
||||||
|
Assert.True(brushes[brushKey] == colour,
|
||||||
|
$"{brushKey} is {brushes[brushKey]} in the theme but {colour} in OutputPalette — the " +
|
||||||
|
"broadcast picture and the UI have drifted apart");
|
||||||
|
}
|
||||||
|
|
||||||
|
// The renderers must not introduce colours of their own; the alert accents belong to
|
||||||
|
// OutputPalette too, so one file owns every on-stream value.
|
||||||
|
foreach (var file in new[]
|
||||||
|
{
|
||||||
|
"Services/AlertRenderer.cs", "Services/Compositor/AlertTickerRenderer.cs",
|
||||||
|
"Services/Compositor/BrandFlashPresenter.cs",
|
||||||
|
})
|
||||||
|
{
|
||||||
|
var text = SourceAssert.Text(file.Split('/'));
|
||||||
|
Assert.DoesNotContain("Color.FromRgb(0x", text);
|
||||||
|
Assert.DoesNotContain("\"Segoe UI\"", text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Dictionary<string, Color> Tokens()
|
||||||
|
{
|
||||||
|
var text = SourceAssert.Text("Themes", "Tokens.xaml");
|
||||||
|
var result = new Dictionary<string, Color>(StringComparer.Ordinal);
|
||||||
|
foreach (Match m in Regex.Matches(text, "x:Key=\"(Brush\\.[^\"]+)\"\\s+Color=\"#([0-9a-fA-F]{6,8})\""))
|
||||||
|
{
|
||||||
|
var hex = m.Groups[2].Value;
|
||||||
|
if (hex.Length == 8) hex = hex[2..]; // drop the alpha the palette does not mirror
|
||||||
|
var r = int.Parse(hex[..2], NumberStyles.HexNumber, CultureInfo.InvariantCulture);
|
||||||
|
var g = int.Parse(hex[2..4], NumberStyles.HexNumber, CultureInfo.InvariantCulture);
|
||||||
|
var b = int.Parse(hex[4..6], NumberStyles.HexNumber, CultureInfo.InvariantCulture);
|
||||||
|
result[m.Groups[1].Value] = Color.FromRgb((byte)r, (byte)g, (byte)b);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
using Xunit;
|
||||||
|
using ytLive.Models;
|
||||||
|
|
||||||
|
namespace ytLive.Tests;
|
||||||
|
|
||||||
|
/// <summary>Creator ruling (2026-10-30): the top bar's primary button is context-sensitive and the
|
||||||
|
/// separate TEST button is gone.
|
||||||
|
///
|
||||||
|
/// <para>EDIT off + ON-AIR → the livestream message. EDIT on + ON-AIR → the test-livestream
|
||||||
|
/// message. REC always records, because there is no test recording. The matrix is pure, so it is
|
||||||
|
/// cheaper to pin it here than to drive a window.</para></summary>
|
||||||
|
public class SessionStartDecisionTests
|
||||||
|
{
|
||||||
|
[Fact]
|
||||||
|
public void Edit_decides_whether_the_on_air_start_is_live_or_a_test()
|
||||||
|
{
|
||||||
|
// ON-AIR armed: EDIT decides.
|
||||||
|
Assert.Equal(SessionStartKind.Live, SessionStartDecision.For(recordArmed: false, onAirArmed: true, editing: false));
|
||||||
|
Assert.Equal("Go Live", SessionStartDecision.LabelFor(SessionStartKind.Live));
|
||||||
|
|
||||||
|
Assert.Equal(SessionStartKind.Test, SessionStartDecision.For(recordArmed: false, onAirArmed: true, editing: true));
|
||||||
|
Assert.Equal("Test Stream", SessionStartDecision.LabelFor(SessionStartKind.Test));
|
||||||
|
|
||||||
|
// REC armed: always a recording, whatever EDIT says (no test recording exists).
|
||||||
|
Assert.Equal(SessionStartKind.Record, SessionStartDecision.For(true, false, false));
|
||||||
|
Assert.Equal(SessionStartKind.Record, SessionStartDecision.For(true, false, true));
|
||||||
|
Assert.Equal("Start Recording", SessionStartDecision.LabelFor(SessionStartKind.Record));
|
||||||
|
|
||||||
|
// Signed out: an ON-AIR press (live OR test) routes to the sign-in flow, never a dead
|
||||||
|
// button. Recording never needs an account.
|
||||||
|
Assert.Equal(SessionStartDecision.Route.SignIn, SessionStartDecision.RouteFor(SessionStartKind.Live, connected: false));
|
||||||
|
Assert.Equal(SessionStartDecision.Route.SignIn, SessionStartDecision.RouteFor(SessionStartKind.Test, connected: false));
|
||||||
|
Assert.Equal(SessionStartDecision.Route.Live, SessionStartDecision.RouteFor(SessionStartKind.Live, connected: true));
|
||||||
|
Assert.Equal(SessionStartDecision.Route.Test, SessionStartDecision.RouteFor(SessionStartKind.Test, connected: true));
|
||||||
|
Assert.Equal(SessionStartDecision.Route.Record, SessionStartDecision.RouteFor(SessionStartKind.Record, connected: false));
|
||||||
|
|
||||||
|
// Unarmed start records locally (the no-dead-ends rule).
|
||||||
|
Assert.Equal(SessionStartKind.Record, SessionStartDecision.For(false, false, false));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,92 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using Xunit;
|
||||||
|
using ytLive.Models;
|
||||||
|
using ytLive.Services;
|
||||||
|
using ytLive.Services.Compositor;
|
||||||
|
|
||||||
|
namespace ytLive.Tests;
|
||||||
|
|
||||||
|
/// <summary>The creator (2026-10-30): the social bar was hard-wired white-on-transparent. It now
|
||||||
|
/// takes a text colour, an optional background plate with its own colour and opacity, and a text
|
||||||
|
/// drop shadow — set in the Socials drawer.
|
||||||
|
///
|
||||||
|
/// <para>These knobs are painting rules, so the test paints the real strip and inspects its
|
||||||
|
/// pixels. Anything less would pass while the bar rendered unchanged.</para></summary>
|
||||||
|
public class SocialBarAppearanceTests
|
||||||
|
{
|
||||||
|
private static readonly List<SocialEntry> Entries = new()
|
||||||
|
{
|
||||||
|
new SocialEntry { Service = SocialService.YouTube, Handle = "creator", ProfileUrl = "https://youtube.com/@creator" },
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void The_bar_paints_the_chosen_text_colour_plate_and_shadow()
|
||||||
|
{
|
||||||
|
Exception? failure = null;
|
||||||
|
var results = new List<string>();
|
||||||
|
|
||||||
|
var thread = new Thread(() =>
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// 1. Default look: white glyphs, no plate, no shadow.
|
||||||
|
var plain = Render(SocialBarStyle.Default);
|
||||||
|
Assert.NotNull(plain);
|
||||||
|
Assert.True(Count(plain!, (r, g, b, a) => r > 200 && g > 200 && b > 200 && a > 200) > 0,
|
||||||
|
"white glyphs must be painted by default");
|
||||||
|
Assert.Equal(0, Count(plain!, (r, g, b, a) => b > 150 && r < 80 && g < 80));
|
||||||
|
|
||||||
|
// 2. Text colour: red glyphs, nothing white.
|
||||||
|
var red = Render(new SocialBarStyle("#FF0000", false, "#000000", 0.55, false));
|
||||||
|
Assert.True(Count(red!, (r, g, b, a) => r > 180 && g < 80 && b < 80 && a > 200) > 0,
|
||||||
|
"the text colour must reach the glyph pixels");
|
||||||
|
Assert.Equal(0, Count(red!, (r, g, b, a) => r > 200 && g > 200 && b > 200 && a > 200));
|
||||||
|
|
||||||
|
// 3. Plate: blue at 55% — half-transparent blue pixels must appear.
|
||||||
|
var plated = Render(new SocialBarStyle("#FFFFFF", true, "#0000FF", 0.55, false));
|
||||||
|
Assert.True(Count(plated!, (r, g, b, a) => b > 150 && r < 60 && g < 60 && a is > 100 and < 170) > 200,
|
||||||
|
"the plate must fill with its colour at the chosen opacity");
|
||||||
|
|
||||||
|
// 4. Shadow: dark semi-transparent pixels appear beside the glyphs.
|
||||||
|
var shadowed = Render(new SocialBarStyle("#FFFFFF", false, "#000000", 0.55, true));
|
||||||
|
Assert.True(Count(shadowed!, (r, g, b, a) => r < 60 && g < 60 && b < 60 && a is > 0 and < 200)
|
||||||
|
> Count(plain!, (r, g, b, a) => r < 60 && g < 60 && b < 60 && a is > 0 and < 200),
|
||||||
|
"the drop shadow must add dark pixels behind the glyphs");
|
||||||
|
}
|
||||||
|
catch (Exception ex) { failure = ex; }
|
||||||
|
});
|
||||||
|
thread.SetApartmentState(ApartmentState.STA);
|
||||||
|
thread.Start();
|
||||||
|
thread.Join();
|
||||||
|
|
||||||
|
Assert.Null(failure);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void The_preview_bar_is_never_hidden_by_the_plate_switch()
|
||||||
|
{
|
||||||
|
// Regression, 2026-10-30: the plate Border wrapped the whole bar and its Visibility was
|
||||||
|
// bound to BarBackgroundEnabled, so turning the plate off (the default) removed the bar
|
||||||
|
// from the preview entirely. "Plate off" must mean a transparent plate.
|
||||||
|
var preview = SourceAssert.Text("Controls", "PreviewPane.xaml");
|
||||||
|
Assert.DoesNotContain("Socials.BarBackgroundEnabled, Converter={StaticResource BoolToVis}", preview);
|
||||||
|
Assert.Contains("{Binding SocialBarBackgroundBrush}", preview);
|
||||||
|
|
||||||
|
// The plate's PADDING is what switches with the toggle, not the element's presence.
|
||||||
|
Assert.Contains("<Setter Property=\"Padding\" Value=\"18,6\"/>", preview);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static VideoFrame? Render(SocialBarStyle style) => SocialBarRenderer.Render(Entries, style);
|
||||||
|
|
||||||
|
private static int Count(VideoFrame frame, Func<int, int, int, int, bool> predicate)
|
||||||
|
{
|
||||||
|
var hits = 0;
|
||||||
|
for (var i = 0; i < frame.BgraPixels.Length; i += 4)
|
||||||
|
if (predicate(frame.BgraPixels[i + 2], frame.BgraPixels[i + 1], frame.BgraPixels[i], frame.BgraPixels[i + 3]))
|
||||||
|
hits++;
|
||||||
|
return hits;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Effects;
|
||||||
|
using Microsoft.Data.Sqlite;
|
||||||
|
using Xunit;
|
||||||
|
using Xunit.Sdk;
|
||||||
|
using ytLive.Controls;
|
||||||
|
using ytLive.Models;
|
||||||
|
using ytLive.Services;
|
||||||
|
using ytLive.ViewModels;
|
||||||
|
|
||||||
|
namespace ytLive.Tests;
|
||||||
|
|
||||||
|
/// <summary>The hole that let two regressions reach the creator on 2026-10-30: the Socials drawer's
|
||||||
|
/// appearance controls were tested against the RENDERER, while the preview is its own XAML tree —
|
||||||
|
/// so a control could paint nothing, or hide the bar entirely, with every test green.
|
||||||
|
///
|
||||||
|
/// <para>This drives the real drawer on a real MainWindow and reads the real preview elements:
|
||||||
|
/// the bar stays visible when the plate is off, the text colour reaches the glyphs, the plate
|
||||||
|
/// carries its colour and opacity, the shadow switches on, and Cancel restores the pre-edit
|
||||||
|
/// look.</para></summary>
|
||||||
|
[Collection("RealApp")]
|
||||||
|
public class SocialsPreviewTests
|
||||||
|
{
|
||||||
|
private readonly RealAppHost _app;
|
||||||
|
|
||||||
|
public SocialsPreviewTests(RealAppHost app) => _app = app;
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void The_preview_bar_follows_the_drawer_controls() => _app.Run(Run);
|
||||||
|
|
||||||
|
private static void Run()
|
||||||
|
{
|
||||||
|
var tempDb = Path.Combine(Path.GetTempPath(), $"ytLlive-socialspreview-{Guid.NewGuid():N}.db");
|
||||||
|
MainViewModel.LayoutPathOverride = tempDb;
|
||||||
|
MainWindow? window = null;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var seeded = new SocialsConfig { BarEnabled = true };
|
||||||
|
seeded.Entries.Add(new SocialEntry
|
||||||
|
{
|
||||||
|
Service = SocialService.YouTube, Handle = "creator",
|
||||||
|
ProfileUrl = "https://youtube.com/@creator",
|
||||||
|
});
|
||||||
|
using (var store = new LayoutStore(tempDb))
|
||||||
|
store.Save(Array.Empty<Scene>(), null, seeded);
|
||||||
|
SqliteConnection.ClearAllPools();
|
||||||
|
|
||||||
|
window = new MainWindow();
|
||||||
|
var vm = (MainViewModel)window.DataContext!;
|
||||||
|
window.Show();
|
||||||
|
window.UpdateLayout();
|
||||||
|
|
||||||
|
var preview = (PreviewPane)window.FindName("PreviewPane")!;
|
||||||
|
var bar = (FrameworkElement)preview.FindName("SocialBarElement")!;
|
||||||
|
var plate = FindChild<Border>(bar)!;
|
||||||
|
var label = FindChild<TextBlock>(bar)!;
|
||||||
|
|
||||||
|
Assert.Equal(Visibility.Visible, bar.Visibility);
|
||||||
|
|
||||||
|
// 1. Drawer edits land on the preview live — no Save needed.
|
||||||
|
vm.OpenSocialDialogCommand.Execute(null);
|
||||||
|
var drawer = vm.SocialsDrawer!;
|
||||||
|
drawer.BarTextColor = "#FF0000";
|
||||||
|
window.UpdateLayout();
|
||||||
|
Assert.Equal(Colors.Red, ((SolidColorBrush)label.Foreground).Color);
|
||||||
|
|
||||||
|
// 2. Plate off (the default) = transparent plate, NOT a hidden bar.
|
||||||
|
Assert.Equal(0, ((SolidColorBrush)plate.Background).Color.A);
|
||||||
|
Assert.Equal(Visibility.Visible, bar.Visibility);
|
||||||
|
|
||||||
|
drawer.BarBackgroundEnabled = true;
|
||||||
|
drawer.BarBackgroundColor = "#0000FF";
|
||||||
|
drawer.BarBackgroundOpacity = 0.5;
|
||||||
|
window.UpdateLayout();
|
||||||
|
var bg = ((SolidColorBrush)plate.Background).Color;
|
||||||
|
Assert.Equal(Colors.Blue, Color.FromRgb(bg.R, bg.G, bg.B));
|
||||||
|
Assert.InRange(bg.A, 120, 135); // 50% of 255
|
||||||
|
Assert.Equal(new Thickness(18, 6, 18, 6), plate.Padding);
|
||||||
|
|
||||||
|
// 3. The shadow is a real effect on the glyph, and off by default.
|
||||||
|
Assert.Null(label.Effect);
|
||||||
|
drawer.BarTextShadow = true;
|
||||||
|
window.UpdateLayout();
|
||||||
|
Assert.IsType<DropShadowEffect>(label.Effect);
|
||||||
|
|
||||||
|
// 4. Cancel restores the pre-edit look (white text, no plate).
|
||||||
|
drawer.CancelCommand.Execute(null);
|
||||||
|
window.UpdateLayout();
|
||||||
|
Assert.Equal(Colors.White, ((SolidColorBrush)label.Foreground).Color);
|
||||||
|
Assert.Equal(0, ((SolidColorBrush)plate.Background).Color.A);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new XunitException(ex.ToString()); // the host otherwise hides the real stack
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
window?.Close();
|
||||||
|
MainViewModel.LayoutPathOverride = null;
|
||||||
|
SqliteConnection.ClearAllPools();
|
||||||
|
try { File.Delete(tempDb); } catch { /* best-effort */ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static T? FindChild<T>(DependencyObject root) where T : DependencyObject
|
||||||
|
{
|
||||||
|
for (var i = 0; i < VisualTreeHelper.GetChildrenCount(root); i++)
|
||||||
|
{
|
||||||
|
var child = VisualTreeHelper.GetChild(root, i);
|
||||||
|
if (child is T match) return match;
|
||||||
|
var deeper = FindChild<T>(child);
|
||||||
|
if (deeper != null) return deeper;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,91 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace ytLive.Tests;
|
||||||
|
|
||||||
|
/// <summary>A missing <c>{StaticResource}</c> key does not fail the build — WPF substitutes
|
||||||
|
/// <c>DependencyProperty.UnsetValue</c> and throws at the next layout pass. That is exactly how
|
||||||
|
/// the app crashed on 2026-10-30: the token conversion deleted <c>YtSliderKnobHoverBrush</c>
|
||||||
|
/// while two slider triggers still asked for it, so the first slider the creator touched
|
||||||
|
/// (the new socials opacity slider) killed the app inside <c>Ellipse.OnRender</c>.
|
||||||
|
///
|
||||||
|
/// <para>This guard scans every XAML file in the app and proves each referenced key exists —
|
||||||
|
/// either in the theme/App resources or in the same file — so the class cannot come back.</para></summary>
|
||||||
|
public class ThemeResourceTests
|
||||||
|
{
|
||||||
|
[Fact]
|
||||||
|
public void Every_StaticResource_reference_resolves_to_a_defined_key()
|
||||||
|
{
|
||||||
|
var root = System.IO.Path.GetDirectoryName(SourceAssert.RepoPath("App.xaml"))!;
|
||||||
|
var globalKeys = new HashSet<string>(StringComparer.Ordinal);
|
||||||
|
foreach (var file in new[] { System.IO.Path.Combine(root, "App.xaml") }
|
||||||
|
.Concat(Directory.GetFiles(System.IO.Path.Combine(root, "Themes"), "*.xaml")))
|
||||||
|
globalKeys.UnionWith(KeysIn(File.ReadAllText(file)));
|
||||||
|
|
||||||
|
var missing = new List<string>();
|
||||||
|
|
||||||
|
foreach (var path in XamlFiles())
|
||||||
|
{
|
||||||
|
var text = File.ReadAllText(path);
|
||||||
|
var localKeys = KeysIn(text);
|
||||||
|
foreach (Match match in Regex.Matches(text, @"\{StaticResource ([^}]+)\}"))
|
||||||
|
{
|
||||||
|
var key = match.Groups[1].Value.Trim();
|
||||||
|
if (key.StartsWith("{", StringComparison.Ordinal)) continue; // nested markup extension
|
||||||
|
if (globalKeys.Contains(key) || localKeys.Contains(key)) continue;
|
||||||
|
missing.Add($"{System.IO.Path.GetFileName(path)}: {key}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Assert.True(missing.Count == 0,
|
||||||
|
"StaticResource keys with no definition (WPF throws UnsetValue at layout):\n "
|
||||||
|
+ string.Join("\n ", missing.Distinct()));
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void A_dictionary_never_references_a_key_defined_later_in_itself()
|
||||||
|
{
|
||||||
|
// StaticResource resolves while the dictionary is being built, so a forward reference
|
||||||
|
// fails at load with "Cannot find resource named …" — exactly how the app refused to
|
||||||
|
// launch on 2026-10-30 (a BasedOn pointing at a style defined further down the file).
|
||||||
|
var root = System.IO.Path.GetDirectoryName(SourceAssert.RepoPath("App.xaml"))!;
|
||||||
|
var files = new[] { System.IO.Path.Combine(root, "App.xaml") }
|
||||||
|
.Concat(Directory.GetFiles(System.IO.Path.Combine(root, "Themes"), "*.xaml"));
|
||||||
|
|
||||||
|
var forward = new List<string>();
|
||||||
|
foreach (var file in files)
|
||||||
|
{
|
||||||
|
var text = File.ReadAllText(file);
|
||||||
|
var definitions = Regex.Matches(text, @"x:Key=""([^""]+)""")
|
||||||
|
.ToDictionary(m => m.Groups[1].Value, m => m.Index, StringComparer.Ordinal);
|
||||||
|
|
||||||
|
foreach (Match use in Regex.Matches(text, @"\{StaticResource ([^}]+)\}"))
|
||||||
|
{
|
||||||
|
var key = use.Groups[1].Value.Trim();
|
||||||
|
if (!definitions.TryGetValue(key, out var defined)) continue;
|
||||||
|
if (defined > use.Index)
|
||||||
|
forward.Add($"{System.IO.Path.GetFileName(file)}: {key} used before it is defined");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Assert.True(forward.Count == 0,
|
||||||
|
"Forward StaticResource references fail at load:\n " + string.Join("\n ", forward.Distinct()));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static HashSet<string> KeysIn(string text)
|
||||||
|
=> Regex.Matches(text, @"x:Key=""([^""]+)""").Select(m => m.Groups[1].Value)
|
||||||
|
.ToHashSet(StringComparer.Ordinal);
|
||||||
|
|
||||||
|
private static IEnumerable<string> XamlFiles()
|
||||||
|
{
|
||||||
|
var root = System.IO.Path.GetDirectoryName(SourceAssert.RepoPath("App.xaml"))!;
|
||||||
|
return Directory.EnumerateFiles(root, "*.xaml", SearchOption.AllDirectories)
|
||||||
|
.Where(p => !p.Contains($"{System.IO.Path.DirectorySeparatorChar}obj{System.IO.Path.DirectorySeparatorChar}", StringComparison.Ordinal)
|
||||||
|
&& !p.Contains($"{System.IO.Path.DirectorySeparatorChar}bin{System.IO.Path.DirectorySeparatorChar}", StringComparison.Ordinal)
|
||||||
|
&& !p.Contains("ytLive.Tests", StringComparison.Ordinal));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,101 @@
|
|||||||
|
using System.Linq;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace ytLive.Tests;
|
||||||
|
|
||||||
|
/// <summary>The creator's six corrections (2026-10-30) are visual rulings, so the only honest guard
|
||||||
|
/// is one that pins the ruling to the markup: if a later edit quietly reverts one of them, this
|
||||||
|
/// fails and names it.
|
||||||
|
///
|
||||||
|
/// <para>1. Stream Info + YPP rails are YouTube surfaces (YouTube red). 2. EDIT shows a real
|
||||||
|
/// off/on difference. 3. The active scene outline is orange again. 4. Scene labels wear the same
|
||||||
|
/// pill as the hotkey chips. 5. REC / ON-AIR and the running stop button read red. 6. The
|
||||||
|
/// properties list no longer caps its height, so no scrollbar appears while space remains.</para></summary>
|
||||||
|
public class UiShellTests
|
||||||
|
{
|
||||||
|
[Fact]
|
||||||
|
public void The_creators_six_ui_corrections_are_in_the_markup()
|
||||||
|
{
|
||||||
|
var preview = SourceAssert.Text("Controls", "PreviewPane.xaml");
|
||||||
|
var topBar = SourceAssert.Text("Controls", "TopBar.xaml");
|
||||||
|
var strip = SourceAssert.Text("Controls", "SceneThumbnailStrip.xaml");
|
||||||
|
var leftPanel = SourceAssert.Text("Controls", "LeftPanel.xaml");
|
||||||
|
var theme = SourceAssert.Text("Themes", "Controls.xaml");
|
||||||
|
var tokens = SourceAssert.Text("Themes", "Tokens.xaml");
|
||||||
|
|
||||||
|
// 1. YouTube-branded rails.
|
||||||
|
Assert.Contains("Brush.Youtube", tokens);
|
||||||
|
Assert.Equal(2, Count(preview, "Background=\"{StaticResource Brush.Youtube}\""));
|
||||||
|
|
||||||
|
// 2. EDIT: resting face differs from the armed face, and the label follows it.
|
||||||
|
Assert.Contains("x:Name=\"EditBody\" Background=\"{StaticResource Brush.SurfaceContainerHigh}\"", topBar);
|
||||||
|
Assert.Contains("<Setter TargetName=\"EditBody\" Property=\"Background\" Value=\"{StaticResource Brush.Tertiary}\"/>", topBar);
|
||||||
|
// The label is white in BOTH states — only the fill changes. A muted resting colour is
|
||||||
|
// what made it illegible on the dark bar (creator, 2026-10-30).
|
||||||
|
Assert.Contains("FontSize=\"12\" Foreground=\"{StaticResource Brush.OnAccent}\"", topBar);
|
||||||
|
|
||||||
|
// 3. Active scene = orange; live stays red.
|
||||||
|
Assert.Contains("IsStaged}\" Value=\"True\">\n <Setter Property=\"BorderBrush\" Value=\"{StaticResource Brush.Attention}\"/>", strip);
|
||||||
|
|
||||||
|
// 4. Scene name pill, same shape as the hotkey chip.
|
||||||
|
Assert.Contains("Padding=\"8,2\" CornerRadius=\"10\" Background=\"#000000\"", strip);
|
||||||
|
Assert.Contains("Text=\"{Binding Name, Mode=OneWay}\"", strip);
|
||||||
|
|
||||||
|
// 5. Armed session controls are red, and the running stop button is red — not a grey literal.
|
||||||
|
Assert.Contains("x:Key=\"RecordPillToggle\"", theme);
|
||||||
|
// One rule for session controls: white ink in every state, the fill carries the state.
|
||||||
|
// The missing base foreground is what painted the REC/ON-AIR labels black (2026-10-30).
|
||||||
|
var pill = theme[theme.IndexOf("x:Key=\"RecordPillToggle\"", System.StringComparison.Ordinal)..];
|
||||||
|
pill = pill[..pill.IndexOf("</Style>", System.StringComparison.Ordinal)];
|
||||||
|
Assert.Contains("<Setter Property=\"Foreground\" Value=\"{StaticResource Brush.OnAccent}\"/>", pill);
|
||||||
|
Assert.Contains("Brush.Primary", theme);
|
||||||
|
Assert.Contains("Style=\"{StaticResource RecordPillToggle}\"", topBar);
|
||||||
|
Assert.Contains("Background=\"{StaticResource Brush.Primary}\" Margin=\"14,0,0,0\"", topBar);
|
||||||
|
Assert.DoesNotContain("Background=\"#333\"", topBar);
|
||||||
|
|
||||||
|
// 6. No artificial height cap on the properties list: the list fills the row, so a
|
||||||
|
// scrollbar appears only when the content genuinely exceeds the space.
|
||||||
|
var listLine = leftPanel.Split('\n').First(line => line.Contains("ElementsScrollViewer"));
|
||||||
|
Assert.DoesNotContain("MaxHeight", listLine);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void The_wordmark_ty_stays_youtube_red_and_ctrl_opens_the_context_menu()
|
||||||
|
{
|
||||||
|
var topBar = SourceAssert.Text("Controls", "TopBar.xaml");
|
||||||
|
// Adjacent, with nothing between: whitespace inside a TextBlock between inline Runs
|
||||||
|
// collapses to a space and prints "LlamaCas ty" (this exact bug shipped once).
|
||||||
|
Assert.Contains("<Run Text=\"LlamaCas\" Foreground=\"{StaticResource Brush.OnSurface}\"/><Run Text=\"ty\" Foreground=\"{StaticResource Brush.Youtube}\"/>", topBar);
|
||||||
|
|
||||||
|
// Plain right-click is the zoom box; the context menu moved to Ctrl+right-click so a
|
||||||
|
// creator can change capture sources mid-stream.
|
||||||
|
var preview = SourceAssert.Text("Controls", "PreviewPane.xaml.cs");
|
||||||
|
Assert.Contains("ModifierKeys.Control", preview);
|
||||||
|
Assert.Contains("return;", preview);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void Edit_sits_beside_the_orange_gear()
|
||||||
|
{
|
||||||
|
var topBar = SourceAssert.Text("Controls", "TopBar.xaml");
|
||||||
|
|
||||||
|
// The gear is a LlamaCasty control, so it wears the app's orange (not a muted icon grey).
|
||||||
|
Assert.Contains("Fill=\"{StaticResource Brush.Attention}\" Width=\"18\" Height=\"18\"", topBar);
|
||||||
|
|
||||||
|
// EDIT lives in the LEFT cluster, immediately after the gear — not in the centre session
|
||||||
|
// cluster (creator ruling 2026-10-30).
|
||||||
|
var edit = topBar.IndexOf("EditingActive", System.StringComparison.Ordinal);
|
||||||
|
var centre = topBar.IndexOf("Grid.Column=\"1\"", System.StringComparison.Ordinal);
|
||||||
|
Assert.True(edit > 0 && centre > edit,
|
||||||
|
"the EDIT toggle must appear before the centre (session) cluster");
|
||||||
|
}
|
||||||
|
|
||||||
|
private static int Count(string haystack, string needle)
|
||||||
|
{
|
||||||
|
var hits = 0;
|
||||||
|
for (var i = haystack.IndexOf(needle, System.StringComparison.Ordinal); i >= 0;
|
||||||
|
i = haystack.IndexOf(needle, i + needle.Length, System.StringComparison.Ordinal))
|
||||||
|
hits++;
|
||||||
|
return hits;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -80,6 +80,13 @@
|
|||||||
<Resource Include="Assets\ending-background.jpg" />
|
<Resource Include="Assets\ending-background.jpg" />
|
||||||
<Resource Include="Assets\chat-background.jpg" />
|
<Resource Include="Assets\chat-background.jpg" />
|
||||||
<Resource Include="Assets\alert-default.mp4" />
|
<Resource Include="Assets\alert-default.mp4" />
|
||||||
|
<!-- Design-standard typefaces (DESIGN.md): Inter + JetBrains Mono, OFL-1.1. -->
|
||||||
|
<Resource Include="Assets\Fonts\Inter-Regular.ttf" />
|
||||||
|
<Resource Include="Assets\Fonts\Inter-Medium.ttf" />
|
||||||
|
<Resource Include="Assets\Fonts\Inter-SemiBold.ttf" />
|
||||||
|
<Resource Include="Assets\Fonts\Inter-Bold.ttf" />
|
||||||
|
<Resource Include="Assets\Fonts\JetBrainsMono-Medium.ttf" />
|
||||||
|
<Resource Include="Assets\Fonts\JetBrainsMono-SemiBold.ttf" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user