diff --git a/qad/blockview/blockview.cpp b/qad/blockview/blockview.cpp index b2b9c59..0d510fc 100644 --- a/qad/blockview/blockview.cpp +++ b/qad/blockview/blockview.cpp @@ -38,7 +38,7 @@ void BlockView::_init() { ghost_ = 0; grid_step = 10.; grid_points = 1; - grid_pen = QPen(palette().color(QPalette::Mid), 1, Qt::NoPen); + grid_pen = QPen(palette().color(QPalette::Disabled, QPalette::WindowText), 1, Qt::NoPen); thick = 1; thumb_hide_delay = 500; timer_thumb = 0; diff --git a/qad/graphic/graphic.cpp b/qad/graphic/graphic.cpp index ba8cbe1..ecef980 100644 --- a/qad/graphic/graphic.cpp +++ b/qad/graphic/graphic.cpp @@ -103,7 +103,7 @@ Graphic::Graphic(QWidget * parent): QFrame(parent), line_x_min(this), line_x_max selbrush.setStyle(Qt::SolidPattern); selbrush.setColor(QColor(60, 175, 255, 100)); text_color = palette().color(QPalette::WindowText); - grid_pen = QPen(palette().color(QPalette::Button), 0., Qt::DotLine); + grid_pen = QPen(palette().color(QPalette::Disabled, QPalette::WindowText), 0., Qt::DotLine); //graph_pen = QPen(Qt::red); //graph_pen.setCosmetic(true); graphics.append(GraphicType());