[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebSeparator is not affected by Foreground color


On 6/20/24 13:35, Safiur Rahman wrote:
Assigning Foreground color to WebSeparator (gb.web.gui) is not changing the color of line. Can you guide me how to change the gray color of line produced by WebSeparator to any other color?

It appears as though it is not currently possible due to a bug in the code.

The WebSeparator produces this HTML code:
[html]
<div class="gw-separator" id="@1.WebSeparator1" style="flex-grow:1;color:#FF0000;height:2em;">
  <div class="gw-separator-hline">
    <div></div>
  </div>
</div>
[/html]

The color is being set to #FF0000 (red), for the DIV with ID "@1.WebSeparator1", and is inherited by its children. However, the foreground color apparently applies only to text. To get a red horizontal line, the background of the empty DIV (<div></div>) needs to be set to #FF0000 but it is being set to #C0C0C0.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


References:
WebSeparator is not affected by Foreground colorSafiur Rahman <isafiur@xxxxxxxxx>