Repository navigation
P0 UI: universal black LCD VU glass and paint-first lightweight native splash #140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
ab8847e
P0 startup: add lightweight native vector splash matching approved vi…
masarray 76ab289
P0: native splash first paint and event-driven transition to mixer af…
masarray 0716a99
P0: align all channel VU meter faces to static black sleeping LCD
masarray 96fcb0b
P0: align all channel VU meter faces to static black sleeping LCD
masarray 0a8a474
P0: align all channel VU meter faces to static black sleeping LCD
masarray fbf14e9
test: black sleeping glass parity and paint-first native splash startup
masarray 03ad564
test: black sleeping glass parity and paint-first native splash startup
masarray d1b49dc
fix: dismiss splash on WebView2 startup fault before native error dialog
masarray ee5c72c
test: splash exits on both ready and WebView failure
masarray 5245950
P0 test gates: remove banned backdrop-filter declaration; assert rena…
masarray 151c11e
P0 correct regression gates: no banned meter CSS filter and exact spl…
masarray 5be69db
test: update legacy meter-color contract to approved universal sleepi…
masarray File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,115 @@ | ||
| // SPDX-License-Identifier: AGPL-3.0-only | ||
| #pragma once | ||
| #include <juce_gui_basics/juce_gui_basics.h> | ||
|
|
||
| // Lightweight native first-paint: inspired by the approved ArSonMix loading | ||
| // reference, deliberately vector-only. No WebView2, image decode, animation, | ||
| // blocking timer, disk access or per-frame GPU filters. Owning app paints this | ||
| // before constructing the browser/device engine on its next message-loop tick. | ||
| class ArSonMixStartupSplash final : public juce::Component | ||
| { | ||
| public: | ||
| ArSonMixStartupSplash() | ||
| { | ||
| setName ("ArSonMix loading"); | ||
| setOpaque (true); | ||
| setSize (740, 420); | ||
| centreWithSize (740, 420); | ||
| addToDesktop (juce::ComponentPeer::windowHasDropShadow); | ||
| setAlwaysOnTop (true); | ||
| setVisible (true); | ||
| } | ||
|
|
||
| void setStage (int stage) | ||
| { | ||
| stage_ = juce::jlimit (0, 2, stage); | ||
| repaint(); | ||
| } | ||
|
|
||
| void paint (juce::Graphics& g) override | ||
| { | ||
| auto area = getLocalBounds(); | ||
| g.setGradientFill (juce::ColourGradient ( | ||
| juce::Colour (0xff0c2332), 0.0f, 0.0f, | ||
| juce::Colour (0xff030c15), (float) getWidth(), (float) getHeight(), false)); | ||
| g.fillAll(); | ||
| // Mixer strips at the sides are deliberately low-contrast vectors, | ||
| // not blurry images or animated native/WebView layers. | ||
| for (int side = 0; side != 2; ++side) | ||
| for (int i = 0; i != 3; ++i) | ||
| { | ||
| const int x = side == 0 ? 13 + i * 51 : getWidth() - 59 - i * 51; | ||
| const auto strip = juce::Rectangle<float> ((float) x, 54.0f, 42.0f, 288.0f); | ||
| g.setColour (juce::Colour (0xff122c3b).withAlpha (0.55f)); | ||
| g.fillRoundedRectangle (strip, 3.0f); | ||
| g.setColour (juce::Colour (0xff244657).withAlpha (0.34f)); | ||
| g.drawRoundedRectangle (strip, 3.0f, 1.0f); | ||
| g.setColour (juce::Colour (0xff030b10)); | ||
| g.fillRoundedRectangle ((float)x + 8.0f, 104.0f, 7.0f, 174.0f, 2.0f); | ||
| for (int j = 0; j < 16; ++j) | ||
| { | ||
| g.setColour (juce::Colour (j < 12 ? 0xff18c886 : 0xffdfb55c) | ||
| .withAlpha (0.12f)); | ||
| g.fillRect (x + 9, 272 - j * 9, 5, 5); | ||
| } | ||
| g.setColour (juce::Colour (0xff839ba8).withAlpha (0.22f)); | ||
| g.fillRoundedRectangle ((float) x + 21.0f, 183.0f, 16.0f, 25.0f, 3.0f); | ||
| } | ||
|
|
||
| g.setColour (juce::Colour (0xff12bed4)); | ||
| g.drawHorizontalLine (366, 26.0f, (float)getWidth() - 26.0f); | ||
| g.setColour (juce::Colour (0xff09d5d5)); | ||
| g.setFont (juce::FontOptions (44.0f)); | ||
| g.drawText ("Ar", 194, 73, 77, 58, juce::Justification::centredRight); | ||
| g.setColour (juce::Colour (0xffeaf3f7)); | ||
| g.drawText ("SonMix", 269, 73, 274, 58, juce::Justification::centredLeft); | ||
| g.setColour (juce::Colour (0xff87a8bd)); | ||
| g.setFont (juce::FontOptions (15.0f)); | ||
| g.drawText ("N A T I V E V S T 3 F X H O S T", 176, 132, 388, 30, | ||
| juce::Justification::centred); | ||
|
|
||
| // Static equalizer glyph: a 5-bar detail from the reference image. | ||
| for (int i = 0; i < 5; ++i) | ||
| { | ||
| g.setColour (juce::Colour (0xff1edac2)); | ||
| const int height = 8 + (2 - std::abs (2 - i)) * 8; | ||
| g.fillRoundedRectangle ((float)(355 + i * 8), (float)(183 - height / 2), | ||
| 5.0f, (float)height, 1.5f); | ||
| } | ||
|
|
||
| g.setColour (juce::Colour (0xffd9ebf2)); | ||
| g.setFont (juce::FontOptions (17.0f)); | ||
| const juce::String status = stage_ == 0 ? "Loading mixer interface..." | ||
| : stage_ == 1 ? "Preparing native audio engine..." | ||
| : "Mixer interface ready"; | ||
| g.drawText (status, 145, 213, 450, 28, juce::Justification::centred); | ||
| g.setColour (juce::Colour (0xff283c49)); | ||
| g.fillRoundedRectangle (179.0f, 255.0f, 382.0f, 9.0f, 4.0f); | ||
| g.setColour (juce::Colour (0xff17d7b1)); | ||
| g.fillRoundedRectangle (179.0f, 255.0f, stage_ == 0 ? 105.0f : | ||
| stage_ == 1 ? 273.0f : 382.0f, 9.0f, 4.0f); | ||
| const juce::String labels[] = { | ||
| "Loading interface", "Preparing audio engine", "Ready mixer layout" | ||
| }; | ||
| for (int i = 0; i < 3; ++i) | ||
| { | ||
| const int y = 282 + i * 24; | ||
| g.setColour (juce::Colour (i <= stage_ ? 0xff16dbb0 : 0xff506878)); | ||
| g.drawEllipse (229.0f, (float)y + 5.0f, 11.0f, 11.0f, 1.3f); | ||
| if (i < stage_) | ||
| g.fillEllipse (232.0f, (float)y + 8.0f, 5.0f, 5.0f); | ||
| g.setColour (juce::Colour (i <= stage_ ? 0xffe1f1f6 : 0xff819aac)); | ||
| g.setFont (juce::FontOptions (12.0f)); | ||
| g.drawText (labels[i], 251, y, 286, 23, juce::Justification::centredLeft); | ||
| } | ||
| g.setColour (juce::Colour (0xff8aaabb)); | ||
| g.setFont (juce::FontOptions (11.0f)); | ||
| g.drawText ("ArSonMix | Native VST3 FX Host", 25, 380, 350, 24, | ||
| juce::Justification::centredLeft); | ||
| g.drawText ("Initializing locally", 470, 380, 245, 24, | ||
| juce::Justification::centredRight); | ||
| } | ||
|
|
||
| private: | ||
| int stage_ = 0; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing this signature breaks the existing startup contract test:
tests/main_v08_native_integration_test.mjs:73still searches forConsoleWindow(), which now matches the destructor, producing an empty constructor slice. Running the suite fails with “GUI navigation must be started from constructor.” The Windows native workflow (.github/workflows/p1-windows.yml) explicitly runs this suite, so its gate fails despite navigation remaining intact. Update the constructor extraction alongside this signature change.AGENTS.md reference: AGENTS.md:L29-L29
Useful? React with 👍 / 👎.