Line data Source code
1 : // DUNE DAQ modification notice:
2 : // This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3 : // Fork baseline commit: dbe-02-12-17 (2022-05-12).
4 : // Renamed since fork: no.
5 :
6 : /// Including DBE
7 : #include "dbe/StyleUtility.hpp"
8 :
9 : QColor dbe::StyleUtility::TableColorAttribute;
10 : QColor dbe::StyleUtility::TableAttributeBackground;
11 : QColor dbe::StyleUtility::TableAttributeHighlightBackground;
12 : QColor dbe::StyleUtility::FileReadOnlyForeground;
13 : QColor dbe::StyleUtility::FileReadOnlyBackground;
14 :
15 : QColor dbe::StyleUtility::TableColorRelationship;
16 : QPalette dbe::StyleUtility::AlertStatusBarPallete;
17 : QPalette dbe::StyleUtility::AlertStatusBarPalleteWindow;
18 : QPalette dbe::StyleUtility::WarningStatusBarPallete;
19 : QPalette dbe::StyleUtility::WarningStatusBarPalleteWindow;
20 : QPalette dbe::StyleUtility::PaleGreenPalleteButton;
21 : QPalette dbe::StyleUtility::LoadedDefault;
22 :
23 :
24 0 : void dbe::StyleUtility::InitColorManagement()
25 : {
26 0 : TableColorAttribute = QColor ( "#1B676B" );
27 0 : TableAttributeBackground = QColor ( "#ffffff" );
28 0 : TableAttributeHighlightBackground = QColor ( "#f0f0ff" );
29 0 : TableColorRelationship = QColor ( "#AD4713" );
30 :
31 0 : FileReadOnlyForeground = QColor ("#a00000");
32 0 : FileReadOnlyBackground = QColor ("#f0f0f0");
33 :
34 :
35 0 : AlertStatusBarPallete.setColor ( QPalette::Active, QPalette::Base, QColor ( "red" ) );
36 0 : AlertStatusBarPallete.setColor ( QPalette::Inactive, QPalette::Base, QColor ( "red" ) );
37 0 : WarningStatusBarPallete.setColor ( QPalette::Active, QPalette::Base, QColor ( "yellow" ) );
38 0 : WarningStatusBarPallete.setColor ( QPalette::Inactive, QPalette::Base,
39 0 : QColor ( "yellow" ) );
40 0 : AlertStatusBarPalleteWindow.setColor ( QPalette::Active, QPalette::Window,
41 0 : QColor ( "red" ) );
42 0 : AlertStatusBarPalleteWindow.setColor ( QPalette::Inactive, QPalette::Window,
43 0 : QColor ( "red" ) );
44 0 : WarningStatusBarPalleteWindow.setColor ( QPalette::Active, QPalette::Window,
45 0 : QColor ( "yellow" ) );
46 0 : WarningStatusBarPalleteWindow.setColor ( QPalette::Inactive, QPalette::Window,
47 0 : QColor ( "yellow" ) );
48 0 : LoadedDefault.setColor ( QPalette::Active, QPalette::Base, QColor::fromRgb ( 184, 244,
49 : 255 ) );
50 0 : LoadedDefault.setColor ( QPalette::Inactive, QPalette::Base, QColor::fromRgb ( 184, 244,
51 : 255 ) );
52 0 : PaleGreenPalleteButton.setColor ( QPalette::Active, QPalette::Button,
53 0 : QColor::fromRgb ( 190, 238, 158 ) );
54 0 : PaleGreenPalleteButton.setColor ( QPalette::Inactive, QPalette::Button,
55 0 : QColor::fromRgb ( 190, 238, 158 ) );
56 0 : }
|