[haiku-bugs] Re: [Haiku] #12921: [Interface Kit] white progressbar background in FilWip

  • From: "looncraz" <trac@xxxxxxxxxxxx>
  • Date: Fri, 18 Nov 2016 03:26:48 -0000

#12921: [Interface Kit] white progressbar background in FilWip
----------------------------------+----------------------------
   Reporter:  diver               |      Owner:  looncraz
       Type:  bug                 |     Status:  reopened
   Priority:  high                |  Milestone:  R1/beta1
  Component:  Kits/Interface Kit  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------

Comment (by looncraz):

 Replying to [comment:10 Janus]:

looncraz I had some problem with BStringView in the method
 AttachedToWindow there is this check
{{{
if (ViewColor() == B_TRANSPARENT_COLOR)
   AdoptSystemColors();
}}}
I don't understand, the view color can be transparent in a replicant...
Do I miss something?

Thanks.


 Transparent view color is never kept.  The original code:


 {{{
 if (color == B_TRANSPARENT_COLOR)
     color = ui_color(B_PANEL_BACKGROUND_COLOR);
 }}}


 With the live color system we have color constants and tint values which
 need to propagate from the parent for low, high, and view colors.  If the
 view color is B_TRANSPARENT_COLOR it means we have inherited that color
 from the parent before it has had a chance to set its colors - several
 legacy applications did this.  The solution is to then AdoptSystemColors()
 so that the string view has the default appearance.

 I will have an overabundance of free time starting in just a week, I will
 be working nearly full time on Haiku at that point for about two weeks, so
 I will be addressing this bug and all others I own in earnest while I take
 the time to address updating all of these popular, but dated, programs'
 interfaces.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12921#comment:11>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: