DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
src
internal
StyleUtility.cpp
Go to the documentation of this file.
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
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
void
dbe::StyleUtility::InitColorManagement
()
25
{
26
TableColorAttribute
= QColor (
"#1B676B"
);
27
TableAttributeBackground
= QColor (
"#ffffff"
);
28
TableAttributeHighlightBackground
= QColor (
"#f0f0ff"
);
29
TableColorRelationship
= QColor (
"#AD4713"
);
30
31
FileReadOnlyForeground
= QColor (
"#a00000"
);
32
FileReadOnlyBackground
= QColor (
"#f0f0f0"
);
33
34
35
AlertStatusBarPallete
.setColor ( QPalette::Active, QPalette::Base, QColor (
"red"
) );
36
AlertStatusBarPallete
.setColor ( QPalette::Inactive, QPalette::Base, QColor (
"red"
) );
37
WarningStatusBarPallete
.setColor ( QPalette::Active, QPalette::Base, QColor (
"yellow"
) );
38
WarningStatusBarPallete
.setColor ( QPalette::Inactive, QPalette::Base,
39
QColor (
"yellow"
) );
40
AlertStatusBarPalleteWindow
.setColor ( QPalette::Active, QPalette::Window,
41
QColor (
"red"
) );
42
AlertStatusBarPalleteWindow
.setColor ( QPalette::Inactive, QPalette::Window,
43
QColor (
"red"
) );
44
WarningStatusBarPalleteWindow
.setColor ( QPalette::Active, QPalette::Window,
45
QColor (
"yellow"
) );
46
WarningStatusBarPalleteWindow
.setColor ( QPalette::Inactive, QPalette::Window,
47
QColor (
"yellow"
) );
48
LoadedDefault
.setColor ( QPalette::Active, QPalette::Base, QColor::fromRgb ( 184, 244,
49
255 ) );
50
LoadedDefault
.setColor ( QPalette::Inactive, QPalette::Base, QColor::fromRgb ( 184, 244,
51
255 ) );
52
PaleGreenPalleteButton
.setColor ( QPalette::Active, QPalette::Button,
53
QColor::fromRgb ( 190, 238, 158 ) );
54
PaleGreenPalleteButton
.setColor ( QPalette::Inactive, QPalette::Button,
55
QColor::fromRgb ( 190, 238, 158 ) );
56
}
StyleUtility.hpp
dbe::StyleUtility::TableAttributeHighlightBackground
static QColor TableAttributeHighlightBackground
Definition
StyleUtility.hpp:23
dbe::StyleUtility::PaleGreenPalleteButton
static QPalette PaleGreenPalleteButton
Definition
StyleUtility.hpp:33
dbe::StyleUtility::AlertStatusBarPalleteWindow
static QPalette AlertStatusBarPalleteWindow
Definition
StyleUtility.hpp:30
dbe::StyleUtility::InitColorManagement
static void InitColorManagement()
Definition
StyleUtility.cpp:24
dbe::StyleUtility::FileReadOnlyForeground
static QColor FileReadOnlyForeground
Definition
StyleUtility.hpp:26
dbe::StyleUtility::AlertStatusBarPallete
static QPalette AlertStatusBarPallete
Definition
StyleUtility.hpp:29
dbe::StyleUtility::TableColorAttribute
static QColor TableColorAttribute
Including DBE.
Definition
StyleUtility.hpp:21
dbe::StyleUtility::LoadedDefault
static QPalette LoadedDefault
Definition
StyleUtility.hpp:34
dbe::StyleUtility::WarningStatusBarPalleteWindow
static QPalette WarningStatusBarPalleteWindow
Definition
StyleUtility.hpp:32
dbe::StyleUtility::WarningStatusBarPallete
static QPalette WarningStatusBarPallete
Definition
StyleUtility.hpp:31
dbe::StyleUtility::TableAttributeBackground
static QColor TableAttributeBackground
Definition
StyleUtility.hpp:22
dbe::StyleUtility::TableColorRelationship
static QColor TableColorRelationship
Definition
StyleUtility.hpp:24
dbe::StyleUtility::FileReadOnlyBackground
static QColor FileReadOnlyBackground
Definition
StyleUtility.hpp:27
Generated on
for DUNE-DAQ by
1.17.0