DynExp
Highly flexible laboratory automation for dynamically changing experiments.
Loading...
Searching...
No Matches
DynExpUI Namespace Reference

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

Namespaces

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

Functions

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

Variables

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;"
 
const auto PushButtonReadyStyleSheetBright = MakePushButtonStyleSheet(StatusBarReadyStyleSheetBright, StatusBarReadyStyleSheetHover)
 
const auto PushButtonReadyStyleSheetDark = MakePushButtonStyleSheet(StatusBarReadyStyleSheetDark, StatusBarReadyStyleSheetHover)
 
const auto PushButtonRunningStyleSheet = MakePushButtonStyleSheet(StatusBarRunningStyleSheet, StatusBarRunningStyleSheetHover)
 
const auto PushButtonWarningStyleSheet = MakePushButtonStyleSheet(StatusBarWarningStyleSheet, StatusBarWarningStyleSheetHover)
 
const auto PushButtonErrorStyleSheet = MakePushButtonStyleSheet(StatusBarErrorStyleSheet, StatusBarErrorStyleSheetHover)
 
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 169 of file DynExpDefinitions.h.in.

Variable Documentation

◆ PushButtonBusyStyleSheet

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

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

◆ PushButtonDefaultStyleSheet

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

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

◆ PushButtonErrorStyleSheet

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

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

◆ PushButtonReadyStyleSheetBright

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

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

◆ PushButtonReadyStyleSheetDark

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

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

◆ PushButtonRunningStyleSheet

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

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

◆ PushButtonWarningStyleSheet

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

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

◆ StatusBarBusyStyleSheet

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

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

◆ StatusBarBusyStyleSheetHover

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

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

◆ StatusBarDefaultStyleSheet

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

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

◆ StatusBarErrorStyleSheet

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

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

◆ StatusBarErrorStyleSheetHover

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

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

◆ StatusBarReadyStyleSheetBright

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

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

◆ StatusBarReadyStyleSheetDark

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

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

◆ StatusBarReadyStyleSheetHover

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

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

◆ StatusBarRunningStyleSheet

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

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

◆ StatusBarRunningStyleSheetHover

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

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

◆ StatusBarWarningStyleSheet

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

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

◆ StatusBarWarningStyleSheetHover

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

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