MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / pickerTokens

Function pickerTokens

pj_widgets/src/DateRangePicker.cpp:78–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76};
77
78PickerTokens pickerTokens() {
79 PickerTokens t;
80 if (pickerThemeIsLight()) {
81 t.surface = QColor(0xFF, 0xFF, 0xFF); // pure white calendar/overlay surface
82 t.text = QColor(0x11, 0x11, 0x11); // #111111 default_text
83 t.muted = QColor(0x66, 0x66, 0x66); // #666666 disabled_text
84 t.border = QColor(0xc0, 0xc0, 0xc0); // #c0c0c0 border_default
85 t.selection_range = QColor(0xC2, 0xDC, 0xFF); // #C2DCFF item_selection_background
86 t.hover_fill = QColor(0, 0, 0, 40); // rgba(0,0,0,40) hover_overlay
87 } else {
88 t.surface = QColor(0x3B, 0x3B, 0x47); // #3B3B47 dark_background
89 t.text = QColor(0xF0, 0xF0, 0xF0); // #F0F0F0 default_text
90 t.muted = QColor(0x77, 0x77, 0x77); // #777777 disabled_text
91 t.border = QColor(0xB0, 0xB0, 0xBF); // #B0B0BF border_default
92 t.selection_range = QColor(0x14, 0x8C, 0xD2); // #148CD2 item_selection_background
93 t.hover_fill = QColor(255, 255, 255, 30); // rgba(255,255,255,30) hover_overlay
94 }
95 t.hover_border = t.border;
96 return t;
97}
98
99// Recolor a monochrome icon SVG to the active theme's ink. Local copy of
100// widget_binding.cpp::recolorSvgInk (kept local because pj_widgets/SvgUtil.h is

Callers 4

paintEventMethod · 0.85
DualCalendarWidgetMethod · 0.85
updateNavButtonsMethod · 0.85
updateOverlayStyleMethod · 0.85

Calls 2

pickerThemeIsLightFunction · 0.85
QColorClass · 0.50

Tested by

no test coverage detected