From bbc46d2c7acd20014b0c471af6c32ac1d9569348 Mon Sep 17 00:00:00 2001 From: Desmis Date: Fri, 17 May 2019 19:10:39 +0200 Subject: [PATCH] Change cell background spot color --- rtgui/controlspotpanel.cc | 12 +++++++++--- rtgui/controlspotpanel.h | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/rtgui/controlspotpanel.cc b/rtgui/controlspotpanel.cc index 6c64bb7e8..7e597fdd3 100644 --- a/rtgui/controlspotpanel.cc +++ b/rtgui/controlspotpanel.cc @@ -280,6 +280,12 @@ ControlSpotPanel::ControlSpotPanel(): colorMouseover.set_green(100. / 255.); colorMouseover.set_blue(0.); colorMouseover.set_alpha(1.); + + colorMouseovertext.set_red(0.6); + colorMouseovertext.set_green(100. / 255.); + colorMouseovertext.set_blue(0.); + colorMouseovertext.set_alpha(0.5); + // Nominal spot (transparent black) colorNominal.set_red(0.); colorNominal.set_green(0.); @@ -316,7 +322,7 @@ void ControlSpotPanel::render_id( // Render cell background color if (row[spots_.mouseover]) { - ct->property_background_rgba() = colorMouseover; + ct->property_background_rgba() = colorMouseovertext; } else { ct->property_background_rgba() = colorNominal; } @@ -334,7 +340,7 @@ void ControlSpotPanel::render_name( // Render cell background color if (row[spots_.mouseover]) { - ct->property_background_rgba() = colorMouseover; + ct->property_background_rgba() = colorMouseovertext; } else { ct->property_background_rgba() = colorNominal; } @@ -355,7 +361,7 @@ void ControlSpotPanel::render_isvisible( // Render cell background color if (row[spots_.mouseover]) { - ct->property_background_rgba() = colorMouseover; + ct->property_background_rgba() = colorMouseovertext; } else { ct->property_background_rgba() = colorNominal; } diff --git a/rtgui/controlspotpanel.h b/rtgui/controlspotpanel.h index d892be6ee..9d542c75b 100644 --- a/rtgui/controlspotpanel.h +++ b/rtgui/controlspotpanel.h @@ -388,7 +388,7 @@ private: Gtk::Frame* const excluFrame; // Row background color - Gdk::RGBA colorMouseover, colorNominal; + Gdk::RGBA colorMouseover, colorNominal, colorMouseovertext; // Treeview mutex MyMutex mTreeview;