On Tue, Jul 19, 2016 at 10:41 PM, Humdinger <dmarc-noreply@xxxxxxxxxxxxx> wrote:
On 19 July 2016 at 23:38, looncraz <looncraz@xxxxxxxxxxx> wrote:
voidI fear you have likely prevented all live color updates from occurring. You
CalcView::_Colorize()
{
- fBaseColor = ui_color(B_PANEL_BACKGROUND_COLOR);
-
may need to use a flag to prevent refreshing fBaseColor on _Colorize() only
if a color has been dropped in order to preserve live color updates.
Why should DeskCalc be special and use its own B_PANEL_BACKGROUND_COLOR?
IMO, that feature only makes sense in case DeskCalc is used as a
Replicant, to better fit into the user's Desktop background.
I tried that with adding a conditional that is used elsewhere in the code [1]:
if (Parent() && (Parent()->Flags() & B_DRAW_ON_CHILDREN) == 0) {
/* update to the current system background color,
if we aren't a replicant on the desktop */
fBaseColor = ui_color(B_PANEL_BACKGROUND_COLOR);
}
But that doesn't work for some reason...