DynExp
Highly flexible laboratory automation for dynamically changing experiments.
DynExpUI Namespace Reference

DynExp's user interface namespace contains user interface style definitions. More...

Namespaces

 DarkPalette
 Styles to provide a dark user interface appearance.
 
 Icons
 Paths to icon resources contained in DynExpManager.qrc (main resources) and in QModules.qrc (module resources)
 

Functions

static auto MakePushButtonStyleSheet (const char *DefaultStyle, const char *HoverStyle)
 
QLinearGradient GetDefaultLinearGradient ()
 

Variables

constexpr auto DefaultQChartTheme = QChart::ChartThemeDark
 
constexpr auto DefaultQ3DTheme = Q3DTheme::ThemeStoneMoss
 
constexpr auto PushButtonDefaultStyleSheet = "border:none;"
 
constexpr auto StatusBarDefaultStyleSheet = "text-align:left center; padding-left:8px;"
 
constexpr auto StatusBarReadyStyleSheetBright = "color: black;"
 
constexpr auto StatusBarReadyStyleSheetDark = "color: white;"
 
constexpr auto StatusBarRunningStyleSheet = "font-weight: bold; background-color:lime; color: black;"
 
constexpr auto StatusBarWarningStyleSheet = "font-weight: bold; background-color: orange; color: black;"
 
constexpr auto StatusBarErrorStyleSheet = "font-weight: bold; background-color: red; color: white;"
 
constexpr auto StatusBarBusyStyleSheet = "font-weight: bold; color: white; background-color: #2A82DA;"
 
constexpr auto StatusBarReadyStyleSheetHover = "background-color: darkgray;"
 
constexpr auto StatusBarRunningStyleSheetHover = "background-color: lightgreen;"
 
constexpr auto StatusBarWarningStyleSheetHover = "background-color: lightsalmon;"
 
constexpr auto StatusBarErrorStyleSheetHover = "background-color: salmon;"
 
constexpr auto StatusBarBusyStyleSheetHover = "background-color: #6da9e6;"
 
static const auto PushButtonReadyStyleSheetBright = MakePushButtonStyleSheet(StatusBarReadyStyleSheetBright, StatusBarReadyStyleSheetHover)
 
static const auto PushButtonReadyStyleSheetDark = MakePushButtonStyleSheet(StatusBarReadyStyleSheetDark, StatusBarReadyStyleSheetHover)
 
static const auto PushButtonRunningStyleSheet = MakePushButtonStyleSheet(StatusBarRunningStyleSheet, StatusBarRunningStyleSheetHover)
 
static const auto PushButtonWarningStyleSheet = MakePushButtonStyleSheet(StatusBarWarningStyleSheet, StatusBarWarningStyleSheetHover)
 
static const auto PushButtonErrorStyleSheet = MakePushButtonStyleSheet(StatusBarErrorStyleSheet, StatusBarErrorStyleSheetHover)
 
static const auto PushButtonBusyStyleSheet = MakePushButtonStyleSheet(StatusBarBusyStyleSheet, StatusBarBusyStyleSheetHover)
 

Detailed Description

DynExp's user interface namespace contains user interface style definitions.

Function Documentation

◆ GetDefaultLinearGradient()

QLinearGradient DynExpUI::GetDefaultLinearGradient ( )

Definition at line 33 of file DynExpDefinitions.cpp.

◆ MakePushButtonStyleSheet()

static auto DynExpUI::MakePushButtonStyleSheet ( const char *  DefaultStyle,
const char *  HoverStyle 
)
static

Definition at line 129 of file DynExpDefinitions.h.in.

Variable Documentation

◆ DefaultQ3DTheme

constexpr auto DynExpUI::DefaultQ3DTheme = Q3DTheme::ThemeStoneMoss
constexpr

Definition at line 114 of file DynExpDefinitions.h.in.

◆ DefaultQChartTheme

constexpr auto DynExpUI::DefaultQChartTheme = QChart::ChartThemeDark
constexpr

Definition at line 113 of file DynExpDefinitions.h.in.

◆ PushButtonBusyStyleSheet

const auto DynExpUI::PushButtonBusyStyleSheet = MakePushButtonStyleSheet(StatusBarBusyStyleSheet, StatusBarBusyStyleSheetHover)
static

Definition at line 140 of file DynExpDefinitions.h.in.

◆ PushButtonDefaultStyleSheet

constexpr auto DynExpUI::PushButtonDefaultStyleSheet = "border:none;"
constexpr

