refactor/pure-qt-ui #3

Merged
gaozheng merged 56 commits from refactor/pure-qt-ui into main 2026-06-10 18:41:53 +08:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 425e17e6af - Show all commits

View File

@ -20,7 +20,7 @@ void rebuildCentralScene(geopro::render::Scene& scene, vtkRenderer* renderer,
scene.clear(); scene.clear();
const bool is2D = (mode == ViewMode::Map2D); const bool is2D = (mode == ViewMode::Map2D);
(void)is2D; (void)is2D;
// 背景随主题(取 ElaTheme 窗口底色),暗色下不再是刺眼白底 // 背景永远深色规范§0.5 视图区常深,不随明暗切换),让色阶数据更突出
double bgR, bgG, bgB; double bgR, bgG, bgB;
geopro::app::vtkBackground(bgR, bgG, bgB); geopro::app::vtkBackground(bgR, bgG, bgB);
renderer->SetBackground(bgR, bgG, bgB); renderer->SetBackground(bgR, bgG, bgB);

View File

@ -668,7 +668,8 @@ QString themed(const QString& designQss)
void vtkBackground(double& r, double& g, double& b) void vtkBackground(double& r, double& g, double& b)
{ {
const QColor c = roleColor(isDarkTheme(), "#F4F6FA"); // 规范 §0.5/§11数据画布永远深色不随明暗切换。取 canvas/bg。
const QColor c = tokenColor("canvas/bg"); // #0B1320
r = c.redF(); r = c.redF();
g = c.greenF(); g = c.greenF();
b = c.blueF(); b = c.blueF();