feat(market): drop the portfolio modal card panel — float content on the backdrop
Remove the centered glass card behind the Manage-portfolio content so it floats directly on the blurred/opaque full-window backdrop. The little live-preview card keeps its panel (it previews the actual group card). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -415,13 +415,12 @@ static void RenderPortfolioEditor(App* app)
|
||||
ImGui::InvisibleButton("##pfInputBlocker", vpSize,
|
||||
ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle);
|
||||
|
||||
// Card: large, centered, fixed size.
|
||||
// Content region: large, centered, fixed size. No card panel — the content floats directly
|
||||
// on the blurred backdrop.
|
||||
float cardW = std::min(vpSize.x - 64.0f * dp, 1120.0f * dp);
|
||||
float cardH = std::min(vpSize.y - 64.0f * dp, 760.0f * dp);
|
||||
ImVec2 cardMin(vpPos.x + (vpSize.x - cardW) * 0.5f, vpPos.y + (vpSize.y - cardH) * 0.5f);
|
||||
ImVec2 cardMax(cardMin.x + cardW, cardMin.y + cardH);
|
||||
{ GlassPanelSpec cs; cs.rounding = 20.0f; cs.fillAlpha = 40; cs.borderAlpha = 60; cs.borderWidth = 1.0f;
|
||||
DrawGlassPanel(dl, cardMin, cardMax, cs); }
|
||||
|
||||
ImGui::SetCursorScreenPos(cardMin);
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_ChildRounding, 20.0f);
|
||||
|
||||
Reference in New Issue
Block a user