Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
feat(ui): expose player actions and unify glass selectors
Veyra Goal Agentc557d5f62371
diff --git a/CMakeLists.txt b/CMakeLists.txtindex 25151186..8d371c23 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -445,6 +445,11 @@ if(VEYRA_FFMPEG_ROOT AND EXISTS "${VEYRA_FFMPEG_ROOT}/include/libavformat/avformtarget_compile_options(veyra_ui_contract_tests PRIVATE /utf-8)target_compile_definitions(veyra_ui_contract_tests PRIVATE NOMINMAX WIN32_LEAN_AND_MEAN)target_include_directories(veyra_ui_contract_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)+ add_executable(veyra_popup_selector_tests tests/integration/PopupSelectorTests.cpp)+ target_compile_features(veyra_popup_selector_tests PRIVATE cxx_std_20)+ target_compile_options(veyra_popup_selector_tests PRIVATE /utf-8)+ target_compile_definitions(veyra_popup_selector_tests PRIVATE NOMINMAX WIN32_LEAN_AND_MEAN UNICODE _UNICODE)+ target_link_libraries(veyra_popup_selector_tests PRIVATE veyra_base comctl32)add_executable(veyra WIN32 apps/veyra/main.cpp apps/veyra/ui/AppShell.cpp apps/veyra/ui/CapturePanel.cpp apps/veyra/ui/SubtitleOverlay.cpp apps/veyra/SettingsWindow.cpp apps/veyra/TelemetryWindow.cpp)target_compile_features(veyra PRIVATE cxx_std_20)target_compile_options(veyra PRIVATE /utf-8)diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.mdindex 5e966f66..1a44e99e 100644--- a/THIRD_PARTY_NOTICES.md+++ b/THIRD_PARTY_NOTICES.md@@ -9,3 +9,11 @@ Source: https://github.com/FFmpeg/nv-codec-headers ; checkout `eddcea9e27f6b7720The nvEncodeAPI.h header itself has NVIDIA's permissive MIT-style notice (Copyright 2010–2026 NVIDIA Corporation). Its full notice is retained unmodified in that header. This permits using the declarations without retrieving the full developer-portal sample package; it does not grant rights to distribute NVIDIA driver/runtime binaries. Veyra uses the system NVENC library, never copies it into a package. Implementation is independently authored against these declarations; no competitor/sample implementation copied.FFmpeg build: external `C:/veyra-deps/installed/x64-windows`; public distribution requires review of actual configuration and linked components. No license-complete installer has been produced.++## Lucide UI icons++Source: https://github.com/lucide-icons/lucide/tree/a537cb6eb323b885f4c60baf3cec1a995982d167++24 native icon mappings use 23 Lucide SVGs, retained under `assets/icons/lucide/`. Lucide is ISC-licensed (Copyright 2026 Lucide Icons and Contributors); its Feather-derived subset is MIT-licensed (Copyright 2013-present Cole Bemis). The complete upstream notices are preserved in `assets/icons/lucide/LICENSE` and must accompany any distribution containing these icons.++`assets/icons/lucide/manifest.json` records the pinned revision and per-file SHA256. `scripts/generate-lucide-icons.py` converts the SVG geometry to GDI+ paths in `apps/veyra/ui/LucideIcons.h`, using development-only fonttools 4.64.0. Veyra requires no fonttools, network request, icon font or external icon runtime.diff --git a/apps/veyra/ui/AppShell.cpp b/apps/veyra/ui/AppShell.cppindex 325b0d3b..46586779 100644--- a/apps/veyra/ui/AppShell.cpp+++ b/apps/veyra/ui/AppShell.cpp@@ -1,3 +1,4 @@+#include "TransportLayout.h"#include <windows.h>#include "../SettingsWindow.h"#include "Theme.h"@@ -27,7 +28,7 @@#include "veyra/engine/Subtitles.h"namespace {constexpr DWORD ShellStyle=WS_POPUP|WS_THICKFRAME|WS_MINIMIZEBOX|WS_MAXIMIZEBOX|WS_SYSMENU|WS_CLIPCHILDREN;-enum {Open=101,Play,Stop,Save,Nr,Sr,Fg,Seek,Info,Capture,Export,Realtime,Recent,Multiplier,Settings,OriginalHold,CompareToggle,Split,Reference,Fullscreen,ModeSwitch=220,Master,DailyPreset,Volume,Mute,Subtitle,SubtitleLoad,SubtitleSize,ImageOpen,InspectorDrawer,TabEnhance,TabFg,TabPresets,TabExport,JobProgress,Details,Brand,MediaTitle,TimeLabel,EmptyTitle,EmptyHint,ProRailVideo,ProRailCapture,WindowMin,WindowMax,WindowClose,More,VideoSurface=1000};+enum {Open=101,Play,Stop,Save,Nr,Sr,Fg,Seek,Info,Capture,Export,Realtime,Recent,Multiplier,Settings,OriginalHold,CompareToggle,Split,Reference,Fullscreen,ModeSwitch=220,Master,DailyPreset,Volume,Mute,Subtitle,SubtitleLoad,SubtitleSize,ImageOpen,InspectorDrawer,TabEnhance,TabFg,TabPresets,TabExport,JobProgress,Details,Brand,MediaTitle,TimeLabel,EmptyTitle,EmptyHint,ProRailVideo,ProRailCapture,WindowMin,WindowMax,WindowClose,VideoSurface=1000};veyra::engine::EngineController engine;veyra::engine::ExportJobManager exportJob;veyra::ui::UiSessionState uiState;@@ -87,7 +88,7 @@ void switchMode(){const auto start=std::chrono::steady_clock::now();const auto before=engine.snapshot();const auto host=video;if(uiState.mode==veyra::ui::Mode::Daily){uiState.mode=veyra::ui::Mode::Professional;compareMode=uiState.preferredComparison;}else{uiState.mode=veyra::ui::Mode::Daily;uiState.preferredComparison=compareMode;compareMode=0;holdOriginal=false;if(GetCapture())ReleaseCapture();}- updateComparison();if(auto focused=GetFocus();focused&&IsChild(inspector,focused))SetFocus(GetDlgItem(mainWindow,ModeSwitch));SetWindowTextW(GetDlgItem(mainWindow,ModeSwitch),uiState.mode==veyra::ui::Mode::Daily?L"专业模式 →":L"← 返回日常模式");transition.start(uiState.mode==veyra::ui::Mode::Professional,GetTickCount64());if(full)endTransition();else{SetPropW(video,L"Veyra.ResizeDeferUntil",HANDLE(uintptr_t(GetTickCount64()+390)));SetTimer(mainWindow,2,16,nullptr);}layout();veyra::log::info("ui-transition",std::format("started target={} durationMs=240 from={}",uiState.mode==veyra::ui::Mode::Professional,transition.from));+ updateComparison();if(auto focused=GetFocus();focused&&IsChild(inspector,focused))SetFocus(GetDlgItem(mainWindow,ModeSwitch));SetWindowTextW(GetDlgItem(mainWindow,ModeSwitch),uiState.mode==veyra::ui::Mode::Daily?L"专业模式":L"返回日常模式");transition.start(uiState.mode==veyra::ui::Mode::Professional,GetTickCount64());if(full)endTransition();else{SetPropW(video,L"Veyra.ResizeDeferUntil",HANDLE(uintptr_t(GetTickCount64()+390)));SetTimer(mainWindow,2,16,nullptr);}layout();veyra::log::info("ui-transition",std::format("started target={} durationMs=240 from={}",uiState.mode==veyra::ui::Mode::Professional,transition.from));const auto after=engine.snapshot();veyra::log::info("ui-mode",std::format("professional={} hostSame={} sessionSame={} revisionSame={} positionBefore={} positionAfter={} commandMs={:.3f}",uiState.mode==veyra::ui::Mode::Professional,host==video,before.sessionId==after.sessionId,before.desired.revision==after.desired.revision,before.position,after.position,std::chrono::duration<double,std::milli>(std::chrono::steady_clock::now()-start).count()));}void layout(){@@ -99,8 +100,10 @@ void layout(){if(full){if(fullControls)panes.push_back(pane(0,h-88,w,88,1,142));}else if(g.pro){panes.push_back(pane(4,4,64,h-8,22,24));panes.push_back(pane(g.left,g.bottom,g.viewWidth,h-g.bottom-20,20,32));if(g.panelWidth){panes.push_back(pane(g.right,g.top,g.panelWidth,g.viewHeight,20,30));panes.push_back(pane(g.right,g.bottom,g.panelWidth,h-g.bottom-20,20,40));}}else{panes.push_back(pane(0,h-88,w,88,1,32));}- backdrop.render(r.right,r.bottom,g.pro,full,panes);auto batch=BeginDeferWindowPos(80);- auto pos=[&](HWND c,int x,int y,int width,int height,bool show=true){if(!c)return;UINT flags=SWP_NOZORDER|SWP_NOACTIVATE|SWP_NOREDRAW|SWP_NOCOPYBITS|(show?SWP_SHOWWINDOW:SWP_HIDEWINDOW);if(!show&&c!=subtitleLabel){batch=DeferWindowPos(batch,c,nullptr,0,0,0,0,flags|SWP_NOMOVE|SWP_NOSIZE);return;}batch=DeferWindowPos(batch,c,nullptr,dip(mainWindow,x),dip(mainWindow,y),dip(mainWindow,std::max(1,width)),dip(mainWindow,std::max(1,height)),flags);};+ backdrop.render(r.right,r.bottom,g.pro,full,panes);+ struct Placement{HWND child;int x,y,width,height;UINT flags;};std::vector<Placement> placements;+ auto pos=[&](HWND c,int x,int y,int width,int height,bool show=true){if(!c)return;UINT flags=SWP_NOZORDER|SWP_NOACTIVATE|SWP_NOREDRAW|SWP_NOCOPYBITS|(show?SWP_SHOWWINDOW:SWP_HIDEWINDOW);if(!show&&c!=subtitleLabel)flags|=SWP_NOMOVE|SWP_NOSIZE;+ Placement next{c,dip(mainWindow,x),dip(mainWindow,y),dip(mainWindow,std::max(1,width)),dip(mainWindow,std::max(1,height)),flags};auto existing=std::find_if(placements.begin(),placements.end(),[&](const auto& p){return p.child==c;});if(existing==placements.end())placements.push_back(next);else *existing=next;};auto put=[&](int id,int x,int y,int width,int height=36,bool show=true){pos(GetDlgItem(mainWindow,id),x,y,width,height,show);};for(auto entry:toolbar){int id=GetDlgCtrlID(entry.hwnd);if(id!=Open&&id!=Capture&&id!=Recent&&id!=Play&&id!=Stop&&id!=Fullscreen&&id!=OriginalHold&&id!=Split&&id!=CompareToggle&&id!=Reference&&id!=Info)pos(entry.hwnd,0,0,1,1,false);}const bool rightVisible=(pro||transition.running)&&g.panelWidth>0&&!full;settingsVisibility(rightVisible&&pro);@@ -119,15 +122,19 @@ void layout(){const bool transport=!full||fullControls;int barTop=full?h-88:g.bottom;int tx=full?16:g.left+16,tw=full?w-32:g.viewWidth-32;pos(playbackBar,0,h-88,w,88,full&&fullControls);pos(seekBar,full?0:pro?tx:g.left,barTop-5,full?w:pro?tw:g.viewWidth,12,transport&&!target.capture&&!target.image&&!(pro&&showDiagnostics&&!full));surface(seekBar,pro&&!full?panel:cinemaPanel);- put(TimeLabel,tx,barTop+10,tw-8,20,transport);put(MediaTitle,tx+(!pro&&!full?44:0),barTop+38,std::max(80,tw/2-120),28,transport);- put(Open,tx,barTop+34,36,36,!full&&!pro);icon(GetDlgItem(mainWindow,Open),Icon::Video,false);- put(Play,tx+tw/2-22,barTop+32,44,44,transport);put(Stop,tx+tw/2-65,barTop+36,32,36,transport&&tw>=900);- int trailing=(!pro&&!full)?174:0;- put(Mute,tx+tw-238-trailing,barTop+36,32,36,transport&&tw>=980);put(Volume,tx+tw-200-trailing,barTop+46,76,18,transport&&tw>=980);- put(Subtitle,tx+tw-116-trailing,barTop+36,36,36,transport&&tw>=740);put(More,tx+tw-78-trailing,barTop+36,36,36,transport);- put(Fullscreen,tx+tw-40-trailing,barTop+36,36,36,transport);- put(ModeSwitch,pro?w-292:w-168,pro?14:barTop+36,pro?160:156,32,!full);surface(GetDlgItem(mainWindow,ModeSwitch),pro?background:cinemaPanel);- for(int id:{Open,Play,Stop,Mute,Volume,Subtitle,More,Fullscreen,TimeLabel,MediaTitle})surface(GetDlgItem(mainWindow,id),pro&&!full?panel:cinemaPanel);+ const bool daily=!pro&&!full&&!transition.running;TransportLayout controls(tw,daily);+ put(TimeLabel,tx,barTop+10,std::min(300,tw/2),20,transport);+ put(MediaTitle,tx+std::min(310,tw/2),barTop+10,tw-std::min(310,tw/2),20,transport);+ auto slot=[&](int id,TransportSlot item,int height=34,int offset=36){put(id,tx+item.x,barTop+offset,item.width,height,transport&&item.width>0);};+ slot(Open,controls.open);slot(Capture,controls.capture);slot(Recent,controls.recent);if(!full&&pro)put(Recent,12,260,44,44);+ if(daily)slot(Master,controls.master);slot(Sr,controls.sr);+ slot(Play,controls.play,44,30);slot(Stop,controls.stop);slot(Mute,controls.mute);slot(Volume,controls.volume,18,44);slot(Subtitle,controls.subtitle);slot(Fullscreen,controls.fullscreen);+ if(daily){slot(ModeSwitch,controls.mode);slot(WindowMin,controls.minimize);slot(WindowClose,controls.close);}+ else put(ModeSwitch,w-292,14,160,32,!full);+ icon(GetDlgItem(mainWindow,Open),Icon::Video,controls.captions);icon(GetDlgItem(mainWindow,Capture),Icon::Capture,controls.captions);+ icon(GetDlgItem(mainWindow,Master),Icon::Enhance,pro||controls.captions);icon(GetDlgItem(mainWindow,Sr),Icon::Upscale,true);+ icon(GetDlgItem(mainWindow,ModeSwitch),pro?Icon::PanelClose:Icon::PanelOpen,pro||controls.captions);+ for(int id:{Open,Capture,Recent,Master,Sr,Play,Stop,Mute,Volume,Subtitle,Fullscreen,TimeLabel,MediaTitle,ModeSwitch})surface(GetDlgItem(mainWindow,id),pro&&!full?panel:cinemaPanel);put(OriginalHold,tx,barTop+160,96,32,!full&&pro);put(Split,tx+102,barTop+160,92,32,!full&&pro);put(CompareToggle,tx+200,barTop+160,96,32,!full&&pro&&tw>=600);put(Reference,tx+(tw>=600?302:200),barTop+160,std::min(172,tw-(tw>=600?302:200)-88),180,!full&&pro&&tw>=500);put(Details,tx+tw-76,barTop+160,76,32,!full&&pro);put(Info,12,h-66,44,44,!full&&pro);pos(metricLabel,tx,barTop+212,tw,120,!full&&pro&&uiState.diagnostics);@@ -136,31 +143,29 @@ void layout(){for(int id:{EmptyTitle,EmptyHint})surface(GetDlgItem(mainWindow,id),background);pos(subtitleLabel,full?20:g.left+20,full?h-(fullControls?202:118):g.top+g.viewHeight-118,full?w-40:g.viewWidth-40,108,uiState.subtitles&&GetWindowTextLengthW(subtitleLabel)>0);put(JobProgress,tx,barTop+10,std::min(300,tw),24,exportJob.poll().state!=veyra::engine::ExportState::Idle&&!full);- EndDeferWindowPos(batch);+ // Each HWND enters the batch once. Mixing HIDE/SHOW entries for a child+ // causes DeferWindowPos to preserve the earlier hide flag on Windows.+ auto batch=BeginDeferWindowPos(int(placements.size()));for(const auto& p:placements){if(!batch)break;batch=DeferWindowPos(batch,p.child,nullptr,p.x,p.y,p.width,p.height,p.flags);}+ if(batch)EndDeferWindowPos(batch);else for(const auto& p:placements)SetWindowPos(p.child,nullptr,p.x,p.y,p.width,p.height,p.flags);auto front=[&](HWND child){if(child&&IsWindowVisible(child))SetWindowPos(child,HWND_TOP,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE|SWP_NOREDRAW);};- front(playbackBar);for(int id:{Open,Play,Stop,Mute,Volume,Subtitle,More,Fullscreen,TimeLabel,MediaTitle,ModeSwitch,JobProgress,EmptyTitle,EmptyHint})front(GetDlgItem(mainWindow,id));front(inspector);front(subtitleLabel);if(showDiagnostics&&pro&&!full)front(diagnosticPanel);+ front(playbackBar);for(int id:{Open,Capture,Recent,Master,Sr,Play,Stop,Mute,Volume,Subtitle,Fullscreen,WindowMin,WindowClose,TimeLabel,MediaTitle,ModeSwitch,JobProgress,EmptyTitle,EmptyHint})front(GetDlgItem(mainWindow,id));front(inspector);front(subtitleLabel);if(showDiagnostics&&pro&&!full)front(diagnosticPanel);if(auto focused=GetFocus();focused&&IsChild(mainWindow,focused)&&!IsWindowVisible(focused))SetFocus(mainWindow);RedrawWindow(mainWindow,nullptr,nullptr,RDW_INVALIDATE|RDW_ALLCHILDREN);if(smokeDual)veyra::log::info("ui-layout-timing",std::format("frameMs={:.3f} animation={}",std::chrono::duration<double,std::milli>(std::chrono::steady_clock::now()-layoutBegin).count(),transition.running));}-void moreMenu(){- using namespace veyra::ui;HMENU menu=CreatePopupMenu();auto s=engine.snapshot();- AppendMenuW(menu,MF_STRING,Open,L"打开视频 / 图片…");AppendMenuW(menu,MF_STRING,Capture,L"连接采集卡…");AppendMenuW(menu,MF_STRING,Recent,L"最近打开");AppendMenuW(menu,MF_SEPARATOR,0,nullptr);- AppendMenuW(menu,MF_STRING|(uiState.enhanced?MF_CHECKED:0),Master,L"总增强");AppendMenuW(menu,MF_STRING|(s.desired.sr?MF_CHECKED:0),Sr,L"DLSS 超分辨率 · 4K");- AppendMenuW(menu,MF_STRING,ModeSwitch,uiState.mode==Mode::Daily?L"展开专业模式":L"收起专业模式");AppendMenuW(menu,MF_SEPARATOR,0,nullptr);AppendMenuW(menu,MF_STRING,WindowMin,L"最小化");AppendMenuW(menu,MF_STRING,WindowClose,L"退出播放器");- RECT r{};GetWindowRect(GetDlgItem(mainWindow,More),&r);menuOpen=true;int command=int(TrackPopupMenu(menu,TPM_RETURNCMD|TPM_BOTTOMALIGN,r.left,r.top,0,mainWindow,nullptr));menuOpen=false;DestroyMenu(menu);- if(command==Sr)SendMessageW(mainWindow,WM_APP+44,201,s.desired.sr?BST_UNCHECKED:BST_CHECKED);else if(command)SendMessageW(mainWindow,WM_COMMAND,command,0);pointerActivity();+void subtitleMenu(){+ using namespace veyra::ui;std::vector<PopupOption> options={{Subtitle,uiState.subtitles?L"字幕 · 已开启":L"字幕 · 已关闭",Icon::Subtitle,uiState.subtitles},{SubtitleLoad,L"载入外部 SRT…",Icon::Load},{SubtitleSize,L"切换字幕字号",Icon::Type}};+ menuOpen=true;const int selected=popupSelector(GetDlgItem(mainWindow,Subtitle),options,0,true,L"字幕设置");menuOpen=false;+ if(selected>=0)SendMessageW(mainWindow,WM_COMMAND,options[selected].command,0);pointerActivity();}--void subtitleMenu(){HMENU menu=CreatePopupMenu();AppendMenuW(menu,MF_STRING|(uiState.subtitles?MF_CHECKED:0),Subtitle,L"显示字幕");AppendMenuW(menu,MF_STRING,SubtitleLoad,L"载入外部 SRT…");AppendMenuW(menu,MF_STRING,SubtitleSize,L"切换字幕字号");RECT r{};GetWindowRect(GetDlgItem(mainWindow,Subtitle),&r);menuOpen=true;TrackPopupMenu(menu,TPM_LEFTALIGN|TPM_BOTTOMALIGN,r.left,r.top,0,mainWindow,nullptr);menuOpen=false;DestroyMenu(menu);pointerActivity();}void startVideoExport(bool hevc){auto s=engine.snapshot();if(currentFile.empty()||s.capture||s.image||!s.frames||s.applying||s.failed||exportJob.poll().active())return;wchar_t name[32768]{};OPENFILENAMEW d{sizeof(d)};d.hwndOwner=mainWindow;d.lpstrFile=name;d.nMaxFile=32768;d.lpstrFilter=L"MP4视频\0*.mp4\0";d.lpstrDefExt=L"mp4";d.Flags=OFN_EXPLORER|OFN_NOCHANGEDIR|OFN_PATHMUSTEXIST|OFN_OVERWRITEPROMPT;if(GetSaveFileNameW(&d)){exportJob.start(currentFile,name,s.applied,hevc);jobPaused=false;layout();}}#include "UiRepairChecks.h"LRESULT CALLBACK proc(HWND hwnd,UINT msg,WPARAM wp,LPARAM lp){switch(msg){case WM_CREATE:{mainWindow=hwnd;backdrop.attach(hwnd);font=veyra::ui::makeFont(hwnd);veyra::ui::titleTheme(hwnd);uiState.configured=initialOptions.snapshot();-control(L"BUTTON",L"打开视频",Open,BS_PUSHBUTTON,10,10,150,30);control(L"BUTTON",L"播放",Play,BS_PUSHBUTTON,168,10,68,30);control(L"BUTTON",L"停止",Stop,BS_PUSHBUTTON,244,10,62,30);control(L"BUTTON",L"保存图片",Save,BS_PUSHBUTTON,314,10,95,30);-control(L"BUTTON",L"DLSS5 NR",Nr,BS_AUTOCHECKBOX,425,10,110,30);control(L"BUTTON",L"SR 4K",Sr,BS_AUTOCHECKBOX,518,10,78,30);control(L"BUTTON",L"补帧",Fg,BS_AUTOCHECKBOX,600,10,78,30);CheckDlgButton(hwnd,Nr,BST_CHECKED);+control(L"BUTTON",L"打开",Open,BS_PUSHBUTTON,10,10,150,30);control(L"BUTTON",L"播放",Play,BS_PUSHBUTTON,168,10,68,30);control(L"BUTTON",L"停止",Stop,BS_PUSHBUTTON,244,10,62,30);control(L"BUTTON",L"保存图片",Save,BS_PUSHBUTTON,314,10,95,30);+control(L"BUTTON",L"DLSS5 NR",Nr,BS_AUTOCHECKBOX,425,10,110,30);control(L"BUTTON",L"SR",Sr,BS_AUTOCHECKBOX,518,10,78,30);control(L"BUTTON",L"补帧",Fg,BS_AUTOCHECKBOX,600,10,78,30);CheckDlgButton(hwnd,Nr,BST_CHECKED);control(L"BUTTON",L"采集",Capture,BS_PUSHBUTTON,690,10,75,30);control(L"BUTTON",L"导出视频",Export,BS_PUSHBUTTON,773,10,103,30);control(L"BUTTON",L"性能/诊断",Info,BS_PUSHBUTTON,884,10,100,30);control(L"BUTTON",L"实时NR档",Realtime,BS_AUTOCHECKBOX,952,10,100,30);control(L"BUTTON",L"最近打开",Recent,BS_PUSHBUTTON,1072,10,75,30);@@ -169,14 +174,14 @@ control(L"BUTTON",L"参数与预设",Settings,BS_PUSHBUTTON,1225,10,100,30);auto original=control(L"BUTTON",L"按住原图 V",OriginalHold,BS_PUSHBUTTON,0,0,110,30);SetWindowSubclass(original,interaction,OriginalHold,0);control(L"BUTTON",L"原图/增强切换",CompareToggle,BS_PUSHBUTTON,0,0,120,30);control(L"BUTTON",L"分屏拖动",Split,BS_PUSHBUTTON,0,0,95,30);auto ref=control(L"COMBOBOX",L"",Reference,CBS_DROPDOWNLIST,0,0,170,180);for(auto label:{L"对比:输入原画",L"对比:增强前底图"})SendMessageW(ref,CB_ADDSTRING,0,reinterpret_cast<LPARAM>(label));SendMessageW(ref,CB_SETCURSEL,0,0);control(L"BUTTON",L"全屏",Fullscreen,BS_PUSHBUTTON,0,0,108,30);-control(L"BUTTON",L"设置与来源",More,BS_PUSHBUTTON,0,0,36,36);veyra::ui::icon(GetDlgItem(hwnd,More),veyra::ui::Icon::Settings);+WNDCLASSW barClass{};barClass.lpfnWndProc=barProc;barClass.hInstance=GetModuleHandleW(nullptr);barClass.lpszClassName=L"VeyraPlaybackBar";barClass.hCursor=LoadCursorW(nullptr,IDC_ARROW);RegisterClassW(&barClass);playbackBar=CreateWindowExW(0,barClass.lpszClassName,L"播放控制条",WS_CHILD|WS_CLIPSIBLINGS,0,0,1,1,hwnd,nullptr,barClass.hInstance,nullptr);subtitleLabel=veyra::ui::createSubtitleOverlay(hwnd);video=control(L"STATIC",L"",VideoSurface,SS_BLACKRECT|SS_NOTIFY,8,52,1100,610);seekBar=control(TRACKBAR_CLASSW,L"",Seek,TBS_HORZ,8,675,1100,24);SendMessageW(seekBar,TBM_SETRANGE,TRUE,MAKELPARAM(0,10000));statusBar=control(L"STATIC",L"打开本地视频或PNG/JPEG。本地实验运行时,非NVIDIA官方产品。",0,SS_LEFT,12,708,1080,36);SetWindowSubclass(video,interaction,VideoSurface,0);control(L"STATIC",L"V E Y R A",Brand,SS_CENTER,0,0,100,30);-control(L"BUTTON",L"切换专业模式 →",ModeSwitch,BS_PUSHBUTTON,0,0,164,36);veyra::ui::marked(GetDlgItem(hwnd,ModeSwitch));+control(L"BUTTON",L"专业模式",ModeSwitch,BS_PUSHBUTTON,0,0,164,36);control(L"BUTTON",L"增强已开启",Master,BS_PUSHBUTTON,0,0,126,36);control(L"COMBOBOX",L"",DailyPreset,CBS_DROPDOWNLIST,0,0,180,200);control(L"BUTTON",L"视频",ProRailVideo,BS_PUSHBUTTON,0,0,64,44);control(L"BUTTON",L"采集",ProRailCapture,BS_PUSHBUTTON,0,0,64,44);control(L"BUTTON",L"图片",ImageOpen,BS_PUSHBUTTON,0,0,64,44);control(L"BUTTON",L"参数",InspectorDrawer,BS_PUSHBUTTON,0,0,84,36);@@ -189,8 +194,9 @@ control(L"BUTTON",L"最小化",WindowMin,BS_PUSHBUTTON,0,0,32,32);control(L"BUTTusing veyra::ui::Icon;veyra::ui::icon(GetDlgItem(hwnd,WindowMin),Icon::Minimize);veyra::ui::icon(GetDlgItem(hwnd,WindowMax),Icon::Maximize);veyra::ui::icon(GetDlgItem(hwnd,WindowClose),Icon::Close);veyra::ui::icon(GetDlgItem(hwnd,Play),Icon::Play);veyra::ui::icon(GetDlgItem(hwnd,Stop),Icon::Stop);veyra::ui::icon(GetDlgItem(hwnd,Mute),Icon::Volume);veyra::ui::icon(GetDlgItem(hwnd,Subtitle),Icon::Subtitle);veyra::ui::icon(GetDlgItem(hwnd,Fullscreen),Icon::Fullscreen);veyra::ui::icon(GetDlgItem(hwnd,ProRailVideo),Icon::Video);veyra::ui::icon(GetDlgItem(hwnd,ProRailCapture),Icon::Capture);veyra::ui::icon(GetDlgItem(hwnd,ImageOpen),Icon::Image);veyra::ui::icon(GetDlgItem(hwnd,Info),Icon::Subtitle);-veyra::ui::icon(GetDlgItem(hwnd,Open),Icon::Video,true);veyra::ui::icon(GetDlgItem(hwnd,Capture),Icon::Capture,true);-for(int id:{Open,Capture,Recent,WindowMin,WindowMax,WindowClose,Stop,Mute,Subtitle,Fullscreen,ProRailVideo,ProRailCapture,ImageOpen,Info})veyra::ui::ghost(GetDlgItem(hwnd,id));+veyra::ui::icon(GetDlgItem(hwnd,Recent),Icon::Recent);veyra::ui::icon(GetDlgItem(hwnd,Open),Icon::Video,true);veyra::ui::icon(GetDlgItem(hwnd,Capture),Icon::Capture,true);+for(int id:{Open,Capture,Recent,Master,Sr,ModeSwitch,WindowMin,WindowMax,WindowClose,Stop,Mute,Subtitle,Fullscreen,ProRailVideo,ProRailCapture,ImageOpen,Info})veyra::ui::ghost(GetDlgItem(hwnd,id));+SetPropW(GetDlgItem(hwnd,Open),L"veyra.tip",HANDLE(L"打开视频 / 图片 · Ctrl+O"));SetPropW(GetDlgItem(hwnd,Capture),L"veyra.tip",HANDLE(L"连接采集卡"));SetPropW(GetDlgItem(hwnd,Sr),L"veyra.tip",HANDLE(L"DLSS 超分辨率 · 按比例提升,最高 3840×2160"));inspector=veyra::ui::createSettingsPanel(hwnd,engine,applySettings);selectInspector(uiPreferences.inspector);refreshDailyPresets();SendDlgItemMessageW(hwnd,Volume,TBM_SETPOS,TRUE,LPARAM(uiPreferences.volume*100));veyra::ui::marked(GetDlgItem(hwnd,Play));tooltips=CreateWindowExW(WS_EX_TOPMOST,TOOLTIPS_CLASSW,nullptr,WS_POPUP|TTS_ALWAYSTIP|TTS_NOPREFIX,0,0,0,0,hwnd,nullptr,GetModuleHandleW(nullptr),nullptr);SendMessageW(tooltips,TTM_SETMAXTIPWIDTH,0,360);EnumChildWindows(hwnd,[](HWND child,LPARAM context)->BOOL{auto tip=reinterpret_cast<HWND>(context);wchar_t cls[32]{};GetClassNameW(child,cls,32);if(_wcsicmp(cls,L"BUTTON")==0||_wcsicmp(cls,L"EDIT")==0||_wcsicmp(cls,L"COMBOBOX")==0){TOOLINFOW info{sizeof(info)};info.uFlags=TTF_IDISHWND|TTF_SUBCLASS;info.hwnd=GetAncestor(child,GA_ROOT);info.uId=UINT_PTR(child);info.lpszText=LPSTR_TEXTCALLBACKW;SendMessageW(tip,TTM_ADDTOOLW,0,LPARAM(&info));}return TRUE;},LPARAM(tooltips));if(smokeSeconds>0)startTick=GetTickCount64();diagnosticPanel=veyra::ui::createTelemetryPanel(hwnd,engine);DragAcceptFiles(hwnd,TRUE);SetTimer(hwnd,1,100,nullptr);layout();return 0;}@@ -217,7 +223,7 @@ case WM_SIZE:if(wp!=SIZE_MINIMIZED){endTransition();layout();}return 0;case WM_DROPFILES:{wchar_t file[32768]{};DragQueryFileW(reinterpret_cast<HDROP>(wp),0,file,32768);DragFinish(reinterpret_cast<HDROP>(wp));openFile(file);layout();return 0;}case WM_COMMAND:switch(LOWORD(wp)){case Open:case ProRailVideo:case ImageOpen:openFile(fileDialog(false));layout();break;-case More:moreMenu();break;+case ModeSwitch:switchMode();break;case WindowMin:ShowWindow(hwnd,SW_MINIMIZE);break;case WindowMax:toggleFullscreen();break;case WindowClose:SendMessageW(hwnd,WM_CLOSE,0,0);break;case Master:if(masterPendingRevision)break;masterPreviousEnabled=uiState.enhanced;if(uiState.enhanced)uiState.configured=engine.snapshot().desired;uiState.enhanced=!uiState.enhanced;veyra::ui::settingsEnabled(uiState.enhanced,uiState.configured);engine.requestSettings(uiState.effective());if(auto pending=engine.snapshot();pending.running){masterPendingRevision=pending.desired.revision;masterPendingSession=pending.sessionId;}break;@@ -234,7 +240,8 @@ case Recent:{wchar_t recent[32768]{};GetPrivateProfileStringW(L"Player",L"最近case Play:{auto s=engine.snapshot();if(s.capture||s.image||s.transport==veyra::engine::TransportState::Opening||s.transport==veyra::engine::TransportState::Stopping)break;if(!currentFile.empty()&&(!s.running||s.transport==veyra::engine::TransportState::Ended)){openFile(currentFile);break;}paused=s.transport==veyra::engine::TransportState::Playing;engine.pause(paused);SetWindowTextW(GetDlgItem(hwnd,Play),paused?L"播放":L"暂停");break;}case Stop:engine.stop();break;case Save:{auto name=fileDialog(true);if(!name.empty())engine.saveFrame(name);break;}-case Multiplier:case Realtime:case Nr:case Sr:case Fg:{auto changed=engine.snapshot().desired;const auto id=LOWORD(wp);+case Sr:SendMessageW(hwnd,WM_APP+44,201,IsDlgButtonChecked(hwnd,Sr));break;+case Multiplier:case Realtime:case Nr:case Fg:{auto changed=engine.snapshot().desired;const auto id=LOWORD(wp);if(id==Nr)changed.nr=IsDlgButtonChecked(hwnd,Nr)==BST_CHECKED;if(id==Sr)changed.sr=IsDlgButtonChecked(hwnd,Sr)==BST_CHECKED;if(id==Realtime)changed.nrPolicy=IsDlgButtonChecked(hwnd,Realtime)==BST_CHECKED?veyra::pipeline::NrSizePolicy::Realtime:veyra::pipeline::NrSizePolicy::Native;@@ -262,7 +269,7 @@ case WM_ACTIVATEAPP:if(!wp){holdOriginal=false;updateComparison();}break;case WM_DPICHANGED:{auto rect=reinterpret_cast<RECT*>(lp);if(!full)SetWindowPos(hwnd,nullptr,rect->left,rect->top,rect->right-rect->left,rect->bottom-rect->top,SWP_NOZORDER|SWP_NOACTIVATE);auto oldFont=font;font=CreateFontW(-MulDiv(15,HIWORD(wp),96),0,0,0,FW_NORMAL,0,0,0,DEFAULT_CHARSET,0,0,CLEARTYPE_QUALITY,0,L"Microsoft YaHei UI");EnumChildWindows(hwnd,[](HWND c,LPARAM f)->BOOL{SendMessageW(c,WM_SETFONT,WPARAM(f),TRUE);return TRUE;},LPARAM(font));DeleteObject(oldFont);DeleteObject(emptyFont);emptyFont=veyra::ui::makeFont(hwnd,26);SendDlgItemMessageW(hwnd,EmptyTitle,WM_SETFONT,WPARAM(emptyFont),TRUE);veyra::ui::settingsDpi();veyra::ui::telemetryDpi();layout();return 0;}case WM_TIMER:{if(wp==2){transition.sample(GetTickCount64());if(!transition.running){endTransition();veyra::log::info("ui-transition","completed; final layout and swapchain resize released");}layout();return 0;}-if(full&&fullControls&&!menuOpen&&!GetCapture()&&GetTickCount64()-pointerTick>1600){POINT p{};GetCursorPos(&p);ScreenToClient(hwnd,&p);RECT r{};GetClientRect(hwnd,&r);if(p.y<r.bottom-veyra::ui::dip(hwnd,88)||p.x<0||p.x>=r.right||p.y>=r.bottom){fullControls=false;layout();if(GetForegroundWindow()==hwnd)SetCursor(nullptr);veyra::log::info("ui-fullscreen","controls hidden; video and subtitles only");}}+if(full&&fullControls&&!menuOpen&&!veyra::ui::popupSelectorOpen()&&!GetCapture()&&GetTickCount64()-pointerTick>1600){POINT p{};GetCursorPos(&p);ScreenToClient(hwnd,&p);RECT r{};GetClientRect(hwnd,&r);if(p.y<r.bottom-veyra::ui::dip(hwnd,88)||p.x<0||p.x>=r.right||p.y>=r.bottom){fullControls=false;layout();if(GetForegroundWindow()==hwnd)SetCursor(nullptr);veyra::log::info("ui-fullscreen","controls hidden; video and subtitles only");}}if(closing){if(engine.idle()&&!exportJob.poll().active()){KillTimer(hwnd,1);DestroyWindow(hwnd);}return 0;}if(!autoInput.empty()){auto file=autoInput;autoInput.clear();openFile(file);startTick=GetTickCount64();}if(smokeControls&&startTick){const auto elapsed=GetTickCount64()-startTick;if(smokeStep==0&&elapsed>2200){engine.pause(true);smokeStep=1;}if(smokeStep==1&&elapsed>2600){engine.seek(1.0);smokeStep=2;}@@ -277,8 +284,9 @@ using namespace veyra::ui;if(uiState.enhanced&&s.frames>0&&!s.applying&&!s.failed){lastSuccessful=s.applied;haveSuccessful=true;}if(masterPendingRevision&&!s.applying){if(s.sessionId==masterPendingSession&&s.rejectedRevision==masterPendingRevision&&s.desired.revision<masterPendingRevision){uiState.enhanced=masterPreviousEnabled;settingsEnabled(uiState.enhanced,uiState.configured);veyra::log::warn("ui-master","transaction rolled back; UI restored to actual enabled state");}masterPendingRevision=0;}setText(GetDlgItem(hwnd,Master),masterPendingRevision?L"正在应用…":uiState.enhanced?L"增强已开启":L"增强已关闭");selected(GetDlgItem(hwnd,Master),uiState.enhanced);+CheckDlgButton(hwnd,Sr,(uiState.enhanced&&s.desired.sr)?BST_CHECKED:BST_UNCHECKED);EnableWindow(GetDlgItem(hwnd,Sr),!masterPendingRevision);EnableWindow(GetDlgItem(hwnd,Master),!masterPendingRevision);veyra::ui::icon(GetDlgItem(hwnd,Play),s.transport==veyra::engine::TransportState::Playing?veyra::ui::Icon::Pause:veyra::ui::Icon::Play);veyra::ui::icon(GetDlgItem(hwnd,Mute),s.muted?veyra::ui::Icon::Muted:veyra::ui::Icon::Volume);-setText(GetDlgItem(hwnd,Play),s.transport==veyra::engine::TransportState::Paused||s.transport==veyra::engine::TransportState::Ended||!s.running?L"▶":L"Ⅱ");+setText(GetDlgItem(hwnd,Play),s.transport==veyra::engine::TransportState::Playing?L"暂停":L"播放");setText(GetDlgItem(hwnd,Mute),!s.audioAvailable?L"无音轨":s.muted?L"静音":L"音量");EnableWindow(GetDlgItem(hwnd,Volume),s.audioAvailable);EnableWindow(GetDlgItem(hwnd,Mute),s.audioAvailable);EnableWindow(seekBar,s.running&&!s.capture&&!s.image&&s.duration>0);ShowWindow(seekBar,(!full||fullControls)&&!s.capture&&!s.image&&!(showDiagnostics&&uiState.mode==veyra::ui::Mode::Professional&&!full)?SW_SHOW:SW_HIDE);EnableWindow(GetDlgItem(hwnd,Play),!currentFile.empty()&&!s.capture&&!s.image);EnableWindow(GetDlgItem(hwnd,Stop),s.running);setText(GetDlgItem(hwnd,MediaTitle),currentFile.empty()?L"尚未打开媒体":s.capture?L"采集卡 · LIVE":std::filesystem::path(currentFile).filename().wstring());diff --git a/apps/veyra/ui/LucideIcons.h b/apps/veyra/ui/LucideIcons.hnew file mode 100644index 00000000..00dbdd14--- /dev/null+++ b/apps/veyra/ui/LucideIcons.h@@ -0,0 +1,389 @@+// Generated by scripts/generate-lucide-icons.py. Do not hand edit.+// Lucide ISC + Feather MIT; full notices: assets/icons/lucide/LICENSE.+#pragma once+#include "GlassMaterial.h"+namespace veyra::ui {+enum class Icon { None,Play,Pause,Stop,Volume,Muted,Fullscreen,Video,Capture,Image,Subtitle,Minimize,Maximize,Close,Back,Settings,Recent,Enhance,Upscale,PanelOpen,PanelClose,Check,Chevron,Load,Type };+inline void drawIcon(HDC dc,Icon icon,float x,float y,float size,COLORREF c){+using namespace Gdiplus; AlphaGraphics drawing(dc);auto& g=drawing.get();+g.SetSmoothingMode(SmoothingModeAntiAlias);g.TranslateTransform(x-size/2,y-size/2);g.ScaleTransform(size/24,size/24);+Pen pen(Color(255,GetRValue(c),GetGValue(c),GetBValue(c)),1.8f);pen.SetStartCap(LineCapRound);pen.SetEndCap(LineCapRound);pen.SetLineJoin(LineJoinRound);GraphicsPath p;switch(icon){+case Icon::Play: // play.svg+p.StartFigure();+p.AddBezier(5.0000000f,5.0000000f,4.9997877f,4.2837103f,5.3826522f,3.6219976f,6.0037510f,3.2651962f);+p.AddBezier(6.0037510f,3.2651962f,6.6248498f,2.9083947f,7.3893380f,2.9109899f,8.0080000f,3.2720000f);+p.AddLine(8.0080000f,3.2720000f,20.0050000f,10.2700000f);+p.AddBezier(20.0050000f,10.2700000f,20.6211440f,10.6275197f,21.0006171f,11.2857794f,21.0012351f,11.9981370f);+p.AddBezier(21.0012351f,11.9981370f,21.0018531f,12.7104947f,20.6235228f,13.3694118f,20.0080000f,13.7280000f);+p.AddLine(20.0080000f,13.7280000f,8.0080000f,20.7280000f);+p.AddBezier(8.0080000f,20.7280000f,7.3893380f,21.0890101f,6.6248498f,21.0916053f,6.0037510f,20.7348038f);+p.AddBezier(6.0037510f,20.7348038f,5.3826522f,20.3780024f,4.9997877f,19.7162897f,5.0000000f,19.0000000f);+p.AddLine(5.0000000f,19.0000000f,5.0000000f,5.0000000f);+p.CloseFigure();+break;+case Icon::Pause: // pause.svg+p.StartFigure();+p.AddLine(15.0000000f,3.0000000f,18.0000000f,3.0000000f);+p.AddBezier(18.0000000f,3.0000000f,18.5522847f,3.0000000f,19.0000000f,3.4477153f,19.0000000f,4.0000000f);+p.AddLine(19.0000000f,4.0000000f,19.0000000f,20.0000000f);+p.AddBezier(19.0000000f,20.0000000f,19.0000000f,20.5522847f,18.5522847f,21.0000000f,18.0000000f,21.0000000f);+p.AddLine(18.0000000f,21.0000000f,15.0000000f,21.0000000f);+p.AddBezier(15.0000000f,21.0000000f,14.4477153f,21.0000000f,14.0000000f,20.5522847f,14.0000000f,20.0000000f);+p.AddLine(14.0000000f,20.0000000f,14.0000000f,4.0000000f);+p.AddBezier(14.0000000f,4.0000000f,14.0000000f,3.4477153f,14.4477153f,3.0000000f,15.0000000f,3.0000000f);+p.CloseFigure();+p.StartFigure();+p.AddLine(6.0000000f,3.0000000f,9.0000000f,3.0000000f);+p.AddBezier(9.0000000f,3.0000000f,9.5522847f,3.0000000f,10.0000000f,3.4477153f,10.0000000f,4.0000000f);+p.AddLine(10.0000000f,4.0000000f,10.0000000f,20.0000000f);+p.AddBezier(10.0000000f,20.0000000f,10.0000000f,20.5522847f,9.5522847f,21.0000000f,9.0000000f,21.0000000f);+p.AddLine(9.0000000f,21.0000000f,6.0000000f,21.0000000f);+p.AddBezier(6.0000000f,21.0000000f,5.4477153f,21.0000000f,5.0000000f,20.5522847f,5.0000000f,20.0000000f);+p.AddLine(5.0000000f,20.0000000f,5.0000000f,4.0000000f);+p.AddBezier(5.0000000f,4.0000000f,5.0000000f,3.4477153f,5.4477153f,3.0000000f,6.0000000f,3.0000000f);+p.CloseFigure();+break;+case Icon::Stop: // square.svg+p.StartFigure();+p.AddLine(5.0000000f,3.0000000f,19.0000000f,3.0000000f);+p.AddBezier(19.0000000f,3.0000000f,20.1045695f,3.0000000f,21.0000000f,3.8954305f,21.0000000f,5.0000000f);+p.AddLine(21.0000000f,5.0000000f,21.0000000f,19.0000000f);+p.AddBezier(21.0000000f,19.0000000f,21.0000000f,20.1045695f,20.1045695f,21.0000000f,19.0000000f,21.0000000f);+p.AddLine(19.0000000f,21.0000000f,5.0000000f,21.0000000f);+p.AddBezier(5.0000000f,21.0000000f,3.8954305f,21.0000000f,3.0000000f,20.1045695f,3.0000000f,19.0000000f);+p.AddLine(3.0000000f,19.0000000f,3.0000000f,5.0000000f);+p.AddBezier(3.0000000f,5.0000000f,3.0000000f,3.8954305f,3.8954305f,3.0000000f,5.0000000f,3.0000000f);+p.CloseFigure();+break;+case Icon::Volume: // volume-2.svg+p.StartFigure();+p.AddBezier(11.0000000f,4.7020000f,10.9995882f,4.4171710f,10.8278255f,4.1605707f,10.5646544f,4.0516270f);+p.AddBezier(10.5646544f,4.0516270f,10.3014833f,3.9426834f,9.9986104f,4.0028011f,9.7970000f,4.2040000f);+p.AddLine(9.7970000f,4.2040000f,6.4130000f,7.5870000f);+p.AddBezier(6.4130000f,7.5870000f,6.1492102f,7.8523673f,5.7901706f,8.0010968f,5.4160000f,8.0000000f);+p.AddLine(5.4160000f,8.0000000f,3.0000000f,8.0000000f);+p.AddBezier(3.0000000f,8.0000000f,2.4477153f,8.0000000f,2.0000000f,8.4477153f,2.0000000f,9.0000000f);+p.AddLine(2.0000000f,9.0000000f,2.0000000f,15.0000000f);+p.AddBezier(2.0000000f,15.0000000f,2.0000000f,15.5522847f,2.4477153f,16.0000000f,3.0000000f,16.0000000f);+p.AddLine(3.0000000f,16.0000000f,5.4160000f,16.0000000f);+p.AddBezier(5.4160000f,16.0000000f,5.7901706f,15.9989032f,6.1492102f,16.1476327f,6.4130000f,16.4130000f);+p.AddLine(6.4130000f,16.4130000f,9.7960000f,19.7970000f);+p.AddBezier(9.7960000f,19.7970000f,9.9976453f,19.9990427f,10.3012251f,20.0595517f,10.5649249f,19.9502608f);+p.AddBezier(10.5649249f,19.9502608f,10.8286248f,19.8409699f,11.0003970f,19.5834504f,11.0000000f,19.2980000f);+p.AddLine(11.0000000f,19.2980000f,11.0000000f,4.7020000f);+p.CloseFigure();+p.StartFigure();+p.AddBezier(16.0000000f,9.0000000f,17.3333333f,10.7777778f,17.3333333f,13.2222222f,16.0000000f,15.0000000f);+p.StartFigure();+p.AddBezier(19.3640000f,18.3640000f,22.8787706f,14.8492725f,22.8787706f,9.1507275f,19.3640000f,5.6360000f);+break;+case Icon::Muted: // volume-x.svg+p.StartFigure();+p.AddBezier(11.0000000f,4.7020000f,11.0046281f,4.4147495f,10.8332746f,4.1538348f,10.5678321f,4.0439509f);+p.AddBezier(10.5678321f,4.0439509f,10.3023895f,3.9340669f,9.9967566f,3.9975260f,9.7970000f,4.2040000f);+p.AddLine(9.7970000f,4.2040000f,6.4130000f,7.5870000f);+p.AddBezier(6.4130000f,7.5870000f,6.1492102f,7.8523673f,5.7901706f,8.0010968f,5.4160000f,8.0000000f);+p.AddLine(5.4160000f,8.0000000f,3.0000000f,8.0000000f);+p.AddBezier(3.0000000f,8.0000000f,2.4477153f,8.0000000f,2.0000000f,8.4477153f,2.0000000f,9.0000000f);+p.AddLine(2.0000000f,9.0000000f,2.0000000f,15.0000000f);+p.AddBezier(2.0000000f,15.0000000f,2.0000000f,15.5522847f,2.4477153f,16.0000000f,3.0000000f,16.0000000f);+p.AddLine(3.0000000f,16.0000000f,5.4160000f,16.0000000f);+p.AddBezier(5.4160000f,16.0000000f,5.7901706f,15.9989032f,6.1492102f,16.1476327f,6.4130000f,16.4130000f);+p.AddLine(6.4130000f,16.4130000f,9.7960000f,19.7970000f);+p.AddBezier(9.7960000f,19.7970000f,9.9957675f,20.0043681f,10.3021391f,20.0682549f,10.5681372f,19.9580115f);+p.AddBezier(10.5681372f,19.9580115f,10.8341354f,19.8477681f,11.0054915f,19.5858862f,11.0000000f,19.2980000f);+p.AddLine(11.0000000f,19.2980000f,11.0000000f,4.7020000f);+p.CloseFigure();+p.StartFigure();+p.AddLine(16.5000000f,14.5000000f,21.5000000f,9.5000000f);+p.StartFigure();+p.AddLine(16.5000000f,9.5000000f,21.5000000f,14.5000000f);+break;+case Icon::Fullscreen: // maximize.svg+p.StartFigure();+p.AddLine(8.0000000f,3.0000000f,5.0000000f,3.0000000f);+p.AddBezier(5.0000000f,3.0000000f,3.8954305f,3.0000000f,3.0000000f,3.8954305f,3.0000000f,5.0000000f);+p.AddLine(3.0000000f,5.0000000f,3.0000000f,8.0000000f);+p.StartFigure();+p.AddLine(21.0000000f,8.0000000f,21.0000000f,5.0000000f);+p.AddBezier(21.0000000f,5.0000000f,21.0000000f,3.8954305f,20.1045695f,3.0000000f,19.0000000f,3.0000000f);+p.AddLine(19.0000000f,3.0000000f,16.0000000f,3.0000000f);+p.StartFigure();+p.AddLine(3.0000000f,16.0000000f,3.0000000f,19.0000000f);+p.AddBezier(3.0000000f,19.0000000f,3.0000000f,20.1045695f,3.8954305f,21.0000000f,5.0000000f,21.0000000f);+p.AddLine(5.0000000f,21.0000000f,8.0000000f,21.0000000f);+p.StartFigure();+p.AddLine(16.0000000f,21.0000000f,19.0000000f,21.0000000f);+p.AddBezier(19.0000000f,21.0000000f,20.1045695f,21.0000000f,21.0000000f,20.1045695f,21.0000000f,19.0000000f);+p.AddLine(21.0000000f,19.0000000f,21.0000000f,16.0000000f);+break;+case Icon::Video: // folder-open.svg+p.StartFigure();+p.AddLine(6.0000000f,14.0000000f,7.5000000f,11.1000000f);+p.AddBezier(7.5000000f,11.1000000f,7.8322880f,10.4400785f,8.5013399f,10.0171147f,9.2400000f,10.0000000f);+p.AddLine(9.2400000f,10.0000000f,20.0000000f,10.0000000f);+p.AddBezier(20.0000000f,10.0000000f,20.6191913f,9.9989136f,21.2039687f,10.2846847f,21.5835739f,10.7738667f);+p.AddBezier(21.5835739f,10.7738667f,21.9631790f,11.2630486f,22.0947990f,11.9004699f,21.9400000f,12.5000000f);+p.AddLine(21.9400000f,12.5000000f,20.4000000f,18.5000000f);+p.AddBezier(20.4000000f,18.5000000f,20.1707604f,19.3879276f,19.3670212f,20.0061885f,18.4500000f,20.0000000f);+p.AddLine(18.4500000f,20.0000000f,4.0000000f,20.0000000f);+p.AddBezier(4.0000000f,20.0000000f,2.8954305f,20.0000000f,2.0000000f,19.1045695f,2.0000000f,18.0000000f);+p.AddLine(2.0000000f,18.0000000f,2.0000000f,5.0000000f);+p.AddBezier(2.0000000f,5.0000000f,2.0000000f,3.8954305f,2.8954305f,3.0000000f,4.0000000f,3.0000000f);+p.AddLine(4.0000000f,3.0000000f,7.9000000f,3.0000000f);+p.AddBezier(7.9000000f,3.0000000f,8.5796674f,2.9933364f,9.2161976f,3.3323170f,9.5900000f,3.9000000f);+p.AddLine(9.5900000f,3.9000000f,10.4000000f,5.1000000f);+p.AddBezier(10.4000000f,5.1000000f,10.7699225f,5.6617203f,11.3974137f,5.9998892f,12.0700000f,6.0000000f);+p.AddLine(12.0700000f,6.0000000f,18.0000000f,6.0000000f);+p.AddBezier(18.0000000f,6.0000000f,19.1045695f,6.0000000f,20.0000000f,6.8954305f,20.0000000f,8.0000000f);+p.AddLine(20.0000000f,8.0000000f,20.0000000f,10.0000000f);+break;+case Icon::Capture: // monitor.svg+p.StartFigure();+p.AddLine(4.0000000f,3.0000000f,20.0000000f,3.0000000f);+p.AddBezier(20.0000000f,3.0000000f,21.1045695f,3.0000000f,22.0000000f,3.8954305f,22.0000000f,5.0000000f);+p.AddLine(22.0000000f,5.0000000f,22.0000000f,15.0000000f);+p.AddBezier(22.0000000f,15.0000000f,22.0000000f,16.1045695f,21.1045695f,17.0000000f,20.0000000f,17.0000000f);+p.AddLine(20.0000000f,17.0000000f,4.0000000f,17.0000000f);+p.AddBezier(4.0000000f,17.0000000f,2.8954305f,17.0000000f,2.0000000f,16.1045695f,2.0000000f,15.0000000f);+p.AddLine(2.0000000f,15.0000000f,2.0000000f,5.0000000f);+p.AddBezier(2.0000000f,5.0000000f,2.0000000f,3.8954305f,2.8954305f,3.0000000f,4.0000000f,3.0000000f);+p.CloseFigure();+p.StartFigure();+p.AddLine(8.0000000f,21.0000000f,16.0000000f,21.0000000f);+p.StartFigure();+p.AddLine(12.0000000f,17.0000000f,12.0000000f,21.0000000f);+break;+case Icon::Image: // image.svg+p.StartFigure();+p.AddLine(5.0000000f,3.0000000f,19.0000000f,3.0000000f);+p.AddBezier(19.0000000f,3.0000000f,20.1045695f,3.0000000f,21.0000000f,3.8954305f,21.0000000f,5.0000000f);+p.AddLine(21.0000000f,5.0000000f,21.0000000f,19.0000000f);+p.AddBezier(21.0000000f,19.0000000f,21.0000000f,20.1045695f,20.1045695f,21.0000000f,19.0000000f,21.0000000f);+p.AddLine(19.0000000f,21.0000000f,5.0000000f,21.0000000f);+p.AddBezier(5.0000000f,21.0000000f,3.8954305f,21.0000000f,3.0000000f,20.1045695f,3.0000000f,19.0000000f);+p.AddLine(3.0000000f,19.0000000f,3.0000000f,5.0000000f);+p.AddBezier(3.0000000f,5.0000000f,3.0000000f,3.8954305f,3.8954305f,3.0000000f,5.0000000f,3.0000000f);+p.CloseFigure();+p.StartFigure();+p.AddBezier(7.0000000f,9.0000000f,7.0000000f,10.1045695f,7.8954305f,11.0000000f,9.0000000f,11.0000000f);+p.AddBezier(9.0000000f,11.0000000f,10.1045695f,11.0000000f,11.0000000f,10.1045695f,11.0000000f,9.0000000f);+p.AddBezier(11.0000000f,9.0000000f,11.0000000f,7.8954305f,10.1045695f,7.0000000f,9.0000000f,7.0000000f);+p.AddBezier(9.0000000f,7.0000000f,7.8954305f,7.0000000f,7.0000000f,7.8954305f,7.0000000f,9.0000000f);+p.CloseFigure();+p.StartFigure();+p.AddLine(21.0000000f,15.0000000f,17.9140000f,11.9140000f);+p.AddBezier(17.9140000f,11.9140000f,17.1330003f,11.1332361f,15.8669997f,11.1332361f,15.0860000f,11.9140000f);+p.AddLine(15.0860000f,11.9140000f,6.0000000f,21.0000000f);+break;+case Icon::Subtitle: // captions.svg+p.StartFigure();+p.AddLine(5.0000000f,5.0000000f,19.0000000f,5.0000000f);+p.AddBezier(19.0000000f,5.0000000f,20.1045695f,5.0000000f,21.0000000f,5.8954305f,21.0000000f,7.0000000f);+p.AddLine(21.0000000f,7.0000000f,21.0000000f,17.0000000f);+p.AddBezier(21.0000000f,17.0000000f,21.0000000f,18.1045695f,20.1045695f,19.0000000f,19.0000000f,19.0000000f);+p.AddLine(19.0000000f,19.0000000f,5.0000000f,19.0000000f);+p.AddBezier(5.0000000f,19.0000000f,3.8954305f,19.0000000f,3.0000000f,18.1045695f,3.0000000f,17.0000000f);+p.AddLine(3.0000000f,17.0000000f,3.0000000f,7.0000000f);+p.AddBezier(3.0000000f,7.0000000f,3.0000000f,5.8954305f,3.8954305f,5.0000000f,5.0000000f,5.0000000f);+p.CloseFigure();+p.StartFigure();+p.AddLine(7.0000000f,15.0000000f,11.0000000f,15.0000000f);+p.StartFigure();+p.AddLine(15.0000000f,15.0000000f,17.0000000f,15.0000000f);+p.StartFigure();+p.AddLine(7.0000000f,11.0000000f,9.0000000f,11.0000000f);+p.StartFigure();+p.AddLine(13.0000000f,11.0000000f,17.0000000f,11.0000000f);+break;+case Icon::Minimize: // minus.svg+p.StartFigure();+p.AddLine(5.0000000f,12.0000000f,19.0000000f,12.0000000f);+break;+case Icon::Maximize: // square.svg+p.StartFigure();+p.AddLine(5.0000000f,3.0000000f,19.0000000f,3.0000000f);+p.AddBezier(19.0000000f,3.0000000f,20.1045695f,3.0000000f,21.0000000f,3.8954305f,21.0000000f,5.0000000f);+p.AddLine(21.0000000f,5.0000000f,21.0000000f,19.0000000f);+p.AddBezier(21.0000000f,19.0000000f,21.0000000f,20.1045695f,20.1045695f,21.0000000f,19.0000000f,21.0000000f);+p.AddLine(19.0000000f,21.0000000f,5.0000000f,21.0000000f);+p.AddBezier(5.0000000f,21.0000000f,3.8954305f,21.0000000f,3.0000000f,20.1045695f,3.0000000f,19.0000000f);+p.AddLine(3.0000000f,19.0000000f,3.0000000f,5.0000000f);+p.AddBezier(3.0000000f,5.0000000f,3.0000000f,3.8954305f,3.8954305f,3.0000000f,5.0000000f,3.0000000f);+p.CloseFigure();+break;+case Icon::Close: // x.svg+p.StartFigure();+p.AddLine(18.0000000f,6.0000000f,6.0000000f,18.0000000f);+p.StartFigure();+p.AddLine(6.0000000f,6.0000000f,18.0000000f,18.0000000f);+break;+case Icon::Back: // chevron-left.svg+p.StartFigure();+p.AddLine(15.0000000f,18.0000000f,9.0000000f,12.0000000f);+p.AddLine(9.0000000f,12.0000000f,15.0000000f,6.0000000f);+break;+case Icon::Settings: // sliders-horizontal.svg+p.StartFigure();+p.AddLine(10.0000000f,5.0000000f,3.0000000f,5.0000000f);+p.StartFigure();+p.AddLine(12.0000000f,19.0000000f,3.0000000f,19.0000000f);+p.StartFigure();+p.AddLine(14.0000000f,3.0000000f,14.0000000f,7.0000000f);+p.StartFigure();+p.AddLine(16.0000000f,17.0000000f,16.0000000f,21.0000000f);+p.StartFigure();+p.AddLine(21.0000000f,12.0000000f,12.0000000f,12.0000000f);+p.StartFigure();+p.AddLine(21.0000000f,19.0000000f,16.0000000f,19.0000000f);+p.StartFigure();+p.AddLine(21.0000000f,5.0000000f,14.0000000f,5.0000000f);+p.StartFigure();+p.AddLine(8.0000000f,10.0000000f,8.0000000f,14.0000000f);+p.StartFigure();+p.AddLine(8.0000000f,12.0000000f,3.0000000f,12.0000000f);+break;+case Icon::Recent: // clock.svg+p.StartFigure();+p.AddBezier(2.0000000f,12.0000000f,2.0000000f,17.5228475f,6.4771525f,22.0000000f,12.0000000f,22.0000000f);+p.AddBezier(12.0000000f,22.0000000f,17.5228475f,22.0000000f,22.0000000f,17.5228475f,22.0000000f,12.0000000f);+p.AddBezier(22.0000000f,12.0000000f,22.0000000f,6.4771525f,17.5228475f,2.0000000f,12.0000000f,2.0000000f);+p.AddBezier(12.0000000f,2.0000000f,6.4771525f,2.0000000f,2.0000000f,6.4771525f,2.0000000f,12.0000000f);+p.CloseFigure();+p.StartFigure();+p.AddLine(12.0000000f,6.0000000f,12.0000000f,12.0000000f);+p.AddLine(12.0000000f,12.0000000f,16.0000000f,14.0000000f);+break;+case Icon::Enhance: // sparkles.svg+p.StartFigure();+p.AddBezier(11.0170000f,2.8140000f,11.1054018f,2.3407082f,11.5185231f,1.9976056f,12.0000000f,1.9976056f);+p.AddBezier(12.0000000f,1.9976056f,12.4814769f,1.9976056f,12.8945982f,2.3407082f,12.9830000f,2.8140000f);+p.AddLine(12.9830000f,2.8140000f,14.0340000f,8.3720000f);+p.AddBezier(14.0340000f,8.3720000f,14.1867643f,9.1806867f,14.8193133f,9.8132357f,15.6280000f,9.9660000f);+p.AddLine(15.6280000f,9.9660000f,21.1860000f,11.0170000f);+p.AddBezier(21.1860000f,11.0170000f,21.6592918f,11.1054018f,22.0023944f,11.5185231f,22.0023944f,12.0000000f);+p.AddBezier(22.0023944f,12.0000000f,22.0023944f,12.4814769f,21.6592918f,12.8945982f,21.1860000f,12.9830000f);+p.AddLine(21.1860000f,12.9830000f,15.6280000f,14.0340000f);+p.AddBezier(15.6280000f,14.0340000f,14.8193133f,14.1867643f,14.1867643f,14.8193133f,14.0340000f,15.6280000f);+p.AddLine(14.0340000f,15.6280000f,12.9830000f,21.1860000f);+p.AddBezier(12.9830000f,21.1860000f,12.8945982f,21.6592918f,12.4814769f,22.0023944f,12.0000000f,22.0023944f);+p.AddBezier(12.0000000f,22.0023944f,11.5185231f,22.0023944f,11.1054018f,21.6592918f,11.0170000f,21.1860000f);+p.AddLine(11.0170000f,21.1860000f,9.9660000f,15.6280000f);+p.AddBezier(9.9660000f,15.6280000f,9.8132357f,14.8193133f,9.1806867f,14.1867643f,8.3720000f,14.0340000f);+p.AddLine(8.3720000f,14.0340000f,2.8140000f,12.9830000f);+p.AddBezier(2.8140000f,12.9830000f,2.3407082f,12.8945982f,1.9976056f,12.4814769f,1.9976056f,12.0000000f);+p.AddBezier(1.9976056f,12.0000000f,1.9976056f,11.5185231f,2.3407082f,11.1054018f,2.8140000f,11.0170000f);+p.AddLine(2.8140000f,11.0170000f,8.3720000f,9.9660000f);+p.AddBezier(8.3720000f,9.9660000f,9.1806867f,9.8132357f,9.8132357f,9.1806867f,9.9660000f,8.3720000f);+p.AddLine(9.9660000f,8.3720000f,11.0170000f,2.8140000f);+p.CloseFigure();+p.StartFigure();+p.AddLine(20.0000000f,2.0000000f,20.0000000f,6.0000000f);+p.StartFigure();+p.AddLine(22.0000000f,4.0000000f,18.0000000f,4.0000000f);+p.StartFigure();+p.AddBezier(2.0000000f,20.0000000f,2.0000000f,21.1045695f,2.8954305f,22.0000000f,4.0000000f,22.0000000f);+p.AddBezier(4.0000000f,22.0000000f,5.1045695f,22.0000000f,6.0000000f,21.1045695f,6.0000000f,20.0000000f);+p.AddBezier(6.0000000f,20.0000000f,6.0000000f,18.8954305f,5.1045695f,18.0000000f,4.0000000f,18.0000000f);+p.AddBezier(4.0000000f,18.0000000f,2.8954305f,18.0000000f,2.0000000f,18.8954305f,2.0000000f,20.0000000f);+p.CloseFigure();+break;+case Icon::Upscale: // scan.svg+p.StartFigure();+p.AddLine(3.0000000f,7.0000000f,3.0000000f,5.0000000f);+p.AddBezier(3.0000000f,5.0000000f,3.0000000f,3.8954305f,3.8954305f,3.0000000f,5.0000000f,3.0000000f);+p.AddLine(5.0000000f,3.0000000f,7.0000000f,3.0000000f);+p.StartFigure();+p.AddLine(17.0000000f,3.0000000f,19.0000000f,3.0000000f);+p.AddBezier(19.0000000f,3.0000000f,20.1045695f,3.0000000f,21.0000000f,3.8954305f,21.0000000f,5.0000000f);+p.AddLine(21.0000000f,5.0000000f,21.0000000f,7.0000000f);+p.StartFigure();+p.AddLine(21.0000000f,17.0000000f,21.0000000f,19.0000000f);+p.AddBezier(21.0000000f,19.0000000f,21.0000000f,20.1045695f,20.1045695f,21.0000000f,19.0000000f,21.0000000f);+p.AddLine(19.0000000f,21.0000000f,17.0000000f,21.0000000f);+p.StartFigure();+p.AddLine(7.0000000f,21.0000000f,5.0000000f,21.0000000f);+p.AddBezier(5.0000000f,21.0000000f,3.8954305f,21.0000000f,3.0000000f,20.1045695f,3.0000000f,19.0000000f);+p.AddLine(3.0000000f,19.0000000f,3.0000000f,17.0000000f);+break;+case Icon::PanelOpen: // panel-right-open.svg+p.StartFigure();+p.AddLine(5.0000000f,3.0000000f,19.0000000f,3.0000000f);+p.AddBezier(19.0000000f,3.0000000f,20.1045695f,3.0000000f,21.0000000f,3.8954305f,21.0000000f,5.0000000f);+p.AddLine(21.0000000f,5.0000000f,21.0000000f,19.0000000f);+p.AddBezier(21.0000000f,19.0000000f,21.0000000f,20.1045695f,20.1045695f,21.0000000f,19.0000000f,21.0000000f);+p.AddLine(19.0000000f,21.0000000f,5.0000000f,21.0000000f);+p.AddBezier(5.0000000f,21.0000000f,3.8954305f,21.0000000f,3.0000000f,20.1045695f,3.0000000f,19.0000000f);+p.AddLine(3.0000000f,19.0000000f,3.0000000f,5.0000000f);+p.AddBezier(3.0000000f,5.0000000f,3.0000000f,3.8954305f,3.8954305f,3.0000000f,5.0000000f,3.0000000f);+p.CloseFigure();+p.StartFigure();+p.AddLine(15.0000000f,3.0000000f,15.0000000f,21.0000000f);+p.StartFigure();+p.AddLine(10.0000000f,15.0000000f,7.0000000f,12.0000000f);+p.AddLine(7.0000000f,12.0000000f,10.0000000f,9.0000000f);+break;+case Icon::PanelClose: // panel-right-close.svg+p.StartFigure();+p.AddLine(5.0000000f,3.0000000f,19.0000000f,3.0000000f);+p.AddBezier(19.0000000f,3.0000000f,20.1045695f,3.0000000f,21.0000000f,3.8954305f,21.0000000f,5.0000000f);+p.AddLine(21.0000000f,5.0000000f,21.0000000f,19.0000000f);+p.AddBezier(21.0000000f,19.0000000f,21.0000000f,20.1045695f,20.1045695f,21.0000000f,19.0000000f,21.0000000f);+p.AddLine(19.0000000f,21.0000000f,5.0000000f,21.0000000f);+p.AddBezier(5.0000000f,21.0000000f,3.8954305f,21.0000000f,3.0000000f,20.1045695f,3.0000000f,19.0000000f);+p.AddLine(3.0000000f,19.0000000f,3.0000000f,5.0000000f);+p.AddBezier(3.0000000f,5.0000000f,3.0000000f,3.8954305f,3.8954305f,3.0000000f,5.0000000f,3.0000000f);+p.CloseFigure();+p.StartFigure();+p.AddLine(15.0000000f,3.0000000f,15.0000000f,21.0000000f);+p.StartFigure();+p.AddLine(8.0000000f,9.0000000f,11.0000000f,12.0000000f);+p.AddLine(11.0000000f,12.0000000f,8.0000000f,15.0000000f);+break;+case Icon::Check: // check.svg+p.StartFigure();+p.AddLine(20.0000000f,6.0000000f,9.0000000f,17.0000000f);+p.AddLine(9.0000000f,17.0000000f,4.0000000f,12.0000000f);+break;+case Icon::Chevron: // chevron-down.svg+p.StartFigure();+p.AddLine(6.0000000f,9.0000000f,12.0000000f,15.0000000f);+p.AddLine(12.0000000f,15.0000000f,18.0000000f,9.0000000f);+break;+case Icon::Load: // file-plus.svg+p.StartFigure();+p.AddBezier(6.0000000f,22.0000000f,4.8954305f,22.0000000f,4.0000000f,21.1045695f,4.0000000f,20.0000000f);+p.AddLine(4.0000000f,20.0000000f,4.0000000f,4.0000000f);+p.AddBezier(4.0000000f,4.0000000f,4.0000000f,2.8954305f,4.8954305f,2.0000000f,6.0000000f,2.0000000f);+p.AddLine(6.0000000f,2.0000000f,14.0000000f,2.0000000f);+p.AddBezier(14.0000000f,2.0000000f,14.6393651f,1.9989637f,15.2527151f,2.2530865f,15.7040000f,2.7060000f);+p.AddLine(15.7040000f,2.7060000f,19.2920000f,6.2940000f);+p.AddBezier(19.2920000f,6.2940000f,19.7461399f,6.7454441f,20.0010404f,7.3596535f,20.0000000f,8.0000000f);+p.AddLine(20.0000000f,8.0000000f,20.0000000f,20.0000000f);+p.AddBezier(20.0000000f,20.0000000f,20.0000000f,21.1045695f,19.1045695f,22.0000000f,18.0000000f,22.0000000f);+p.AddLine(18.0000000f,22.0000000f,6.0000000f,22.0000000f);+p.CloseFigure();+p.StartFigure();+p.AddLine(14.0000000f,2.0000000f,14.0000000f,7.0000000f);+p.AddBezier(14.0000000f,7.0000000f,14.0000000f,7.5522847f,14.4477153f,8.0000000f,15.0000000f,8.0000000f);+p.AddLine(15.0000000f,8.0000000f,20.0000000f,8.0000000f);+p.StartFigure();+p.AddLine(9.0000000f,15.0000000f,15.0000000f,15.0000000f);+p.StartFigure();+p.AddLine(12.0000000f,18.0000000f,12.0000000f,12.0000000f);+break;+case Icon::Type: // type.svg+p.StartFigure();+p.AddLine(12.0000000f,4.0000000f,12.0000000f,20.0000000f);+p.StartFigure();+p.AddLine(4.0000000f,7.0000000f,4.0000000f,5.0000000f);+p.AddBezier(4.0000000f,5.0000000f,4.0000000f,4.4477153f,4.4477153f,4.0000000f,5.0000000f,4.0000000f);+p.AddLine(5.0000000f,4.0000000f,19.0000000f,4.0000000f);+p.AddBezier(19.0000000f,4.0000000f,19.5522847f,4.0000000f,20.0000000f,4.4477153f,20.0000000f,5.0000000f);+p.AddLine(20.0000000f,5.0000000f,20.0000000f,7.0000000f);+p.StartFigure();+p.AddLine(9.0000000f,20.0000000f,15.0000000f,20.0000000f);+break;+default: return;}g.DrawPath(&pen,&p);+}+}diff --git a/apps/veyra/ui/PopupSelector.h b/apps/veyra/ui/PopupSelector.hnew file mode 100644index 00000000..0e23efc8--- /dev/null+++ b/apps/veyra/ui/PopupSelector.h@@ -0,0 +1,89 @@+#pragma once+// Included by Theme.h after its painting helpers. The native list box retains+// accessible item names, type search and scrolling; only its pixels are custom.+namespace veyra::ui {+struct PopupOption { int command; std::wstring label; Icon glyph=Icon::None; bool checked=false; };+inline int popupDepth=0;+inline HWND activeSelector=nullptr;+inline bool popupSelectorOpen(){return popupDepth>0;}+inline void cancelPopupSelector(){if(IsWindow(activeSelector))PostMessageW(activeSelector,WM_CLOSE,0,0);}+namespace popup_detail {+struct State {+ HWND window=nullptr,list=nullptr,anchor=nullptr;HFONT font=nullptr;+ const std::vector<PopupOption>* options=nullptr;GlassBackdrop glass;+ bool done=false,deactivated=false;int result=-1,tab=0;RECT anchorRect{};+};+inline void accept(State& s){int i=int(SendMessageW(s.list,LB_GETCURSEL,0,0));if(i>=0&&size_t(i)<s.options->size()){s.result=i;s.done=true;}}+inline LRESULT CALLBACK listProc(HWND h,UINT m,WPARAM w,LPARAM l,UINT_PTR,DWORD_PTR context){+ auto& s=*reinterpret_cast<State*>(context);+ if(m==WM_KEYDOWN){if(w==VK_ESCAPE||w==VK_F4||w==VK_TAB){if(w==VK_TAB)s.tab=(GetKeyState(VK_SHIFT)&0x8000)?-1:1;s.done=true;return 0;}if(w==VK_RETURN||w==VK_SPACE){accept(s);return 0;}}+ if(m==WM_SYSKEYDOWN&&w==VK_UP){s.done=true;return 0;}+ if(m==WM_MOUSEMOVE){auto item=SendMessageW(h,LB_ITEMFROMPOINT,0,l);if(!HIWORD(item))SendMessageW(h,LB_SETCURSEL,LOWORD(item),0);}+ if(m==WM_LBUTTONUP){auto item=SendMessageW(h,LB_ITEMFROMPOINT,0,l);auto result=DefSubclassProc(h,m,w,l);if(!HIWORD(item)){SendMessageW(h,LB_SETCURSEL,LOWORD(item),0);accept(s);}return result;}+ if(m==WM_ERASEBKGND)return 1;+ if(m==WM_PAINT){PaintBuffer paint(h);fillSurface(paint.dc,paint.rect,h);int first=int(SendMessageW(h,LB_GETTOPINDEX,0,0));int selected=int(SendMessageW(h,LB_GETCURSEL,0,0));+ for(int i=std::max(0,first);size_t(i)<s.options->size();++i){RECT r{};if(SendMessageW(h,LB_GETITEMRECT,i,LPARAM(&r))==LB_ERR||r.top>=paint.rect.bottom)break;DRAWITEMSTRUCT draw{ODT_LISTBOX,1,UINT(i),ODA_DRAWENTIRE,UINT(i==selected?ODS_SELECTED:0),h,paint.dc,r,0};SendMessageW(s.window,WM_DRAWITEM,1,LPARAM(&draw));}return 0;}+ auto result=DefSubclassProc(h,m,w,l);if(m==LB_SETCURSEL||m==LB_SETTOPINDEX||m==WM_KEYDOWN||m==WM_CHAR||m==WM_VSCROLL||m==WM_MOUSEWHEEL||m==WM_SETFOCUS||m==WM_KILLFOCUS)InvalidateRect(h,nullptr,FALSE);return result;+}+inline LRESULT CALLBACK proc(HWND h,UINT m,WPARAM w,LPARAM l){+ auto s=reinterpret_cast<State*>(GetWindowLongPtrW(h,GWLP_USERDATA));+ if(m==WM_NCCREATE){s=static_cast<State*>(reinterpret_cast<CREATESTRUCTW*>(l)->lpCreateParams);s->window=h;SetWindowLongPtrW(h,GWLP_USERDATA,LONG_PTR(s));}+ if(!s)return DefWindowProcW(h,m,w,l);+ switch(m){+ case WM_NCCALCSIZE:if(w)return 0;break;+ case WM_NCPAINT:return 0;+ case WM_ERASEBKGND:return 1;+ case WM_CREATE:{titleTheme(h);s->glass.attach(h);s->font=makeFont(h,13);RECT r{};GetClientRect(h,&r);const int pad=dip(h,8);s->glass.render(r.right,r.bottom,false,false,{{r,dip(h,12),88}});+ s->list=CreateWindowExW(0,L"LISTBOX",L"选项",WS_CHILD|WS_VISIBLE|WS_TABSTOP|WS_VSCROLL|LBS_NOTIFY|LBS_HASSTRINGS|LBS_OWNERDRAWFIXED|LBS_NOINTEGRALHEIGHT,pad,pad,r.right-2*pad,r.bottom-2*pad,h,HMENU(1),GetModuleHandleW(nullptr),nullptr);+ SetWindowTheme(s->list,L"DarkMode_Explorer",nullptr);SendMessageW(s->list,WM_SETFONT,WPARAM(s->font),FALSE);SendMessageW(s->list,LB_SETITEMHEIGHT,0,dip(h,38));SetWindowSubclass(s->list,listProc,910,DWORD_PTR(s));+ for(const auto& option:*s->options)SendMessageW(s->list,LB_ADDSTRING,0,LPARAM(option.label.c_str()));SetTimer(h,1,100,nullptr);return 0;}+ case WM_MEASUREITEM:reinterpret_cast<MEASUREITEMSTRUCT*>(l)->itemHeight=dip(h,38);return TRUE;+ case WM_DRAWITEM:{auto& item=*reinterpret_cast<DRAWITEMSTRUCT*>(l);if(item.itemID>=s->options->size())return TRUE;const auto& option=(*s->options)[item.itemID];RECT row=item.rcItem;fillSurface(item.hDC,row,s->list);InflateRect(&row,-dip(h,1),-dip(h,2));if(item.itemState&ODS_SELECTED)translucentRound(item.hDC,row,32,dip(h,7));auto ink=option.checked?accent:textColor;+ auto old=SelectObject(item.hDC,s->font);SetBkMode(item.hDC,TRANSPARENT);SetTextColor(item.hDC,ink);const bool glyph=option.glyph!=Icon::None;if(glyph)drawIcon(item.hDC,option.glyph,float(row.left+dip(h,18)),(row.top+row.bottom)/2.f,float(dip(h,18)),ink);+ RECT label=row;label.left+=dip(h,glyph?36:12);label.right-=dip(h,34);glassText(item.hDC,option.label.c_str(),-1,&label,DT_SINGLELINE|DT_VCENTER|DT_END_ELLIPSIS|DT_NOPREFIX);if(option.checked)drawIcon(item.hDC,Icon::Check,float(row.right-dip(h,17)),(row.top+row.bottom)/2.f,float(dip(h,17)),accent);SelectObject(item.hDC,old);return TRUE;}+ case WM_CTLCOLORLISTBOX:SetTextColor(HDC(w),textColor);SetBkColor(HDC(w),panel);return LRESULT(panelBrush());+ case WM_PAINT:{PaintBuffer paint(h);fillSurface(paint.dc,paint.rect,h);return 0;}+ case WM_ACTIVATE:if(LOWORD(w)==WA_INACTIVE){s->deactivated=true;s->done=true;}return 0;+ case WM_TIMER:{RECT current{};if(!IsWindow(s->anchor)||!IsWindowVisible(s->anchor)||!IsWindowEnabled(s->anchor)||!GetWindowRect(s->anchor,¤t)||!EqualRect(¤t,&s->anchorRect))s->done=true;return 0;}+ case WM_CLOSE:s->done=true;return 0;+ case WM_DESTROY:s->done=true;s->glass.detach();KillTimer(h,1);DeleteObject(s->font);return 0;+ }return DefWindowProcW(h,m,w,l);+}+}+// Returns an option index, or -1 on cancellation. Commit is dispatched only+// after this window is destroyed, so callers can safely rebuild controls.+inline int popupSelector(HWND anchor,const std::vector<PopupOption>& options,int selected=-1,bool above=false,const wchar_t* title=L"选择选项"){+ if(options.empty()||!IsWindowEnabled(anchor)||popupSelectorOpen())return -1;+ popup_detail::State state;state.options=&options;state.anchor=anchor;GetWindowRect(anchor,&state.anchorRect);auto owner=GetAncestor(anchor,GA_ROOT);auto priorFocus=GetFocus();+ MONITORINFO mi{sizeof(mi)};GetMonitorInfoW(MonitorFromRect(&state.anchorRect,MONITOR_DEFAULTTONEAREST),&mi);auto work=mi.rcWork;int pad=dip(anchor,8),row=dip(anchor,38);int width=std::max(int(state.anchorRect.right-state.anchorRect.left),dip(anchor,236));+ HDC dc=GetDC(anchor);auto font=makeFont(anchor,13);auto old=SelectObject(dc,font);for(const auto& option:options){SIZE extent{};GetTextExtentPoint32W(dc,option.label.c_str(),int(option.label.size()),&extent);width=std::max(width,int(extent.cx)+dip(anchor,88));}SelectObject(dc,old);DeleteObject(font);ReleaseDC(anchor,dc);+ width=std::min({width,dip(anchor,520),int(work.right-work.left)-2*pad});int height=std::min(int(options.size()),8)*row+2*pad;height=std::min(height,int(work.bottom-work.top)-2*pad);+ int x=std::clamp(int(state.anchorRect.left),int(work.left)+pad,int(work.right)-width-pad);int y=above?int(state.anchorRect.top)-height-pad:int(state.anchorRect.bottom)+pad;+ if(y+height>work.bottom)y=int(state.anchorRect.top)-height-pad;if(y<work.top)y=int(state.anchorRect.bottom)+pad;y=std::clamp(y,int(work.top)+pad,int(work.bottom)-height-pad);+ WNDCLASSW wc{};wc.lpfnWndProc=popup_detail::proc;wc.hInstance=GetModuleHandleW(nullptr);wc.lpszClassName=L"VeyraGlassSelector";wc.hCursor=LoadCursorW(nullptr,MAKEINTRESOURCEW(32512));RegisterClassW(&wc);+ ++popupDepth;HWND window=CreateWindowExW(WS_EX_TOOLWINDOW,wc.lpszClassName,title,WS_POPUP|WS_CLIPCHILDREN,x,y,width,height,owner,nullptr,wc.hInstance,&state);+ if(!window){--popupDepth;return -1;}activeSelector=window;SendMessageW(state.list,LB_SETCURSEL,selected>=0?selected:0,0);ShowWindow(window,SW_SHOW);SetFocus(state.list);veyra::log::info("ui-selector",std::format("open items={} selected={} width={} height={} acrylic=true",options.size(),selected,width,height));+ MSG msg{};while(!state.done&&IsWindow(window)){int result=GetMessageW(&msg,nullptr,0,0);if(result<=0){if(result==0)PostQuitMessage(int(msg.wParam));break;}TranslateMessage(&msg);DispatchMessageW(&msg);}+ const bool restore=!state.deactivated;if(IsWindow(window))DestroyWindow(window);activeSelector=nullptr;--popupDepth;+ // Restore this thread's focus for keyboard/selection closure, even when a+ // test or application opened it without foreground privilege. An outside+ // activation keeps its own focus and is never pulled back to the anchor.+ if(restore&&IsWindow(owner)&&IsWindowVisible(owner)&&IsWindowEnabled(owner)){SetActiveWindow(owner);auto focus=state.tab?GetNextDlgTabItem(owner,anchor,state.tab<0):priorFocus;if(IsWindow(focus)&&IsWindowVisible(focus)&&IsWindowEnabled(focus))SetFocus(focus);}+ if(state.tab)veyra::log::info("ui-selector",std::format("tab={} restore={} nextId={} focusId={} ownerVisible={} ownerEnabled={} nextVisible={} nextEnabled={}",state.tab,restore,GetDlgCtrlID(GetNextDlgTabItem(owner,anchor,state.tab<0)),GetDlgCtrlID(GetFocus()),IsWindowVisible(owner),IsWindowEnabled(owner),IsWindowVisible(GetNextDlgTabItem(owner,anchor,state.tab<0)),IsWindowEnabled(GetNextDlgTabItem(owner,anchor,state.tab<0))));+ veyra::log::info("ui-selector",std::format("closed selection={} choiceAccepted={}",state.result,state.result>=0));return state.result;+}+inline void comboSelector(HWND h){+ if(GetPropW(h,L"Veyra.ComboOpen")||popupSelectorOpen())return;SetFocus(h);RemovePropW(h,L"Veyra.ComboCancel");SetPropW(h,L"Veyra.ComboOpen",HANDLE(1));auto notify=[&](int code){if(IsWindow(h))SendMessageW(GetParent(h),WM_COMMAND,MAKEWPARAM(GetDlgCtrlID(h),code),LPARAM(h));};notify(CBN_DROPDOWN);+ if(!IsWindow(h))return;+ // A synchronous dropdown listener can cancel before a popup HWND exists.+ if(GetPropW(h,L"Veyra.ComboCancel")){RemovePropW(h,L"Veyra.ComboCancel");RemovePropW(h,L"Veyra.ComboOpen");notify(CBN_SELENDCANCEL);notify(CBN_CLOSEUP);return;}+ std::vector<PopupOption> options;int selected=int(SendMessageW(h,CB_GETCURSEL,0,0));int count=int(SendMessageW(h,CB_GETCOUNT,0,0));+ for(int i=0;i<count;++i){int n=int(SendMessageW(h,CB_GETLBTEXTLEN,i,0));if(n<0)break;std::wstring value(size_t(n)+1,0);SendMessageW(h,CB_GETLBTEXT,i,LPARAM(value.data()));value.resize(n);options.push_back({i,std::move(value),Icon::None,i==selected});}+ const int chosen=popupSelector(h,options,selected);if(!IsWindow(h))return;RemovePropW(h,L"Veyra.ComboOpen");RemovePropW(h,L"Veyra.ComboCancel");+ // Async device/preset refreshes may replace native items during the popup.+ bool valid=chosen>=0&&size_t(chosen)<options.size()&&SendMessageW(h,CB_GETCOUNT,0,0)==count;+ if(valid){int n=int(SendMessageW(h,CB_GETLBTEXTLEN,chosen,0));std::wstring current(size_t(std::max(0,n))+1,0);if(n<0)valid=false;else{SendMessageW(h,CB_GETLBTEXT,chosen,LPARAM(current.data()));current.resize(n);valid=current==options[chosen].label;}}+ if(valid){SendMessageW(h,CB_SETCURSEL,chosen,0);notify(CBN_SELENDOK);if(chosen!=selected)notify(CBN_SELCHANGE);}else notify(CBN_SELENDCANCEL);notify(CBN_CLOSEUP);if(IsWindow(h))InvalidateRect(h,nullptr,FALSE);+ veyra::log::info("ui-selector",std::format("combo committed={} changed={}",valid,valid&&chosen!=selected));+}+}diff --git a/apps/veyra/ui/Theme.h b/apps/veyra/ui/Theme.hindex a9e7c945..2ecfc18d 100644--- a/apps/veyra/ui/Theme.h+++ b/apps/veyra/ui/Theme.h@@ -10,6 +10,7 @@#include <cmath>#include <string>#include "GlassMaterial.h"+#include "LucideIcons.h"#pragma comment(lib,"uxtheme.lib")#pragma comment(lib,"dwmapi.lib")#pragma comment(lib,"gdiplus.lib")@@ -60,20 +61,7 @@ inline LRESULT CALLBACK labelPaint(HWND h,UINT m,WPARAM w,LPARAM l,UINT_PTR,DWORif(m==WM_PAINT){PaintBuffer paint(h);fillSurface(paint.dc,paint.rect,h);wchar_t text[4096]{};GetWindowTextW(h,text,4096);auto old=SelectObject(paint.dc,HFONT(SendMessageW(h,WM_GETFONT,0,0)));SetBkMode(paint.dc,TRANSPARENT);SetTextColor(paint.dc,IsWindowEnabled(h)?secondary:RGB(120,125,132));auto style=GetWindowLongPtrW(h,GWL_STYLE);auto type=style&SS_TYPEMASK;UINT flags=(style&SS_NOPREFIX)?DT_NOPREFIX:0;flags|=type==SS_CENTER?DT_CENTER:type==SS_RIGHT?DT_RIGHT:DT_LEFT;if(style&SS_CENTERIMAGE)flags|=DT_SINGLELINE|DT_VCENTER;else if(type==SS_SIMPLE||type==SS_LEFTNOWORDWRAP)flags|=DT_SINGLELINE;else flags|=DT_WORDBREAK;if(style&SS_ENDELLIPSIS)flags|=DT_END_ELLIPSIS;glassText(paint.dc,text,-1,&paint.rect,flags);SelectObject(paint.dc,old);return 0;}auto result=DefSubclassProc(h,m,w,l);if(m==WM_SETTEXT||m==WM_ENABLE||m==WM_SETFONT)InvalidateRect(h,nullptr,FALSE);return result;}-enum class Icon { None,Play,Pause,Stop,Volume,Muted,Fullscreen,Video,Capture,Image,Subtitle,Minimize,Maximize,Close,Back,Settings };inline void icon(HWND h,Icon icon,bool caption=false){if(INT_PTR(GetPropW(h,L"veyra.icon"))==INT_PTR(icon)&&(GetPropW(h,L"veyra.caption")!=nullptr)==caption)return;SetPropW(h,L"veyra.icon",HANDLE(INT_PTR(icon)));if(caption)SetPropW(h,L"veyra.caption",HANDLE(1));else RemovePropW(h,L"veyra.caption");InvalidateRect(h,nullptr,FALSE);}-inline void drawIcon(HDC dc,Icon icon,float x,float y,float size,COLORREF c){using namespace Gdiplus;AlphaGraphics drawing(dc);auto& g=drawing.get();g.SetSmoothingMode(SmoothingModeAntiAlias);Pen pen(color(c),std::max(1.4f,size/13));pen.SetStartCap(LineCapRound);pen.SetEndCap(LineCapRound);SolidBrush brush(color(c));const float a=size/2;auto line=[&](float x1,float y1,float x2,float y2){g.DrawLine(&pen,x+x1*a,y+y1*a,x+x2*a,y+y2*a);};- switch(icon){case Icon::Play:{PointF p[]={{x-a*.45f,y-a*.8f},{x+a*.85f,y},{x-a*.45f,y+a*.8f}};g.FillPolygon(&brush,p,3);break;}case Icon::Pause:g.FillRectangle(&brush,x-a*.55f,y-a*.7f,a*.35f,a*1.4f);g.FillRectangle(&brush,x+a*.2f,y-a*.7f,a*.35f,a*1.4f);break;- case Icon::Stop:g.FillRectangle(&brush,x-a*.55f,y-a*.55f,a*1.1f,a*1.1f);break;- case Icon::Volume:case Icon::Muted:{PointF p[]={{x-a*.9f,y-a*.28f},{x-a*.5f,y-a*.28f},{x,y-a*.7f},{x,y+a*.7f},{x-a*.5f,y+a*.28f},{x-a*.9f,y+a*.28f}};g.DrawPolygon(&pen,p,6);if(icon==Icon::Muted){line(.35f,-.4f,.85f,.4f);line(.35f,.4f,.85f,-.4f);}else{g.DrawArc(&pen,x-a*.4f,y-a*.6f,a*1.2f,a*1.2f,-60,120);g.DrawArc(&pen,x-a*.7f,y-a*.95f,a*1.9f,a*1.9f,-60,120);}break;}- case Icon::Fullscreen:for(int sx:{-1,1})for(int sy:{-1,1}){line(sx*.85f,sy*.35f,sx*.85f,sy*.85f);line(sx*.35f,sy*.85f,sx*.85f,sy*.85f);}break;- case Icon::Video:g.DrawRectangle(&pen,x-a*.85f,y-a*.65f,a*1.7f,a*1.3f);{PointF p[]={{x-a*.2f,y-a*.35f},{x+a*.4f,y},{x-a*.2f,y+a*.35f}};g.FillPolygon(&brush,p,3);}break;- case Icon::Capture:g.DrawRectangle(&pen,x-a*.85f,y-a*.6f,a*1.7f,a*1.2f);line(-.4f,1,.4f,1);line(0,.6f,0,1);g.FillEllipse(&brush,x-a*.16f,y-a*.16f,a*.32f,a*.32f);break;- case Icon::Image:g.DrawRectangle(&pen,x-a*.85f,y-a*.7f,a*1.7f,a*1.4f);line(-.6f,.4f,-.1f,-.2f);line(-.1f,-.2f,.3f,.2f);line(.3f,.2f,.65f,-.1f);g.FillEllipse(&brush,x+a*.25f,y-a*.5f,a*.24f,a*.24f);break;- case Icon::Subtitle:g.DrawRectangle(&pen,x-a*.9f,y-a*.6f,a*1.8f,a*1.2f);line(-.6f,.2f,-.1f,.2f);line(.15f,.2f,.6f,.2f);break;- case Icon::Minimize:line(-.6f,0,.6f,0);break;case Icon::Maximize:g.DrawRectangle(&pen,x-a*.55f,y-a*.55f,a*1.1f,a*1.1f);break;- case Icon::Close:line(-.5f,-.5f,.5f,.5f);line(-.5f,.5f,.5f,-.5f);break;case Icon::Back:line(.2f,-.6f,-.5f,0);line(-.5f,0,.2f,.6f);break;case Icon::Settings:g.DrawEllipse(&pen,x-a*.55f,y-a*.55f,a*1.1f,a*1.1f);for(int i=0;i<8;++i){float angle=float(i)*3.14159265f/4;line(cosf(angle)*.6f,sinf(angle)*.6f,cosf(angle)*.9f,sinf(angle)*.9f);}break;default:break;}-}inline LRESULT CALLBACK buttonPaint(HWND h,UINT m,WPARAM w,LPARAM l,UINT_PTR,DWORD_PTR){if(m==WM_ERASEBKGND)return 1;if(m==WM_MOUSEMOVE){if(!GetPropW(h,L"veyra.hover")){SetPropW(h,L"veyra.hover",HANDLE(1));TRACKMOUSEEVENT t{sizeof(t),TME_LEAVE,h,0};TrackMouseEvent(&t);InvalidateRect(h,nullptr,FALSE);}}@@ -82,14 +70,21 @@ inline LRESULT CALLBACK buttonPaint(HWND h,UINT m,WPARAM w,LPARAM l,UINT_PTR,DWOconst bool marked=GetPropW(h,L"veyra.accent")!=nullptr,selected=GetPropW(h,L"veyra.selected")!=nullptr,hover=GetPropW(h,L"veyra.hover")!=nullptr,down=SendMessageW(h,BM_GETSTATE,0,0)&BST_PUSHED,check=SendMessageW(h,BM_GETCHECK,0,0)==BST_CHECKED,ghost=GetPropW(h,L"veyra.ghost")!=nullptr;const auto ico=static_cast<Icon>(INT_PTR(GetPropW(h,L"veyra.icon")));bool caption=GetPropW(h,L"veyra.caption")!=nullptr;COLORREF fill=marked?accent:(down||selected?line:hover?raised:surface(h));if(glassBackdrop(h)&&!marked){if(down||selected||hover)translucentRound(dc,r,down?42:selected?31:18,dip(h,8));}else if(!ghost||hover||selected||marked)roundRect(dc,r,fill,ico==Icon::Play||ico==Icon::Pause?std::min(r.right,r.bottom)/2:dip(h,8));- wchar_t value[512]{};GetWindowTextW(h,value,512);auto f=reinterpret_cast<HFONT>(SendMessageW(h,WM_GETFONT,0,0));auto old=SelectObject(dc,f);SetBkMode(dc,TRANSPARENT);COLORREF ink=!IsWindowEnabled(h)?RGB(90,96,103):marked?RGB(24,31,36):selected?textColor:hover?textColor:secondary;SetTextColor(dc,ink);+ wchar_t value[512]{};GetWindowTextW(h,value,512);auto f=reinterpret_cast<HFONT>(SendMessageW(h,WM_GETFONT,0,0));auto old=SelectObject(dc,f);SetBkMode(dc,TRANSPARENT);COLORREF ink=!IsWindowEnabled(h)?RGB(90,96,103):marked?RGB(24,31,36):(selected||check)?accent:hover?textColor:secondary;SetTextColor(dc,ink);if(ico!=Icon::None){drawIcon(dc,ico,caption?float(dip(h,18)):r.right/2.f,r.bottom/2.f,float(dip(h,ico==Icon::Play||ico==Icon::Pause?22:17)),ink);if(caption){r.left=dip(h,34);glassText(dc,value,-1,&r,DT_LEFT|DT_VCENTER|DT_SINGLELINE|DT_END_ELLIPSIS);}}else if((GetWindowLongPtrW(h,GWL_STYLE)&BS_TYPEMASK)==BS_AUTOCHECKBOX){RECT toggle{r.right-dip(h,40),r.bottom/2-dip(h,8),r.right-dip(h,10),r.bottom/2+dip(h,8)};roundRect(dc,toggle,check?accent:line,dip(h,8));RECT knob{toggle.left+dip(h,check?16:3),toggle.top+dip(h,3),toggle.left+dip(h,check?26:13),toggle.top+dip(h,13)};roundRect(dc,knob,check?panel:secondary,dip(h,5));r.left=dip(h,12);r.right-=dip(h,46);glassText(dc,value,-1,&r,DT_LEFT|DT_VCENTER|DT_SINGLELINE|DT_END_ELLIPSIS);}else glassText(dc,value,-1,&r,DT_CENTER|DT_VCENTER|DT_SINGLELINE|DT_END_ELLIPSIS);if(GetFocus()==h&&!(SendMessageW(h,WM_QUERYUISTATE,0,0)&UISF_HIDEFOCUS)){RECT outline{};GetClientRect(h,&outline);InflateRect(&outline,-3,-3);AlphaGraphics focusDrawing(dc);auto& focus=focusDrawing.get();focus.SetSmoothingMode(Gdiplus::SmoothingModeAntiAlias);Gdiplus::GraphicsPath path;rounded(path,{float(outline.left),float(outline.top),float(outline.right-outline.left),float(outline.bottom-outline.top)},float(dip(h,6)));Gdiplus::Pen stroke(color(accent,145),1);focus.DrawPath(&stroke,&path);}SelectObject(dc,old);return 0;}if(m==WM_ENABLE||m==WM_SETFOCUS||m==WM_KILLFOCUS||m==BM_SETCHECK||m==WM_SETTEXT||m==BM_SETSTATE){auto result=DefSubclassProc(h,m,w,l);InvalidateRect(h,nullptr,FALSE);return result;}return DefSubclassProc(h,m,w,l);}+}+#include "PopupSelector.h"+namespace veyra::ui {inline LRESULT CALLBACK comboPaint(HWND h,UINT m,WPARAM w,LPARAM l,UINT_PTR,DWORD_PTR){+ if(m==CB_GETDROPPEDSTATE)return GetPropW(h,L"Veyra.ComboOpen")!=nullptr;+ if(m==CB_SHOWDROPDOWN&&!w){if(GetPropW(h,L"Veyra.ComboOpen")){SetPropW(h,L"Veyra.ComboCancel",HANDLE(1));cancelPopupSelector();}return 0;}+ if(m==WM_LBUTTONDOWN||m==CB_SHOWDROPDOWN&&w||m==WM_KEYDOWN&&(w==VK_F4||w==VK_SPACE||w==VK_RETURN)||m==WM_SYSKEYDOWN&&w==VK_DOWN){if(IsWindowEnabled(h))comboSelector(h);return 0;}+ if(m==WM_LBUTTONUP||m==WM_LBUTTONDBLCLK)return 0;if(m==WM_ERASEBKGND)return 1;if(m==WM_PAINT){PaintBuffer paint(h);HDC dc=paint.dc;RECT r=paint.rect;fillSurface(dc,r,h);if(glassBackdrop(h))translucentRound(dc,r,16,dip(h,7));else roundRect(dc,r,raised,dip(h,7));int index=int(SendMessageW(h,CB_GETCURSEL,0,0));wchar_t value[512]{};if(index>=0&&SendMessageW(h,CB_GETLBTEXTLEN,index,0)<512)SendMessageW(h,CB_GETLBTEXT,index,LPARAM(value));auto old=SelectObject(dc,HFONT(SendMessageW(h,WM_GETFONT,0,0)));SetBkMode(dc,TRANSPARENT);SetTextColor(dc,IsWindowEnabled(h)?secondary:RGB(85,88,92));RECT label=r;label.left+=dip(h,12);label.right-=dip(h,26);glassText(dc,value,-1,&label,DT_SINGLELINE|DT_VCENTER|DT_END_ELLIPSIS);{AlphaGraphics drawing(dc);auto& g=drawing.get();g.SetSmoothingMode(Gdiplus::SmoothingModeAntiAlias);Gdiplus::Pen pen(color(secondary),float(dip(h,1)));float x=float(r.right-dip(h,15)),y=r.bottom/2.f;g.DrawLine(&pen,x-dip(h,3),y-dip(h,1),x,y+dip(h,2));g.DrawLine(&pen,x,y+dip(h,2),x+dip(h,3),y-dip(h,1));}SelectObject(dc,old);return 0;}auto result=DefSubclassProc(h,m,w,l);if(m==CB_SETCURSEL||m==WM_SETFOCUS||m==WM_KILLFOCUS||m==WM_ENABLE)InvalidateRect(h,nullptr,FALSE);return result;}diff --git a/apps/veyra/ui/TransportLayout.h b/apps/veyra/ui/TransportLayout.hnew file mode 100644index 00000000..5d27332d--- /dev/null+++ b/apps/veyra/ui/TransportLayout.h@@ -0,0 +1,22 @@+#pragma once+#include <algorithm>+namespace veyra::ui {+struct TransportSlot {int x=0,width=0;};+struct TransportLayout {+ TransportSlot open,capture,recent,master,sr,stop,play,mute,volume,subtitle,fullscreen,mode,minimize,close;+ bool captions;+ TransportLayout(int width,bool daily):captions(daily&&width>=1040){+ int left=0,right=width;+ auto takeLeft=[&](int size){TransportSlot result{left,size};left+=size+4;return result;};+ auto takeRight=[&](int size){right-=size;TransportSlot result{right,size};right-=4;return result;};+ if(daily){+ open=takeLeft(captions?76:32);capture=takeLeft(captions?76:32);recent=takeLeft(32);left+=10;+ master=takeLeft(captions?114:36);sr=takeLeft(captions?70:60);+ close=takeRight(26);minimize=takeRight(26);right-=8;mode=takeRight(captions?126:32);+ }+ fullscreen=takeRight(32);subtitle=takeRight(32);right-=6;volume=takeRight(captions?76:48);mute=takeRight(32);+ int center=width/2;play={center-22,44};stop={center-62,32};+ if(!daily&&width<480){play={0,44};stop={48,32};}+ }+};+}diff --git a/apps/veyra/ui/UiRepairChecks.h b/apps/veyra/ui/UiRepairChecks.hindex 2f40ae10..d725da6d 100644--- a/apps/veyra/ui/UiRepairChecks.h+++ b/apps/veyra/ui/UiRepairChecks.h@@ -27,6 +27,14 @@ void tickRepairChecks(HWND hwnd,const veyra::engine::PlayerSnapshot& s){showDiagnostics=true;layout();toggleFullscreen();repairTick=GetTickCount64();repairStep=6;break;}case 6:{RECT vr{},wr{};GetWindowRect(video,&vr);GetWindowRect(hwnd,&wr);MONITORINFO mi{sizeof(mi)};GetMonitorInfoW(MonitorFromWindow(hwnd,MONITOR_DEFAULTTONEAREST),&mi);if(!require(full&&EqualRect(&vr,&mi.rcMonitor)&&EqualRect(&wr,&mi.rcMonitor)&&!IsWindowVisible(inspector)&&(s.image||IsWindowVisible(seekBar)),"fullscreen_covers_monitor_and_diagnostics_keeps_seek"))break;- toggleFullscreen();showDiagnostics=false;layout();repairStep=10;log::info("ui-repair-test","PASS native controls, drafts, master sync, SR extent, scroll viewport, fullscreen");break;}+ toggleFullscreen();showDiagnostics=false;layout();repairStep=7;repairTick=GetTickCount64();break;}+ case 7:if(uiState.mode!=Mode::Daily){switchMode();return;}{+ RECT client{};GetClientRect(hwnd,&client);std::vector<RECT> controls;+ for(int id:{Open,Capture,Recent,Master,Sr,Play,Stop,Mute,Volume,Subtitle,Fullscreen,ModeSwitch,WindowMin,WindowClose}){auto child=GetDlgItem(hwnd,id);RECT r{};GetWindowRect(child,&r);MapWindowPoints(nullptr,hwnd,reinterpret_cast<POINT*>(&r),2);if(!require((GetWindowLongPtrW(child,GWL_STYLE)&WS_VISIBLE)&&r.left>=0&&r.right<=client.right&&r.top>=0&&r.bottom<=client.bottom,"daily_action_has_visible_contained_slot"))return;for(const auto& prior:controls){RECT overlap{};if(!require(!IntersectRect(&overlap,&prior,&r),"daily_action_hitboxes_do_not_overlap"))return;}controls.push_back(r);}+ SendMessageW(GetDlgItem(hwnd,Master),BM_CLICK,0,0);repairTick=GetTickCount64();repairStep=8;break;}+ case 8:if(!require(!uiState.enhanced&&!s.applied.sr&&IsDlgButtonChecked(hwnd,Sr)==BST_UNCHECKED,"daily_SR_shows_effective_off_after_master_bypass"))break;+ SendMessageW(GetDlgItem(hwnd,Sr),BM_CLICK,0,0);repairRevision=engine.snapshot().desired.revision;repairTick=GetTickCount64();repairStep=9;break;+ case 9:if(s.applied.revision!=repairRevision)return;if(!require(uiState.enhanced&&s.applied.sr&&IsDlgButtonChecked(hwnd,Sr)==BST_CHECKED&&checkControl(201)&&std::wstring(draft)==L"NaN","daily_SR_click_restores_master_and_syncs_professional_without_submitting_draft"))break;+ repairStep=10;log::info("ui-repair-test","PASS native controls, drafts, master sync, SR extent, scroll viewport, fullscreen, direct daily controls");break;}}diff --git a/assets/icons/lucide/.gitattributes b/assets/icons/lucide/.gitattributesnew file mode 100644index 00000000..6e5f5b26--- /dev/null+++ b/assets/icons/lucide/.gitattributes@@ -0,0 +1,4 @@+# Preserve the pinned upstream bytes for manifest SHA256 checks on Windows.+*.svg -text+LICENSE -text+manifest.json text eol=lfdiff --git a/assets/icons/lucide/LICENSE b/assets/icons/lucide/LICENSEnew file mode 100644index 00000000..718bb3f0--- /dev/null+++ b/assets/icons/lucide/LICENSE@@ -0,0 +1,43 @@+ISC License++Copyright (c) 2026 Lucide Icons and Contributors++Permission to use, copy, modify, and/or distribute this software for any+purpose with or without fee is hereby granted, provided that the above+copyright notice and this permission notice appear in all copies.++THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.++---++The following Lucide icons are derived from the Feather project:++airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out++The MIT License (MIT) (for the icons listed above)++Copyright (c) 2013-present Cole Bemis++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/assets/icons/lucide/captions.svg b/assets/icons/lucide/captions.svgnew file mode 100644index 00000000..ae7335a4--- /dev/null+++ b/assets/icons/lucide/captions.svg@@ -0,0 +1,14 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <rect width="18" height="14" x="3" y="5" rx="2" ry="2" />+ <path d="M7 15h4M15 15h2M7 11h2M13 11h4" />+</svg>diff --git a/assets/icons/lucide/check.svg b/assets/icons/lucide/check.svgnew file mode 100644index 00000000..5abe1527--- /dev/null+++ b/assets/icons/lucide/check.svg@@ -0,0 +1,13 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M20 6 9 17l-5-5" />+</svg>diff --git a/assets/icons/lucide/chevron-down.svg b/assets/icons/lucide/chevron-down.svgnew file mode 100644index 00000000..e70d30b8--- /dev/null+++ b/assets/icons/lucide/chevron-down.svg@@ -0,0 +1,13 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="m6 9 6 6 6-6" />+</svg>diff --git a/assets/icons/lucide/chevron-left.svg b/assets/icons/lucide/chevron-left.svgnew file mode 100644index 00000000..056d5abc--- /dev/null+++ b/assets/icons/lucide/chevron-left.svg@@ -0,0 +1,13 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="m15 18-6-6 6-6" />+</svg>diff --git a/assets/icons/lucide/clock.svg b/assets/icons/lucide/clock.svgnew file mode 100644index 00000000..b6ae2834--- /dev/null+++ b/assets/icons/lucide/clock.svg@@ -0,0 +1,14 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <circle cx="12" cy="12" r="10" />+ <path d="M12 6v6l4 2" />+</svg>diff --git a/assets/icons/lucide/file-plus.svg b/assets/icons/lucide/file-plus.svgnew file mode 100644index 00000000..fe4715be--- /dev/null+++ b/assets/icons/lucide/file-plus.svg@@ -0,0 +1,16 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" />+ <path d="M14 2v5a1 1 0 0 0 1 1h5" />+ <path d="M9 15h6" />+ <path d="M12 18v-6" />+</svg>diff --git a/assets/icons/lucide/folder-open.svg b/assets/icons/lucide/folder-open.svgnew file mode 100644index 00000000..b01f60fc--- /dev/null+++ b/assets/icons/lucide/folder-open.svg@@ -0,0 +1,13 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" />+</svg>diff --git a/assets/icons/lucide/image.svg b/assets/icons/lucide/image.svgnew file mode 100644index 00000000..3241134c--- /dev/null+++ b/assets/icons/lucide/image.svg@@ -0,0 +1,15 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <rect width="18" height="18" x="3" y="3" rx="2" ry="2" />+ <circle cx="9" cy="9" r="2" />+ <path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" />+</svg>diff --git a/assets/icons/lucide/manifest.json b/assets/icons/lucide/manifest.jsonnew file mode 100644index 00000000..1af8ee0f--- /dev/null+++ b/assets/icons/lucide/manifest.json@@ -0,0 +1,31 @@+{+ "repository": "https://github.com/lucide-icons/lucide",+ "revision": "a537cb6eb323b885f4c60baf3cec1a995982d167",+ "generator": "fonttools 4.64.0; SVG paths converted to GDI+ cubic paths",+ "sha256": {+ "LICENSE": "b495047bd93a9b06913511076f504daba17d5bbeb3e0650f3bb53a4220329c57",+ "captions.svg": "37c4e3ed84224b7d07ee6f5b0f51cc2c5d17e8bf80f86c48059cdcc747607a55",+ "check.svg": "7f33acc9a77a61659531044525fc008edebe215bf4dcf1c789c8674ad3277db0",+ "chevron-down.svg": "66ea878e72ed3488bb3b464c39dfdccee8d1f78e560dccea40e5e12da0e87e87",+ "chevron-left.svg": "83b0681aa38bf55e9d52a1e4b4cced624abe1fe7678ecafda133a574f1161d93",+ "clock.svg": "e9d3e3acf4d1c280fcf8092293439dc0a4756a908ceb859de144b12451cd1cb9",+ "file-plus.svg": "bbcf862a2a4425baa8a5bda39c7f16ec1d283816a3db77baf84f2e8766dd223e",+ "folder-open.svg": "ee57452b40e71df310214091dd9da1941a397c83197b8ff8d7ae66dd4242578b",+ "image.svg": "619c9db58c879dce6250376ba67d9c9102ca6dbb3b1efb9294c9f180e22273a5",+ "maximize.svg": "1f790856b0de805ab62e871609f1990b89d227d472022e57a11fde015aad4826",+ "minus.svg": "a0c743ab6dbf545d8a6e19ef3874f48ede686ce68d25e231bd81f540d97b1f19",+ "monitor.svg": "d1a443233345724859de8e4fb48968ba91e885e12ddbd710701548bd91b39428",+ "panel-right-close.svg": "48b9f4f84d55f99d6e4b7dc9e31937f687bc6aca223c003d7f3bd8bab6526c0b",+ "panel-right-open.svg": "7cea098473914c767e3a17561626df816a886de878cc943da79ae95bf726c9f0",+ "pause.svg": "f122ec4ea7f5693a0b1baafa9c708b53980dc87b4aacb297c6e6f71c1a4c115c",+ "play.svg": "d7c34786135922a92b6896f6c2384ceeb0346afbf6041dc79982011411409833",+ "scan.svg": "c77f0e634b2451a14a262a59b61d75bbcea3994b16eeba1f5753e86b33282a4d",+ "sliders-horizontal.svg": "e43a00e5eb684e6cbb61083bed2528d7a3fa5f265693eb2b5f314cd432aa65f4",+ "sparkles.svg": "f5499f33f09d7158151e9bd2ec0faf79ff8fb57292f84fdd7286d96d0f0424d8",+ "square.svg": "bd979354f0ab184b95cecf03eedefe40c2dc65830ac6d7e60017b2b25a354acb",+ "type.svg": "82c514732330f9c36c0f1f7fd1034634fa6ad21ba2016ffa76cf5d9608c3d6b1",+ "volume-2.svg": "fb404f9c128a0579de67b399177631e5edb3502fdc247ceb30e8b15754b46071",+ "volume-x.svg": "f382e421b7aae01172989f2b749ee87e44c0c82c16970b13a9ad5a323b613be0",+ "x.svg": "4a9cdab38fbb96162e7dace28e33f4ca0e49d8963a6162abc3d4691b7d675117"+ }+}diff --git a/assets/icons/lucide/maximize.svg b/assets/icons/lucide/maximize.svgnew file mode 100644index 00000000..f78ca324--- /dev/null+++ b/assets/icons/lucide/maximize.svg@@ -0,0 +1,16 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M8 3H5a2 2 0 0 0-2 2v3" />+ <path d="M21 8V5a2 2 0 0 0-2-2h-3" />+ <path d="M3 16v3a2 2 0 0 0 2 2h3" />+ <path d="M16 21h3a2 2 0 0 0 2-2v-3" />+</svg>diff --git a/assets/icons/lucide/minus.svg b/assets/icons/lucide/minus.svgnew file mode 100644index 00000000..75093e27--- /dev/null+++ b/assets/icons/lucide/minus.svg@@ -0,0 +1,13 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M5 12h14" />+</svg>diff --git a/assets/icons/lucide/monitor.svg b/assets/icons/lucide/monitor.svgnew file mode 100644index 00000000..e869f2f2--- /dev/null+++ b/assets/icons/lucide/monitor.svg@@ -0,0 +1,15 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <rect width="20" height="14" x="2" y="3" rx="2" />+ <line x1="8" x2="16" y1="21" y2="21" />+ <line x1="12" x2="12" y1="17" y2="21" />+</svg>diff --git a/assets/icons/lucide/panel-right-close.svg b/assets/icons/lucide/panel-right-close.svgnew file mode 100644index 00000000..bcd34cbf--- /dev/null+++ b/assets/icons/lucide/panel-right-close.svg@@ -0,0 +1,15 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <rect width="18" height="18" x="3" y="3" rx="2" />+ <path d="M15 3v18" />+ <path d="m8 9 3 3-3 3" />+</svg>diff --git a/assets/icons/lucide/panel-right-open.svg b/assets/icons/lucide/panel-right-open.svgnew file mode 100644index 00000000..613e5897--- /dev/null+++ b/assets/icons/lucide/panel-right-open.svg@@ -0,0 +1,15 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <rect width="18" height="18" x="3" y="3" rx="2" />+ <path d="M15 3v18" />+ <path d="m10 15-3-3 3-3" />+</svg>diff --git a/assets/icons/lucide/pause.svg b/assets/icons/lucide/pause.svgnew file mode 100644index 00000000..ea5762fd--- /dev/null+++ b/assets/icons/lucide/pause.svg@@ -0,0 +1,14 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <rect x="14" y="3" width="5" height="18" rx="1" />+ <rect x="5" y="3" width="5" height="18" rx="1" />+</svg>diff --git a/assets/icons/lucide/play.svg b/assets/icons/lucide/play.svgnew file mode 100644index 00000000..199743ed--- /dev/null+++ b/assets/icons/lucide/play.svg@@ -0,0 +1,13 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" />+</svg>diff --git a/assets/icons/lucide/scan.svg b/assets/icons/lucide/scan.svgnew file mode 100644index 00000000..33d067b2--- /dev/null+++ b/assets/icons/lucide/scan.svg@@ -0,0 +1,16 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M3 7V5a2 2 0 0 1 2-2h2" />+ <path d="M17 3h2a2 2 0 0 1 2 2v2" />+ <path d="M21 17v2a2 2 0 0 1-2 2h-2" />+ <path d="M7 21H5a2 2 0 0 1-2-2v-2" />+</svg>diff --git a/assets/icons/lucide/sliders-horizontal.svg b/assets/icons/lucide/sliders-horizontal.svgnew file mode 100644index 00000000..819f80c1--- /dev/null+++ b/assets/icons/lucide/sliders-horizontal.svg@@ -0,0 +1,21 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M10 5H3" />+ <path d="M12 19H3" />+ <path d="M14 3v4" />+ <path d="M16 17v4" />+ <path d="M21 12h-9" />+ <path d="M21 19h-5" />+ <path d="M21 5h-7" />+ <path d="M8 10v4" />+ <path d="M8 12H3" />+</svg>diff --git a/assets/icons/lucide/sparkles.svg b/assets/icons/lucide/sparkles.svgnew file mode 100644index 00000000..2d749398--- /dev/null+++ b/assets/icons/lucide/sparkles.svg@@ -0,0 +1,16 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" />+ <path d="M20 2v4" />+ <path d="M22 4h-4" />+ <circle cx="4" cy="20" r="2" />+</svg>diff --git a/assets/icons/lucide/square.svg b/assets/icons/lucide/square.svgnew file mode 100644index 00000000..78627335--- /dev/null+++ b/assets/icons/lucide/square.svg@@ -0,0 +1,13 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <rect width="18" height="18" x="3" y="3" rx="2" />+</svg>diff --git a/assets/icons/lucide/type.svg b/assets/icons/lucide/type.svgnew file mode 100644index 00000000..8f269e72--- /dev/null+++ b/assets/icons/lucide/type.svg@@ -0,0 +1,15 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M12 4v16" />+ <path d="M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2" />+ <path d="M9 20h6" />+</svg>diff --git a/assets/icons/lucide/volume-2.svg b/assets/icons/lucide/volume-2.svgnew file mode 100644index 00000000..519e6cbd--- /dev/null+++ b/assets/icons/lucide/volume-2.svg@@ -0,0 +1,15 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z" />+ <path d="M16 9a5 5 0 0 1 0 6" />+ <path d="M19.364 18.364a9 9 0 0 0 0-12.728" />+</svg>diff --git a/assets/icons/lucide/volume-x.svg b/assets/icons/lucide/volume-x.svgnew file mode 100644index 00000000..3e260094--- /dev/null+++ b/assets/icons/lucide/volume-x.svg@@ -0,0 +1,15 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M11 4.702a.7.7 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.7.7 0 0 0 11 19.298z" />+ <path d="m16.5 14.5 5-5" />+ <path d="m16.5 9.5 5 5" />+</svg>diff --git a/assets/icons/lucide/x.svg b/assets/icons/lucide/x.svgnew file mode 100644index 00000000..e3179434--- /dev/null+++ b/assets/icons/lucide/x.svg@@ -0,0 +1,14 @@+<svg+ xmlns="http://www.w3.org/2000/svg"+ width="24"+ height="24"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ stroke-width="2"+ stroke-linecap="round"+ stroke-linejoin="round"+>+ <path d="M18 6 6 18" />+ <path d="m6 6 12 12" />+</svg>diff --git a/docs/DELIVERY_STATUS.md b/docs/DELIVERY_STATUS.mdindex 0c3107ea..816f1c05 100644--- a/docs/DELIVERY_STATUS.md+++ b/docs/DELIVERY_STATUS.md@@ -1,3 +1,17 @@+# 2026-09-08 UI v4:常用操作直出与统一玻璃选择器++日常底栏直接提供打开、采集、最近、总增强、SR、播放、音量、字幕、全屏及窗口控制;720px保留全部入口。采用固定来源的Lucide免费图标(完整ISC/Feather MIT通知),字幕和所有应用内下拉框使用同一Desktop Acrylic弹层。保留真实桌面透明与纯黑视频区域。++基线 `97ccd19`;最终EXE SHA256 `7EEA31511FFA649F3E6B0829F5D1D3A5D454010167A70137786D4430F71E9514`。最终布局/14场景弹层专项1.312秒PASS;40次切换15.008秒PASS;原生NR/SR/NaN草稿/底栏可见性25.858秒exit0,Create/Evaluate实际成功。紧邻的12DIP排版微调前,全UI15命令141.503秒PASS,图片/视频/导出专项11命令80.914秒PASS。报告明确区分EXE版本,不把旧证据冒充最终抓图。单次测试均小于300秒。++实际检查宽窗口、720px窗口、字幕/专业下拉、键盘确认取消。独立只读复核通过其限定代码范围;最后SR文字宽度微调另经主Agent验证。保护文件和runtime身份不变,整体仍Phase7/needs_review,实卡、长稳、分发和既有delivery门禁失败不由本轮UI验收代替。++详细文件、命令、真实日志、失败与截图:[UI v4交付报告](UI_CONTROLS_V4_DELIVERY_2026-09-08.md);[只读复核](REVIEW_UI_CONTROLS_V4_2026-09-08.md)。下一条唯一任务:用户验收底栏/选择器,并继续原合同的实卡体验验收。++---++以下为历史记录:+# 2026-09-08 UI修复v3:真实桌面毛玻璃已删除应用内彩色渐变,控制区采用Windows Desktop Acrylic,透出下方桌面或其他窗口的模糊颜色;视频区域不透明、空闲纯黑。同步修复窗口白边、视频全屏、专业NR/SR开关、数值草稿/回滚、滚动裁剪、日常底部布局与240ms展开动画。独立采集对话框仍为普通深色。diff --git a/docs/REVIEW_UI_CONTROLS_V4_2026-09-08.md b/docs/REVIEW_UI_CONTROLS_V4_2026-09-08.mdnew file mode 100644index 00000000..5e6a7712--- /dev/null+++ b/docs/REVIEW_UI_CONTROLS_V4_2026-09-08.md@@ -0,0 +1,21 @@+# 底栏与选择器 UI v4:独立只读复核++复核者:现有独立子 Agent `/root/review_ui_v3`(Planck)。主 Agent 是唯一写入者;本文件由主 Agent 整理其真实返回结论,不冒充 Reviewer 亲自执行过测试。++范围:`AppShell.cpp`、`Theme.h`、`PopupSelector.h`、`TransportLayout.h`、Lucide SVG/生成器/许可证,以及本轮测试证据。阶段仍为 Phase 7 / `needs_review`。++首轮指出的缺陷均已修正:++- 总增强关闭后,底栏 SR 不再显示待恢复的缓存值;显示实际关闭状态,点击可恢复总增强。+- `CB_SHOWDROPDOWN(FALSE)` 能关闭自定义弹层;父窗口在 `CBN_DROPDOWN` 回调中同步取消时,也会在建窗前终止。+- Tab / Shift+Tab 取消后分别移到下一 / 上一控件;外部窗口获得焦点时不抢回焦点。+- 字幕选项名称包含“已开启 / 已关闭”,辅助技术能读取当前状态。+- SR 提示从不准确的“最长边4K”改为“按比例提升,最高3840×2160”。++实际窗口另发现同一个 HWND 在一次 DeferWindowPos 中重复收到 HIDE/SHOW 会保留隐藏标志。布局现在先收集每个 HWND 的最终意图,再各提交一次。Reviewer 核对该修正,720px 日常及最窄专业布局未发现重叠。++Reviewer 最终原文结论:“当前源码限定审查通过,未发现未关闭的 P0/P1/P2。”其核对的 EXE 为 `AAEF44C6A860EA1975B5A91A41641716A089E06C361F7D7D7542B0217795E5F1`,对应14个弹层场景通过记录 `logs/ui-controls-v4/d24c191e9d9e400fa59e3760da470a97/result.json`。测试覆盖正反 Tab、长列表、Esc、程序取消、同步通知取消/销毁、异步刷新及 combo/owner 销毁。++之后唯一产品改动是窄窗口 SR 按钮宽度由48改为60 DIP,避免文本省略。最终 EXE `7EEA31511FFA649F3E6B0829F5D1D3A5D454010167A70137786D4430F71E9514` 重新通过布局/14场景弹层、40次模式切换和原生 NR/SR 控件专项,并实际检查720px窗口。此12 DIP调整及最终截图由主 Agent复核;不冒称此前Reviewer已看过此后版本。++Lucide 的24个映射来自23份原始SVG,另有完整LICENSE;Reviewer逐项核对manifest共24个文件哈希,ISC / Feather MIT通知完整。本轮未取得或宣称Phase7整体通过。diff --git a/docs/UI_CONTROLS_V4_DELIVERY_2026-09-08.md b/docs/UI_CONTROLS_V4_DELIVERY_2026-09-08.mdnew file mode 100644index 00000000..1f2dd64e--- /dev/null+++ b/docs/UI_CONTROLS_V4_DELIVERY_2026-09-08.md@@ -0,0 +1,57 @@+# 底栏常用操作与毛玻璃选择器交付++基线本地提交:`97ccd19`。当前仍为 **Phase 7 / needs_review**;本次完成用户要求的UI范围,整体产品门禁、实卡验收与分发边界不因这次UI更新改变。++最终程序:`out/build/x64-release/veyra.exe`,SHA256:++`7EEA31511FFA649F3E6B0829F5D1D3A5D454010167A70137786D4430F71E9514`++## 最终行为++- 日常底栏直接显示打开、采集卡、最近文件、总增强、SR、停止/播放、音量、字幕、全屏、专业模式、最小化和关闭。文件名与时间放上行。删除齿轮菜单入口;窄窗口收起部分文字而保留所有操作。720px实际检查无重叠,SR文字完整。+- 图标采用Lucide,24个用途映射到23份SVG,统一线宽与圆头矢量绘制。固定上游版本 `a537cb6eb323b885f4c60baf3cec1a995982d167`,原文件与完整ISC / Feather MIT许可证保留。程序运行时无需字体、下载或额外图标库。+- 字幕与全部应用内下拉框共用深色Desktop Acrylic弹层:圆角、细边、橙色当前值与勾选,方向键/首尾键、回车、Esc、正反Tab、滚动、外部关闭与焦点恢复。保留原生LISTBOX可访问名称与COMBOBOX通知契约。异步刷新或同步通知取消/销毁不会提交失效选项。+- 底栏SR与专业面板共享设置处理;总增强关闭后SR显示关闭,点击SR可以恢复总增强,非法数值草稿不阻挡开关也不会被提交。+- 保留真实桌面毛玻璃和不透明视频。未打开媒体时视频区纯黑;专业展开动画、视频全屏和原有播放/导出处理保持原合同。Windows文件对话框、独立采集设置窗口的外框仍采用系统/普通深色界面,其下拉选择已共用新弹层。++## 修改文件++- `apps/veyra/ui/AppShell.cpp`:底栏、专业来源栏、共享SR路由、字幕弹层、唯一HWND布局批次。+- `apps/veyra/ui/Theme.h`、`PopupSelector.h`、`TransportLayout.h`、`LucideIcons.h`:控件绘制、弹层行为、响应布局和矢量路径。+- `assets/icons/lucide/*`、`scripts/generate-lucide-icons.py`、`THIRD_PARTY_NOTICES.md`:固定源SVG、许可证、文件身份与可重建生成器。生成器开发依赖fonttools4.64.0;没有把该依赖带入播放器。+- `tests/unit/UiContractTests.cpp`、`tests/integration/PopupSelectorTests.cpp`、`apps/veyra/ui/UiRepairChecks.h`、`CMakeLists.txt`、`scripts/acceptance/ui-controls-v4.ps1`:窄布局、14场景原生弹层交互、实际底栏按钮与SR恢复检查。+- 本报告、独立复核记录、使用指南、WORKLOG、DELIVERY_STATUS与loop记录:实际结果及延续状态。++## 实际命令与结果++每次测试调用均小于300秒;累计测试时间不是单轮上限。++| 命令 | 结果与证据 |+| --- | --- |+| `powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/build.ps1 -Root . -Preset x64-release` | 最终构建成功,`logs/ui-controls-v4/build-final.log`。 |+| `powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/acceptance/ui-controls-v4.ps1 -Root .` | 最终EXE,1.312秒PASS:固定图标/许可身份、各宽度布局、14个原生弹层交互场景。`logs/ui-controls-v4/b03d18f21e404b7a9106c133ea05395f/result.json`。 |+| `powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/acceptance/ui-dual-mode.ps1 -Root . -Case switch` | 最终EXE,15.008秒PASS,40次模式切换。`logs/ui-dual-mode/e0a09d4eef9541edb9607853133bae26/result.json`。 |+| `veyra.exe --smoke-seconds 25 --nr --no-sr --no-fg --smoke-repair-ui logs/ui-repair-v3/cabd46022aa244d2a521bea6807773fd/aspect-4x3.png` | 最终EXE,25.858秒、exit0:实际原生NR/SR点击、NaN草稿、总增强、底栏所有控件可见与互不重叠、滚动和全屏。实际命令中媒体绝对路径已加引号,见`logs/ui-controls-v4/native-sr-final.json`及`.app.log`。 |+| `powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/acceptance/ui-repair-v3.ps1 -Root .` | 最后12DIP排版微调前的EXE `AAEF44C6…795E5F1`,80.91秒、11命令PASS,包括图片/视频SR、失败回滚与2880×2160导出解码。`logs/ui-repair-v3/cabd46022aa244d2a521bea6807773fd/result.json`。 |+| `powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/acceptance/ui-dual-mode.ps1 -Root . -Case all` | 同一排版微调前EXE,141.503秒、15命令PASS,包括切换/暂停、总开关与回滚、音量、冻结设置导出、取消和退出。`logs/ui-dual-mode/abe2b4a697e344a3aa6a8825081a196c/result.json`。 |++不是只编译:本机NVIDIA实验运行时已实际执行。最终`native-sr-final.app.log`记录 `CreateFeature id=18 result=0x1 (NVSDK_NGX_Result_Success) handle=non-null seh=0`;SR `Evaluate #1 result=0x1`;结束 `failed=false nrEvaluated=5`。底栏SR恢复与专业开关同步、NaN草稿保留断言为true。视频和导出证据分别在上述80.91秒专项及141.503秒全套日志;静态图片不冒充视频/NVOF或采集卡实测。++## 实际窗口检查++使用Computer Use操作真实程序,未用网页模型代替原生窗口。检查底栏入口、720px缩窄、专业面板、字幕及NR档位弹层、方向键高亮、回车确认和Esc取消。++- `logs/ui-controls-v4/daily-final.jpg`:最终EXE,宽窗口底栏。+- `logs/ui-controls-v4/daily-720-final.jpg`:最终EXE,720px窗口,SR完整可读。+- `logs/ui-controls-v4/subtitle-popup.jpg`、`professional-selector.jpg`:本轮早期同样式构建的弹层截图;后续改动为取消/焦点行为及SR宽度,不能把这两张标成最终EXE抓图。+- `logs/ui-controls-v4/visual-delivery.app.log`:最终实际窗口,字幕弹层打开与取消,180秒预览正常自动退出;预览不保存用户偏好。++## 失败、复核与剩余边界++保留早期失败日志:一次非Unicode测试目标的IDC_ARROW类型不匹配已改为明确宽字符资源;预览占用EXE造成的链接失败经正常关闭/限时预览结束后重建解决;首次实际布局缺少新增按钮,原因是同批重复HIDE/SHOW;弹层Tab测试最初因STARTUPINFO隐藏了测试窗口失败,显式显示测试fixture后原断言通过;720px的SR省略已增加12DIP宽度修复。未改断言自我放行。++[独立只读复核](REVIEW_UI_CONTROLS_V4_2026-09-08.md)核对源码、许可与真实14场景结果,限定范围未发现未关闭P0/P1/P2。最终12DIP排版调整另经主Agent测试与实际窗口复核。++七个保护文件与既有基线全部相同,见`logs/ui-controls-v4/protected-after.json`;两个指定二进制与staged NR哈希相符。没有改保护门禁、SDK、runtime或用户已删除的媒体。没有上传、发布或打包。本轮没有开启采集流;实卡、长稳、多屏物理DPI/IME候选及分发仍沿用既有未验收边界,旧delivery gate失败没有被本次UI测试消除。++下一条唯一任务:用户从`Veyra.cmd`验收新的直接操作底栏和统一选择器,并按原合同完成实卡体验验收。diff --git a/docs/USER_GUIDE.md b/docs/USER_GUIDE.mdindex f95a6fe2..f3a4f45e 100644--- a/docs/USER_GUIDE.md+++ b/docs/USER_GUIDE.md@@ -4,9 +4,11 @@## 两种界面-启动始终进入日常模式。上方全部留给视频,底部一条控制栏提供打开、进度、播放、音量、字幕和全屏;齿轮菜单里提供采集卡、最近文件、增强总开关和超分。底部右侧“切换专业模式”展开专业工作台:左侧图标栏切换来源,右侧四个标签集中增强、补帧、预设和导出;下方显示真实处理尺寸和最近NR阶段耗时。专业模式顶部提供预设快捷选择。+启动始终进入日常模式。上方全部留给视频,底栏上行显示时间和文件名,下行直接提供打开、采集卡、最近文件、增强总开关、SR超分、停止/播放、音量、字幕、全屏、专业模式、最小化和关闭。没有隐藏这些功能的齿轮菜单。窄窗口收起部分文字、保留全部图标入口;悬停可查看名称。图标使用免费可商用的 Lucide,许可证保留在 `assets/icons/lucide/LICENSE`。-展开和收起采用240毫秒动画,连续反向点击从当前展开位置返回。两种模式保留同一个视频宿主和播放会话,不重新打开文件,不套用另一套画质参数。专业模式的对比状态会记住,但日常模式恢复正常增强显示。小窗口通过“参数”按钮打开右侧抽屉。窗口空白处可拖动,边缘可调整尺寸;日常模式底部齿轮菜单也提供最小化和退出。+底部“专业模式”展开专业工作台:左侧图标栏提供视频、采集、图片和最近文件,右侧四个标签集中增强、补帧、预设和导出;下方显示真实处理尺寸和最近NR阶段耗时。专业模式顶部提供预设快捷选择。字幕菜单和软件内下拉选项共用圆角毛玻璃弹层,橙色勾选标记表示当前值;方向键选择、回车确认、Esc取消,Tab/Shift+Tab取消并移到相邻控件。长列表支持滚轮和首尾键。Windows文件选择对话框保留系统操作方式。++展开和收起采用240毫秒动画,连续反向点击从当前展开位置返回。两种模式保留同一个视频宿主和播放会话,不重新打开文件,不套用另一套画质参数。专业模式的对比状态会记住,但日常模式恢复正常增强显示。小窗口通过“参数”按钮打开右侧抽屉。窗口空白处可拖动,边缘可调整尺寸;日常模式底部右侧提供最小化和关闭。增强总开关关闭时真正旁路NR、SR与补帧,开启后恢复配置。关闭期间修改数值只保存待启用配置;直接开启专业NR或超分开关,也会开启总增强。NR和超分开关点击后立即请求生效,无需再点“应用整套设置”,数值草稿不会阻挡它们。界面显示“正在应用”时,以右栏已应用版本为准;失败会恢复实际状态。总增强正在切换时,新的整套参数提交暂不执行,草稿保留。@@ -44,10 +46,10 @@## 采集卡与边界-日常模式点底部齿轮→“连接采集卡”,专业模式点左侧采集图标,选择真实视频设备、实际格式和HDMI音频输入。先NR开、FG关检查视频声音,再选补帧倍率。补帧需要等待下一源帧,不能消除采集卡固有延迟。当前修复版本的实卡验收由用户完成,本轮未占用采集卡。+日常模式直接点底部“采集”图标,专业模式点左侧采集图标,选择真实视频设备、实际格式和HDMI音频输入。先NR开、FG关检查视频声音,再选补帧倍率。补帧需要等待下一源帧,不能消除采集卡固有延迟。当前修复版本的实卡验收由用户完成,本轮未占用采集卡。仅Windows x64/NVIDIA/SDR,偶数尺寸最高3840×2160;HDR不支持。Depth provider未实现,当前为NVOF motion + confidence门控,不等同游戏原生深度/运动向量。短测不证明长期稳定、所有采集卡兼容或画质优于其他产品。实际屏幕扫描/光子延迟、多屏物理DPI穿越尚未测量。专有runtime分发权未解决,不打包、上传或发布DLL/SDK。窗口尺寸、位置、音量、字幕等保存在独立UI偏好中;只保存成功应用的画质。损坏的原配置保留,不静默覆盖。程序每次重启仍默认日常模式。-本轮界面修复见 `docs/UI_REPAIR_V3_DELIVERY_2026-09-08.md`,历史双模式结果见 `docs/UI_DUAL_MODE_DELIVERY_2026-09-08.md`,底层既有修复见 `docs/REPAIR_V2_DELIVERY_2026-09-08.md`。测试限制为每次最多300秒,历史累计时间仅作报告。+本轮底栏和选择器修复见 `docs/UI_CONTROLS_V4_DELIVERY_2026-09-08.md`。此前真实毛玻璃、全屏及NR/SR修复见 `docs/UI_REPAIR_V3_DELIVERY_2026-09-08.md`,历史双模式结果见 `docs/UI_DUAL_MODE_DELIVERY_2026-09-08.md`,底层既有修复见 `docs/REPAIR_V2_DELIVERY_2026-09-08.md`。测试限制为每次最多300秒,历史累计时间仅作报告。diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex b271701e..c9b7362d 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -1,3 +1,17 @@+# 2026-09-08 UI v4:常用操作直出与统一玻璃选择器++日常底栏直接提供打开、采集、最近、总增强、SR、播放、音量、字幕、全屏及窗口控制;720px保留全部入口。采用固定来源的Lucide免费图标(完整ISC/Feather MIT通知),字幕和所有应用内下拉框使用同一Desktop Acrylic弹层。保留真实桌面透明与纯黑视频区域。++基线 `97ccd19`;最终EXE SHA256 `7EEA31511FFA649F3E6B0829F5D1D3A5D454010167A70137786D4430F71E9514`。最终布局/14场景弹层专项1.312秒PASS;40次切换15.008秒PASS;原生NR/SR/NaN草稿/底栏可见性25.858秒exit0,Create/Evaluate实际成功。紧邻的12DIP排版微调前,全UI15命令141.503秒PASS,图片/视频/导出专项11命令80.914秒PASS。报告明确区分EXE版本,不把旧证据冒充最终抓图。单次测试均小于300秒。++实际检查宽窗口、720px窗口、字幕/专业下拉、键盘确认取消。独立只读复核通过其限定代码范围;最后SR文字宽度微调另经主Agent验证。保护文件和runtime身份不变,整体仍Phase7/needs_review,实卡、长稳、分发和既有delivery门禁失败不由本轮UI验收代替。++详细文件、命令、真实日志、失败与截图:[UI v4交付报告](UI_CONTROLS_V4_DELIVERY_2026-09-08.md);[只读复核](REVIEW_UI_CONTROLS_V4_2026-09-08.md)。下一条唯一任务:用户验收底栏/选择器,并继续原合同的实卡体验验收。++---++以下为历史记录:+# 2026-09-08 UI修复v3:真实桌面毛玻璃已删除应用内彩色渐变,控制区采用Windows Desktop Acrylic,透出下方桌面或其他窗口的模糊颜色;视频区域不透明、空闲纯黑。同步修复窗口白边、视频全屏、专业NR/SR开关、数值草稿/回滚、滚动裁剪、日常底部布局与240ms展开动画。独立采集对话框仍为普通深色。diff --git a/loop/EVIDENCE.md b/loop/EVIDENCE.mdindex 3a943e15..c7fd6649 100644--- a/loop/EVIDENCE.md+++ b/loop/EVIDENCE.md@@ -381,3 +381,10 @@ Next: user visual/capture audio/latency acceptance. Report docs/UI_DUAL_MODE_DELBaseline b6b251d; build16 exit0, EXE B1892C51E8AFC27D7223E271D48D93107C34CAA96BC4014DFF6F45FDE0D7BF74. Native logs/ui-repair-v3/3fb66a3472264eb4abc1fc61917839a8/result.json:11 commands PASS/81.0014012s. UI logs/ui-dual-mode/13e2d933fe66477797a71b32612af303/result.json:15 commands PASS/141.1874955s. Repair logs/repair-v2/joint-f3c40457ea02481c87dfce0739f51c74/result.json:18 cases PASS/70.4781915s subprocess sum; cumulative558.1472326s retained. Current4K logs/ui-dual-mode/4k-719b7f3002fa42b88abbad8ba0262137/result.json:23 checks PASS/13.7508573s. Every invocation <=300s. Actual RTX Feature18 Create/Evaluate0x1 and actual SR PNG/video dimensions/decode recorded. Switch40 P958.191ms/max9.963ms;442 submissions/epoch1/maxgap18.1116ms;GDI12 andhandles721 stable. Independent readonly review_ui_v3 PASS scoped fixes; see docs/REVIEW_UI_REPAIR_V3_2026-09-08.md.True DWM red/blue desktop proof in desktop-red-final.jpg/desktop-blue-final.jpg (build14 material main path unchanged); actual finalbuild16 Daily/Pro/scroll/diagnostic/fullscreen-hidden screenshots in logs/ui-repair-v3/acrylic-*-final.jpg; Ctrl+A/0.75 input/copy/paste verified. Video and subtitles remain opaque/sharp, empty video black. Removed simulated application artwork. Native reject bfc72 FAIL preserved; corrected observer begins500ms after backend rollback; final log independently shows checkboxfalse->true with draft always preserved. Earlier export cold-start timeout and old-gradient performance failures preserved in report.Protected delivery04388 FAIL legacy23 assertion; protected7 unchanged and fixed root/stagedNR/addon match. Old global Phase7 needs_review retained; no capture, public package/push or shutdown. Next: user visual/capture acceptance. Full report docs/UI_REPAIR_V3_DELIVERY_2026-09-08.md.+++## 2026-09-08 UI controls v4 (interactive; not a new Goal)++User requested direct bottom controls, a free consistent icon set, and glass app selectors. Baseline97ccd19; single writer retained. Native toolbar + Lucide ISC/MIT subset + accessible list/combo popup implemented. Fixed DeferWindowPos hide/show merge, SR effective-state sync, popup synchronous cancel and focus/notification lifetimes. True desktop acrylic and opaque video retained.++Final executable7EEA31511FFA649F3E6B0829F5D1D3A5D454010167A70137786D4430F71E9514: controls/14popup cases PASS1.312s, switch40 PASS15.008s, nativeNR/SR/NaN/bottom controls PASS25.858s. Previous build differs by12DIP compactSR width: fullUI PASS141.503s; image/video/SR/export PASS80.914s. Evidence is version-qualified in docs/UI_CONTROLS_V4_DELIVERY_2026-09-08.md, not combined into a fake Phase7 pass. Actual1280/720 and popup keyboard screenshots retained locally. Independent readonly review scope recorded in docs/REVIEW_UI_CONTROLS_V4_2026-09-08.md. Protected hashes unchanged. No capture stream, runtime change, upload, packaging or shutdown. Global needs_review unchanged. Next: user UI and original capture acceptance.diff --git a/loop/JOURNAL.md b/loop/JOURNAL.mdindex 17d03de4..a548e5a9 100644--- a/loop/JOURNAL.md+++ b/loop/JOURNAL.md@@ -1315,3 +1315,10 @@ User explicitly requires desktop/other-window colors through the chrome, with opBaseline b6b251d; build16 exit0, EXE B1892C51E8AFC27D7223E271D48D93107C34CAA96BC4014DFF6F45FDE0D7BF74. Native logs/ui-repair-v3/3fb66a3472264eb4abc1fc61917839a8/result.json:11 commands PASS/81.0014012s. UI logs/ui-dual-mode/13e2d933fe66477797a71b32612af303/result.json:15 commands PASS/141.1874955s. Repair logs/repair-v2/joint-f3c40457ea02481c87dfce0739f51c74/result.json:18 cases PASS/70.4781915s subprocess sum; cumulative558.1472326s retained. Current4K logs/ui-dual-mode/4k-719b7f3002fa42b88abbad8ba0262137/result.json:23 checks PASS/13.7508573s. Every invocation <=300s. Actual RTX Feature18 Create/Evaluate0x1 and actual SR PNG/video dimensions/decode recorded. Switch40 P958.191ms/max9.963ms;442 submissions/epoch1/maxgap18.1116ms;GDI12 andhandles721 stable. Independent readonly review_ui_v3 PASS scoped fixes; see docs/REVIEW_UI_REPAIR_V3_2026-09-08.md.True DWM red/blue desktop proof in desktop-red-final.jpg/desktop-blue-final.jpg (build14 material main path unchanged); actual finalbuild16 Daily/Pro/scroll/diagnostic/fullscreen-hidden screenshots in logs/ui-repair-v3/acrylic-*-final.jpg; Ctrl+A/0.75 input/copy/paste verified. Video and subtitles remain opaque/sharp, empty video black. Removed simulated application artwork. Native reject bfc72 FAIL preserved; corrected observer begins500ms after backend rollback; final log independently shows checkboxfalse->true with draft always preserved. Earlier export cold-start timeout and old-gradient performance failures preserved in report.Protected delivery04388 FAIL legacy23 assertion; protected7 unchanged and fixed root/stagedNR/addon match. Old global Phase7 needs_review retained; no capture, public package/push or shutdown. Next: user visual/capture acceptance. Full report docs/UI_REPAIR_V3_DELIVERY_2026-09-08.md.+++## 2026-09-08 UI controls v4 (interactive; not a new Goal)++User requested direct bottom controls, a free consistent icon set, and glass app selectors. Baseline97ccd19; single writer retained. Native toolbar + Lucide ISC/MIT subset + accessible list/combo popup implemented. Fixed DeferWindowPos hide/show merge, SR effective-state sync, popup synchronous cancel and focus/notification lifetimes. True desktop acrylic and opaque video retained.++Final executable7EEA31511FFA649F3E6B0829F5D1D3A5D454010167A70137786D4430F71E9514: controls/14popup cases PASS1.312s, switch40 PASS15.008s, nativeNR/SR/NaN/bottom controls PASS25.858s. Previous build differs by12DIP compactSR width: fullUI PASS141.503s; image/video/SR/export PASS80.914s. Evidence is version-qualified in docs/UI_CONTROLS_V4_DELIVERY_2026-09-08.md, not combined into a fake Phase7 pass. Actual1280/720 and popup keyboard screenshots retained locally. Independent readonly review scope recorded in docs/REVIEW_UI_CONTROLS_V4_2026-09-08.md. Protected hashes unchanged. No capture stream, runtime change, upload, packaging or shutdown. Global needs_review unchanged. Next: user UI and original capture acceptance.diff --git a/loop/STATE.json b/loop/STATE.jsonindex 29f653f9..ee61e0d4 100644--- a/loop/STATE.json+++ b/loop/STATE.json@@ -214,5 +214,21 @@"system transparency/high-contrast policy fallback","proprietary distribution blocked"]+ },+ "uiControlsV4": {+ "date": "2026-09-08",+ "status": "scoped_ui_verified",+ "baselineCommit": "97ccd19",+ "exeSha256": "7EEA31511FFA649F3E6B0829F5D1D3A5D454010167A70137786D4430F71E9514",+ "report": "docs/UI_CONTROLS_V4_DELIVERY_2026-09-08.md",+ "review": "docs/REVIEW_UI_CONTROLS_V4_2026-09-08.md",+ "finalControls": "logs/ui-controls-v4/b03d18f21e404b7a9106c133ea05395f/result.json",+ "finalSwitch": "logs/ui-dual-mode/e0a09d4eef9541edb9607853133bae26/result.json",+ "finalNativeSr": "logs/ui-controls-v4/native-sr-final.json",+ "priorWidthTweakAllUi": "logs/ui-dual-mode/abe2b4a697e344a3aa6a8825081a196c/result.json",+ "priorWidthTweakRepair": "logs/ui-repair-v3/cabd46022aa244d2a521bea6807773fd/result.json",+ "phaseApprovalUnchanged": true,+ "captureHardwareTested": false,+ "nextAction": "User validates direct toolbar and themed selectors; existing capture acceptance remains with user."}}diff --git a/scripts/acceptance/ui-controls-v4.ps1 b/scripts/acceptance/ui-controls-v4.ps1new file mode 100644index 00000000..65e3401b--- /dev/null+++ b/scripts/acceptance/ui-controls-v4.ps1@@ -0,0 +1,31 @@+[CmdletBinding()]+param([string]$Root=(Join-Path $PSScriptRoot '../..'),[ValidateRange(1,300)][int]$MaxRuntimeSeconds=60)+Set-StrictMode -Version Latest+$ErrorActionPreference='Stop'+$Root=(Resolve-Path -LiteralPath $Root).Path+$timer=[Diagnostics.Stopwatch]::StartNew()+$dir=Join-Path $Root ('logs/ui-controls-v4/'+[guid]::NewGuid().ToString('N'))+New-Item -ItemType Directory -Path $dir|Out-Null+$checks=[Collections.Generic.List[object]]::new();$passed=$false;$failure=''+function Run([string]$name,[string]$binary,[string]$arguments=''){+ $left=$MaxRuntimeSeconds-$timer.Elapsed.TotalSeconds;if($left -lt 1){throw 'Per-invocation limit reached'}+ $p=$null;$clock=[Diagnostics.Stopwatch]::StartNew()+ try{+ $options=@{FilePath=$binary;WorkingDirectory=$Root;WindowStyle='Hidden';PassThru=$true;RedirectStandardOutput=(Join-Path $dir ($name+'.stdout.log'));RedirectStandardError=(Join-Path $dir ($name+'.stderr.log'))}+ if($arguments){$options.ArgumentList=$arguments};$p=Start-Process @options;$handle=$p.Handle+ if(-not $p.WaitForExit([int]($left*1000))){throw "$name timeout"}+ $checks.Add(@{name=$name;command=$binary+' '+$arguments;exit=$p.ExitCode;seconds=$clock.Elapsed.TotalSeconds})+ if($p.ExitCode -ne 0){throw "$name exit $($p.ExitCode)"}+ }finally{if($p -and -not $p.HasExited){Stop-Process -Id $p.Id;$p.WaitForExit()}}+}+try{+ $manifest=Get-Content (Join-Path $Root 'assets/icons/lucide/manifest.json') -Raw|ConvertFrom-Json+ foreach($entry in $manifest.sha256.PSObject.Properties){$actual=(Get-FileHash (Join-Path $Root ('assets/icons/lucide/'+$entry.Name)) -Algorithm SHA256).Hash;if($actual -ne $entry.Value){throw "Icon license/asset identity mismatch: $($entry.Name)"}}+ $checks.Add(@{name='lucide-pinned-assets-and-license';revision=$manifest.revision;files=@($manifest.sha256.PSObject.Properties).Count;exit=0})+ Run 'layout-state' (Join-Path $Root 'out/build/x64-release/veyra_ui_contract_tests.exe') ('"'+(Join-Path $dir 'preferences')+'"')+ Run 'native-popup-interaction' (Join-Path $Root 'out/build/x64-release/veyra_popup_selector_tests.exe')+ $passed=$true+}catch{$failure=$_.Exception.Message}+$result=@{passed=$passed;scope='UI controls and selectors only; not Phase7 product approval';exeSha256=(Get-FileHash (Join-Path $Root 'out/build/x64-release/veyra.exe') -Algorithm SHA256).Hash;seconds=$timer.Elapsed.TotalSeconds;maxRuntimeSeconds=$MaxRuntimeSeconds;checks=$checks;failure=$failure}+$result|ConvertTo-Json -Depth 8|Set-Content -LiteralPath (Join-Path $dir 'result.json') -Encoding UTF8+Write-Output (Join-Path $dir 'result.json');if(-not $passed){Write-Error $failure;exit 1}diff --git a/scripts/generate-lucide-icons.py b/scripts/generate-lucide-icons.pynew file mode 100644index 00000000..c5a4a780--- /dev/null+++ b/scripts/generate-lucide-icons.py@@ -0,0 +1,83 @@+"""Generate the native vector subset; development-only dependency: fonttools 4.64.0.++Run with PYTHONPATH pointing at an optional local fonttools installation.+SVGs and LICENSE are pinned, retained verbatim, and never fetched by Veyra.+"""+from pathlib import Path+import hashlib+import json+import urllib.request+import xml.etree.ElementTree as ET+from fontTools.svgLib.path import parse_path+from fontTools.pens.recordingPen import RecordingPen++ROOT = Path(__file__).resolve().parents[1]+REVISION = "a537cb6eb323b885f4c60baf3cec1a995982d167"+ICONS = dict(Play="play", Pause="pause", Stop="square", Volume="volume-2",+ Muted="volume-x", Fullscreen="maximize", Video="folder-open",+ Capture="monitor", Image="image", Subtitle="captions",+ Minimize="minus", Maximize="square", Close="x", Back="chevron-left",+ Settings="sliders-horizontal", Recent="clock", Enhance="sparkles",+ Upscale="scan", PanelOpen="panel-right-open", PanelClose="panel-right-close",+ Check="check", Chevron="chevron-down", Load="file-plus", Type="type")+DEST = ROOT / "assets/icons/lucide"+DEST.mkdir(parents=True, exist_ok=True)+manifest = {"repository": "https://github.com/lucide-icons/lucide", "revision": REVISION,+ "generator": "fonttools 4.64.0; SVG paths converted to GDI+ cubic paths", "sha256": {}}+for name in ["LICENSE"] + [f"icons/{n}.svg" for n in sorted(set(ICONS.values()))]:+ file = DEST / name.rsplit("/", 1)[-1]+ if not file.exists():+ print(f"Fetching {name}", flush=True)+ file.write_bytes(urllib.request.urlopen(f"https://raw.githubusercontent.com/lucide-icons/lucide/{REVISION}/{name}").read())+ manifest["sha256"][file.name] = hashlib.sha256(file.read_bytes()).hexdigest()++def paths(element):+ a = element.attrib+ tag = element.tag.split("}")[-1]+ if tag == "path": return a["d"]+ if tag == "line": return f'M{a["x1"]} {a["y1"]}L{a["x2"]} {a["y2"]}'+ if tag in ("polyline", "polygon"): return "M" + a["points"] + ("Z" if tag == "polygon" else "")+ if tag == "circle":+ x, y, r = [float(a[k]) for k in ("cx", "cy", "r")]+ return f"M{x-r} {y}a{r} {r} 0 1 0 {2*r} 0a{r} {r} 0 1 0 {-2*r} 0Z"+ if tag == "rect":+ x,y,w,h = [float(a.get(k,0)) for k in ("x","y","width","height")]+ r = min(float(a.get("rx",0)),w/2,h/2)+ if not r: return f"M{x} {y}h{w}v{h}h{-w}Z"+ return f"M{x+r} {y}h{w-2*r}a{r} {r} 0 0 1 {r} {r}v{h-2*r}a{r} {r} 0 0 1 {-r} {r}h{2*r-w}a{r} {r} 0 0 1 {-r} {-r}v{2*r-h}a{r} {r} 0 0 1 {r} {-r}Z"+ raise ValueError(tag)++def number(v): return f"{float(v):.7f}f"+def point(p): return ",".join(map(number,p))+output = ["// Generated by scripts/generate-lucide-icons.py. Do not hand edit.",+ "// Lucide ISC + Feather MIT; full notices: assets/icons/lucide/LICENSE.",+ "#pragma once", '#include "GlassMaterial.h"', "namespace veyra::ui {",+ "enum class Icon { None," + ",".join(ICONS) + " };",+ "inline void drawIcon(HDC dc,Icon icon,float x,float y,float size,COLORREF c){",+ "using namespace Gdiplus; AlphaGraphics drawing(dc);auto& g=drawing.get();",+ "g.SetSmoothingMode(SmoothingModeAntiAlias);g.TranslateTransform(x-size/2,y-size/2);g.ScaleTransform(size/24,size/24);",+ "Pen pen(Color(255,GetRValue(c),GetGValue(c),GetBValue(c)),1.8f);pen.SetStartCap(LineCapRound);pen.SetEndCap(LineCapRound);pen.SetLineJoin(LineJoinRound);GraphicsPath p;switch(icon){"]+for key,name in ICONS.items():+ output.append(f"case Icon::{key}: // {name}.svg")+ for element in ET.parse(DEST / f"{name}.svg").getroot():+ pen = RecordingPen()+ parse_path(paths(element),pen)+ current = None+ for op,args in pen.value:+ if op == "moveTo":+ output.append("p.StartFigure();")+ current = args[0]+ elif op == "lineTo":+ output.append(f"p.AddLine({point(current)},{point(args[0])});")+ current = args[0]+ elif op == "curveTo":+ assert len(args)==3+ output.append("p.AddBezier(" + ",".join(point(v) for v in (current, *args)) + ");")+ current = args[-1]+ elif op == "closePath": output.append("p.CloseFigure();")+ elif op != "endPath": raise ValueError(op)+ output.append("break;")+output += ["default: return;}g.DrawPath(&pen,&p);", "}", "}", ""]+(ROOT / "apps/veyra/ui/LucideIcons.h").write_text("\n".join(output),encoding="utf-8")+(DEST / "manifest.json").write_text(json.dumps(manifest,indent=2)+"\n",encoding="utf-8")+print(f"Generated {len(ICONS)} native icons from {REVISION}")diff --git a/tests/integration/PopupSelectorTests.cpp b/tests/integration/PopupSelectorTests.cppnew file mode 100644index 00000000..d4cc76f8--- /dev/null+++ b/tests/integration/PopupSelectorTests.cpp@@ -0,0 +1,53 @@+#include "../../apps/veyra/ui/Theme.h"+#include <iostream>+#include <stdexcept>+namespace {+HWND owner=nullptr,combo=nullptr,next=nullptr,previous=nullptr;int action=0,steps=0;std::vector<int> notifications;+void require(bool condition,const char* reason){if(!condition)throw std::runtime_error(reason);}+LRESULT CALLBACK proc(HWND h,UINT m,WPARAM w,LPARAM l){+ if(m==WM_COMMAND&&LOWORD(w)==10){notifications.push_back(HIWORD(w));if(action==8&&HIWORD(w)==CBN_DROPDOWN)SendMessageW(combo,CB_SHOWDROPDOWN,FALSE,0);if(action==11&&HIWORD(w)==CBN_SELENDOK)DestroyWindow(combo);if(action==12&&HIWORD(w)==CBN_DROPDOWN)DestroyWindow(owner);return 0;}+ if(m==WM_TIMER){using namespace veyra::ui;if(!activeSelector)return 0;auto list=GetDlgItem(activeSelector,1);++steps;+ if(steps>10){cancelPopupSelector();return 0;}+ switch(action){+ case 0:SendMessageW(list,WM_KEYDOWN,VK_DOWN,0);SendMessageW(list,WM_KEYDOWN,VK_RETURN,0);break;+ case 1:SendMessageW(list,WM_KEYDOWN,VK_DOWN,0);SendMessageW(list,WM_KEYDOWN,VK_ESCAPE,0);break;+ case 2:SendMessageW(combo,CB_SHOWDROPDOWN,FALSE,0);break;+ case 3:SendMessageW(list,WM_KEYDOWN,VK_TAB,0);break;+ case 4:SendMessageW(combo,CB_RESETCONTENT,0,0);SendMessageW(combo,CB_ADDSTRING,0,LPARAM(L"replaced"));SendMessageW(list,WM_KEYDOWN,VK_RETURN,0);break;+ case 5:SendMessageW(list,WM_KEYDOWN,VK_END,0);SendMessageW(list,WM_KEYDOWN,VK_RETURN,0);break;+ case 6:EnableWindow(combo,FALSE);break;+ case 7:ShowWindow(owner,SW_HIDE);break;+ case 9:DestroyWindow(combo);break;+ case 10:DestroyWindow(owner);break;+ case 11:SendMessageW(list,WM_KEYDOWN,VK_DOWN,0);SendMessageW(list,WM_KEYDOWN,VK_RETURN,0);break;+ case 13:{BYTE saved[256]{},shifted[256]{};GetKeyboardState(saved);std::copy_n(saved,256,shifted);shifted[VK_SHIFT]|=0x80;SetKeyboardState(shifted);SendMessageW(list,WM_KEYDOWN,VK_TAB,0);SetKeyboardState(saved);break;}+ }return 0;+ }return DefWindowProcW(h,m,w,l);+}+bool notified(int code){return std::find(notifications.begin(),notifications.end(),code)!=notifications.end();}+}+int wmain(){ULONG_PTR gdiplus=0;Gdiplus::GdiplusStartupInput input;Gdiplus::GdiplusStartup(&gdiplus,&input,nullptr);int result=0;+try{+ INITCOMMONCONTROLSEX common{sizeof(common),ICC_STANDARD_CLASSES};InitCommonControlsEx(&common);WNDCLASSW wc{};wc.lpfnWndProc=proc;wc.lpszClassName=L"VeyraSelectorContract";wc.hInstance=GetModuleHandleW(nullptr);RegisterClassW(&wc);+ for(action=0;action<=13;++action){+ owner=CreateWindowExW(WS_EX_CONTROLPARENT,wc.lpszClassName,L"Veyra popup interaction test",WS_OVERLAPPEDWINDOW,20,20,480,320,nullptr,nullptr,wc.hInstance,nullptr);+ previous=CreateWindowExW(0,L"BUTTON",L"previous",WS_CHILD|WS_VISIBLE|WS_TABSTOP,20,5,100,24,owner,HMENU(9),wc.hInstance,nullptr);+ combo=CreateWindowExW(0,L"COMBOBOX",L"choices",WS_CHILD|WS_VISIBLE|WS_TABSTOP|CBS_DROPDOWNLIST,20,40,300,200,owner,HMENU(10),wc.hInstance,nullptr);veyra::ui::themeControl(combo);+ next=CreateWindowExW(0,L"BUTTON",L"next",WS_CHILD|WS_VISIBLE|WS_TABSTOP,20,100,100,32,owner,HMENU(11),wc.hInstance,nullptr);+ // First ShowWindow consumes the runner's STARTUPINFO SW_HIDE.+ ShowWindow(owner,SW_HIDE);ShowWindow(owner,SW_SHOW);SetForegroundWindow(owner);SetActiveWindow(owner);+ for(int i=0;i<24;++i){auto label=L"Option "+std::to_wstring(i);SendMessageW(combo,CB_ADDSTRING,0,LPARAM(label.c_str()));}SendMessageW(combo,CB_SETCURSEL,4,0);SetFocus(combo);notifications.clear();steps=0;SetTimer(owner,1,20,nullptr);+ SendMessageW(combo,CB_SHOWDROPDOWN,TRUE,0);if(IsWindow(owner))KillTimer(owner,1);require(action==8||action==12?steps==0:steps>0&&steps<=10,"bounded popup closed including synchronous cancellation");require(!veyra::ui::popupSelectorOpen()&&!veyra::ui::activeSelector,"popup releases all active state");+ if(action>=9&&action<=12){require(!IsWindow(combo),"destroyed combo stays destroyed");if(action==10||action==12)require(!IsWindow(owner),"destroyed owner stays destroyed");if(IsWindow(owner))DestroyWindow(owner);std::cout<<"PASS popup case "<<action<<"\n";continue;}+ require(!SendMessageW(combo,CB_GETDROPPEDSTATE,0,0),"collapse reports closed");require(notified(CBN_DROPDOWN)&¬ified(CBN_CLOSEUP),"native dropdown lifecycle notifications");+ if(action==0||action==5){require(SendMessageW(combo,CB_GETCURSEL,0,0)==(action==0?5:23),"arrow/end commits selected option including scrolled items");require(notified(CBN_SELCHANGE)&¬ified(CBN_SELENDOK),"commit notifies owning panel");}+ else{require(notified(CBN_SELENDCANCEL)&&!notified(CBN_SELCHANGE),"cancel never submits a setting");if(action!=4)require(SendMessageW(combo,CB_GETCURSEL,0,0)==4,"cancel keeps original selection");}+ if(action==3)require(GetFocus()==next,"Tab advances to next control");+ if(action==13)require(GetFocus()==previous,"Shift+Tab returns to previous control");+ DestroyWindow(owner);+ std::cout<<"PASS popup case "<<action<<"\n";+ }+ std::cout<<"PASS: popup keyboard, scrolling, cancel, collapse, focus traversal, async refresh, disable/hide/destroy\n";+}catch(const std::exception& e){std::cerr<<"FAIL: "<<e.what()<<'\n';result=1;}+if(IsWindow(owner))DestroyWindow(owner);veyra::ui::glassTextTheme().reset();Gdiplus::GdiplusShutdown(gdiplus);return result;+}diff --git a/tests/unit/UiContractTests.cpp b/tests/unit/UiContractTests.cppindex cb195b83..78a40ba7 100644--- a/tests/unit/UiContractTests.cpp+++ b/tests/unit/UiContractTests.cpp@@ -1,6 +1,7 @@#include "../../apps/veyra/ui/UiSessionState.h"#include "../../apps/veyra/ui/WorkspaceChrome.h"#include "../../apps/veyra/ui/WorkspaceTransition.h"+#include "../../apps/veyra/ui/TransportLayout.h"#include "../../apps/veyra/ui/UiPreferenceStore.h"#include "veyra/sink/AudioGain.h"#include <iostream>@@ -12,6 +13,11 @@ int wmain(int argc,wchar_t** argv){try{ui::UiSessionState state;state.configured.multiplier=4;state.configured.sr=true;state.configured.model.intensity=.37f;state.configured.residual.color=1.4f;auto before=state.effective();require(state.mode==ui::Mode::Daily,"startup Daily");state.mode=ui::Mode::Professional;require(state.effective()==before,"mode cannot alter settings");state.enhanced=false;auto bypass=state.effective();require(!bypass.nr&&!bypass.sr&&bypass.multiplier==1,"true full bypass");state.enhanced=true;require(state.effective()==before,"restore all settings");ui::ChromeLayout daily(1440,900,false,false);require(daily.left==0&&daily.top==0&&daily.viewWidth==1440&&daily.viewHeight==812&&daily.bottom==812,"daily video owns all space above transport");+ for(int width:{688,768,868,928,1008,1040,1148,1248,1888,2528}){+ ui::TransportLayout t(width,true);std::vector<ui::TransportSlot> slots={t.open,t.capture,t.recent,t.master,t.sr,t.stop,t.play,t.mute,t.volume,t.subtitle,t.fullscreen,t.mode,t.minimize,t.close};+ for(size_t i=0;i<slots.size();++i){require(slots[i].width>0&&slots[i].x>=0&&slots[i].x+slots[i].width<=width,"all daily actions visible and contained");for(size_t j=0;j<i;++j)require(slots[i].x>=slots[j].x+slots[j].width||slots[j].x>=slots[i].x+slots[i].width,"direct daily actions do not overlap");}+ }+ for(int width:{290,400,480,508,700,1000}){ui::TransportLayout t(width,false);require(t.play.x+t.play.width<=t.mute.x&&t.stop.x+t.stop.width<=t.mute.x,"compact professional transport leaves room for audio and subtitle controls");}ui::WorkspaceTransition animation;animation.start(true,1000);animation.sample(1120);const auto halfway=animation.value;require(halfway>.49&&halfway<.51,"visible intermediate expansion");animation.start(false,1120);require(animation.value==halfway,"reverse without jump");animation.sample(1240);require(animation.value>0&&animation.value<halfway,"panel collapses progressively");animation.sample(1360);require(!animation.running&&animation.value==0,"collapse ends exactly");using pipeline::ResolutionPlan;using pipeline::NrSizePolicy;using pipeline::Extent;require(ResolutionPlan::make({1448,1086},true,NrSizePolicy::Native,true).output==Extent{2880,2160},"4:3 SR preserves aspect");