Definition at line 115 of file DynExpDefinitions.h.in.

◆ PushButtonErrorStyleSheet

const auto DynExpUI::PushButtonErrorStyleSheet = MakePushButtonStyleSheet(StatusBarErrorStyleSheet, StatusBarErrorStyleSheetHover)
static

Definition at line 139 of file DynExpDefinitions.h.in.

◆ PushButtonReadyStyleSheetBright

const auto DynExpUI::PushButtonReadyStyleSheetBright = MakePushButtonStyleSheet(StatusBarReadyStyleSheetBright, StatusBarReadyStyleSheetHover)
static

Definition at line 135 of file DynExpDefinitions.h.in.

◆ PushButtonReadyStyleSheetDark

const auto DynExpUI::PushButtonReadyStyleSheetDark = MakePushButtonStyleSheet(StatusBarReadyStyleSheetDark, StatusBarReadyStyleSheetHover)
static

Definition at line 136 of file DynExpDefinitions.h.in.

◆ PushButtonRunningStyleSheet

const auto DynExpUI::PushButtonRunningStyleSheet = MakePushButtonStyleSheet(StatusBarRunningStyleSheet, StatusBarRunningStyleSheetHover)
static

Definition at line 137 of file DynExpDefinitions.h.in.

◆ PushButtonWarningStyleSheet

const auto DynExpUI::PushButtonWarningStyleSheet = MakePushButtonStyleSheet(StatusBarWarningStyleSheet, StatusBarWarningStyleSheetHover)
static

Definition at line 138 of file DynExpDefinitions.h.in.

◆ StatusBarBusyStyleSheet

constexpr auto DynExpUI::StatusBarBusyStyleSheet = "font-weight: bold; color: white; background-color: #2A82DA;"
constexpr

Definition at line 122 of file DynExpDefinitions.h.in.

◆ StatusBarBusyStyleSheetHover

constexpr auto DynExpUI::StatusBarBusyStyleSheetHover = "background-color: #6da9e6;"
constexpr

Definition at line 127 of file DynExpDefinitions.h.in.

◆ StatusBarDefaultStyleSheet

constexpr auto DynExpUI::StatusBarDefaultStyleSheet = "text-align:left center; padding-left:8px;"
constexpr

Definition at line 116 of file DynExpDefinitions.h.in.

◆ StatusBarErrorStyleSheet

constexpr auto DynExpUI::StatusBarErrorStyleSheet = "font-weight: bold; background-color: red; color: white;"
constexpr

Definition at line 121 of file DynExpDefinitions.h.in.

◆ StatusBarErrorStyleSheetHover

constexpr auto DynExpUI::StatusBarErrorStyleSheetHover = "background-color: salmon;"
constexpr

Definition at line 126 of file DynExpDefinitions.h.in.

◆ StatusBarReadyStyleSheetBright

constexpr auto DynExpUI::StatusBarReadyStyleSheetBright = "color: black;"
constexpr

Definition at line 117 of file DynExpDefinitions.h.in.

◆ StatusBarReadyStyleSheetDark

constexpr auto DynExpUI::StatusBarReadyStyleSheetDark = "color: white;"
constexpr

Definition at line 118 of file DynExpDefinitions.h.in.

◆ StatusBarReadyStyleSheetHover

constexpr auto DynExpUI::StatusBarReadyStyleSheetHover = "background-color: darkgray;"
constexpr

Definition at line 123 of file DynExpDefinitions.h.in.

◆ StatusBarRunningStyleSheet

constexpr auto DynExpUI::StatusBarRunningStyleSheet = "font-weight: bold; background-color:lime; color: black;"
constexpr

Definition at line 119 of file DynExpDefinitions.h.in.

◆ StatusBarRunningStyleSheetHover

constexpr auto DynExpUI::StatusBarRunningStyleSheetHover = "background-color: lightgreen;"
constexpr

Definition at line 124 of file DynExpDefinitions.h.in.

◆ StatusBarWarningStyleSheet

constexpr auto DynExpUI::StatusBarWarningStyleSheet = "font-weight: bold; background-color: orange; color: black;"
constexpr

Definition at line 120 of file DynExpDefinitions.h.in.

◆ StatusBarWarningStyleSheetHover

constexpr auto DynExpUI::StatusBarWarningStyleSheetHover = "background-color: lightsalmon;"
constexpr

Definition at line 125 of file DynExpDefinitions.h.in.