@@ -382,13 +382,13 @@ MainWindow::MainWindow(QWidget *parent)
382382 dashboard->setTitleColor (QColor (144 , 133 , 116 ));
383383
384384 // 更新按钮颜色
385- updateColorButton (arcColorButton, QColor ( 56 , 61 , 74 ));
386- updateColorButton (scaleColorButton, QColor ( 4 , 168 , 173 ));
387- updateColorButton (pointerColorButton, QColor ( 4 , 181 , 200 ));
388- updateColorButton (textColorButton, QColor ( 144 , 133 , 116 ));
389- updateColorButton (backgroundColorButton, Qt::transparent );
390- updateColorButton (valueColorButton, QColor ( 144 , 133 , 116 ));
391- updateColorButton (titleColorButton, QColor ( 144 , 133 , 116 ));
385+ updateColorButton (arcColorButton, dashboard-> arcColor ( ));
386+ updateColorButton (scaleColorButton, dashboard-> scaleColor ( ));
387+ updateColorButton (pointerColorButton, dashboard-> pointerColor ( ));
388+ updateColorButton (textColorButton, dashboard-> textColor ( ));
389+ updateColorButton (backgroundColorButton, dashboard-> backgroundColor () );
390+ updateColorButton (valueColorButton, dashboard-> valueColor ( ));
391+ updateColorButton (titleColorButton, dashboard-> titleColor ( ));
392392 });
393393
394394 connect (darkThemeButton,
@@ -413,13 +413,13 @@ MainWindow::MainWindow(QWidget *parent)
413413 dashboard->setTitleColor (QColor (224 , 108 , 117 ));
414414
415415 // 更新按钮颜色
416- updateColorButton (arcColorButton, QColor ( 40 , 44 , 52 ));
417- updateColorButton (scaleColorButton, QColor ( 97 , 175 , 239 ));
418- updateColorButton (pointerColorButton, QColor ( 198 , 120 , 221 ));
419- updateColorButton (textColorButton, QColor ( 171 , 178 , 191 ));
420- updateColorButton (backgroundColorButton, QColor ( 33 , 37 , 43 ));
421- updateColorButton (valueColorButton, QColor ( 152 , 195 , 121 ));
422- updateColorButton (titleColorButton, QColor ( 224 , 108 , 117 ));
416+ updateColorButton (arcColorButton, dashboard-> arcColor ( ));
417+ updateColorButton (scaleColorButton, dashboard-> scaleColor ( ));
418+ updateColorButton (pointerColorButton, dashboard-> pointerColor ( ));
419+ updateColorButton (textColorButton, dashboard-> textColor ( ));
420+ updateColorButton (backgroundColorButton, dashboard-> backgroundColor ( ));
421+ updateColorButton (valueColorButton, dashboard-> valueColor ( ));
422+ updateColorButton (titleColorButton, dashboard-> titleColor ( ));
423423 });
424424
425425 connect (modernThemeButton,
@@ -444,13 +444,13 @@ MainWindow::MainWindow(QWidget *parent)
444444 dashboard->setTitleColor (QColor (65 , 105 , 225 ));
445445
446446 // 更新按钮颜色
447- updateColorButton (arcColorButton, QColor ( 70 , 130 , 180 ));
448- updateColorButton (scaleColorButton, QColor ( 100 , 149 , 237 ));
449- updateColorButton (pointerColorButton, QColor ( 220 , 20 , 60 ));
450- updateColorButton (textColorButton, QColor ( 47 , 79 , 79 ));
451- updateColorButton (backgroundColorButton, QColor ( 240 , 248 , 255 ));
452- updateColorButton (valueColorButton, QColor ( 25 , 25 , 112 ));
453- updateColorButton (titleColorButton, QColor ( 65 , 105 , 225 ));
447+ updateColorButton (arcColorButton, dashboard-> arcColor ( ));
448+ updateColorButton (scaleColorButton, dashboard-> scaleColor ( ));
449+ updateColorButton (pointerColorButton, dashboard-> pointerColor ( ));
450+ updateColorButton (textColorButton, dashboard-> textColor ( ));
451+ updateColorButton (backgroundColorButton, dashboard-> backgroundColor ( ));
452+ updateColorButton (valueColorButton, dashboard-> valueColor ( ));
453+ updateColorButton (titleColorButton, dashboard-> titleColor ( ));
454454 });
455455
456456 // 仪表盘信号连接
0 commit comments