mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-26 16:11:02 +08:00
(EasyGraphicsScrollbar) Changed dash-line color to black for better perception
This commit is contained in:
parent
7e3d27a580
commit
5c4904756f
@ -286,11 +286,8 @@ void EasyMinimapItem::paint(QPainter* _painter, const QStyleOptionGraphicsItem*
|
||||
if (m_minDuration < EASY_GLOBALS.frame_time && EASY_GLOBALS.frame_time < m_maxDuration)
|
||||
{
|
||||
// Draw marker displaying required frame_time step
|
||||
QPen p(Qt::DashLine);
|
||||
p.setColor(::profiler_gui::TIMELINE_MARKER_COLOR);
|
||||
_painter->setPen(p);
|
||||
|
||||
const auto h = bottom - (EASY_GLOBALS.frame_time - m_minDuration) * coeff;
|
||||
_painter->setPen(Qt::DashLine);
|
||||
_painter->drawLine(QLineF(0, h, m_boundingRect.width(), h));
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,6 @@ namespace profiler_gui {
|
||||
|
||||
const QColor CHRONOMETER_COLOR = QColor::fromRgba(0x40000000 | (::profiler::colors::RichBlue & 0x00ffffff));// 0x402020c0);
|
||||
const QColor CHRONOMETER_COLOR2 = QColor::fromRgba(0x40000000 | (::profiler::colors::Dark & 0x00ffffff));// 0x40408040);
|
||||
const QRgb TIMELINE_MARKER_COLOR = ::profiler::colors::Purple;
|
||||
const QRgb SELECTED_THREAD_BACKGROUND = 0x00e0e060;
|
||||
const QRgb SELECTED_THREAD_FOREGROUND = 0x00ffffff - SELECTED_THREAD_BACKGROUND;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user