Bug 154051 - Support table (cell) border transparency
Summary: Support table (cell) border transparency
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.5.0.3 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Table-Borders
  Show dependency treegraph
 
Reported: 2023-03-07 22:15 UTC by Eyal Rozenberg
Modified: 2023-10-17 12:13 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example slide with table where semi-transparent table border and background are useful (2.10 MB, application/vnd.oasis.opendocument.presentation)
2023-10-02 20:47 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2023-03-07 22:15:41 UTC
Table border can currently only be fully-opaque. We should be able to make them partially-transparent, like table cell backgrounds.
Comment 1 Regina Henschel 2023-03-08 01:15:33 UTC
Why?
Comment 2 Eyal Rozenberg 2023-03-08 07:47:15 UTC
(In reply to Regina Henschel from comment #1)
> Why?

1. When you want the entire table to be partially transparent

2. When the borders are thick, their total area can reach the area of one or more cells, so it's not always "just a pixel here and there".
Comment 3 Heiko Tietze 2023-08-30 07:35:54 UTC
(In reply to Eyal Rozenberg from comment #2)
> 1. When you want the entire table to be partially transparent
> 
> 2. When the borders are thick, their total area can reach the area of one or
> more cells, so it's not always "just a pixel here and there".

Please share an example with is partially transparent table and a thick, non-semitransparent border that spoils the design and cannot be removed / become smaller.
Comment 4 Heiko Tietze 2023-09-27 04:59:25 UTC
Example still missing
Comment 5 Eyal Rozenberg 2023-10-02 20:47:08 UTC
Created attachment 189964 [details]
Example slide with table where semi-transparent table border and background are useful

I would like to have the table borders be white, but less pronounced relative to the background. I would also like the cell background to be semi-transparent rather than fully-transparent or fully-opaque. That would make the table be readable enough, while showing the background well enough (but not too well).
Comment 6 QA Administrators 2023-10-03 03:16:41 UTC Comment hidden (obsolete)
Comment 7 Heiko Tietze 2023-10-04 12:11:23 UTC
Regina, at least the cell background should provide transparency like other shapes. Any ODF blocker for the border?
Comment 8 Regina Henschel 2023-10-04 14:13:57 UTC
The background of the cell is currently written as <loext:graphic-properties> element. You can add a draw:opacity attribute there. Then this opacity is rendered in LibreOffice in edit and in presentation mode and preserved on saving. So a semi-transparent cell background only needs implementing a UI. In ODF 1.4 it will be included as <style:background-fill> element.

"Border" is more difficult because it is written as fo:border attribute. Such fo:border attribute is a string with structure "9pt solid #0000ff", for example. And the color included in this string is currently a RGB-color without alpha-channel. That is different from shapes. Shapes do not use "border" but "stroke" and for strokes a svg:stroke-opacity attribute exists.

So making borders semi-transparent is a larger effort, including extending ODF. I could think of allowing a RGB-Color with alpha-channel in the string in file markup. Such is allowed in CSS for example.

(In reply to Heiko Tietze from comment #7)
> Regina, at least the cell background should provide transparency like other
> shapes.

A table cell is very different from a shape. The "Table" object in Impress is actually a frame-object (that is a shape), which has a table as content. The frame has its own graphic properties, only most of them are suppressed if the content is a table. A table can also exist as stand-alone element, what is done in Writer or Calc.
Comment 9 Heiko Tietze 2023-10-17 12:13:49 UTC
So let's add access to transparency at to the cell style.