Skip to content

Transparency gradient popover#15385

Merged
eszkadev merged 3 commits intomainfrom
private/timar/transparency_gradient_popover
Apr 8, 2026
Merged

Transparency gradient popover#15385
eszkadev merged 3 commits intomainfrom
private/timar/transparency_gradient_popover

Conversation

@timar
Copy link
Copy Markdown
Member

@timar timar commented Apr 5, 2026

Requires: https://gerrit.collaboraoffice.com/c/core/+/374 jsdialog: fix toolbar popup serialization going one level too deep

Before:
image

  • crash

After:
image

timar added 3 commits April 5, 2026 23:07
When a toolbar popup (e.g. the transparency gradient popover)
is closed, closeDropdown sends a closemenu callback referencing
the parent toolbox via parentContainer.id. If the sidebar DOM
has been rebuilt between popup open and close, the captured
parentContainer element can become stale with an empty id,
causing an assert(false) in lcl_sendDialogEvent.

Capture the parent id as a string at closure creation time so
it remains stable regardless of DOM lifecycle.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b
When a toolbar button has an "icon" field, setImage() tries to
load it as a local SVG. If the SVG does not exist,
LOUtil.checkIfImageExists() hides the <img> element with
display:none. The onerror fallback then sets the src to the
base64 PNG from the "image" field, but the image stays invisible
because display:none was already applied.

Restore display when substituting the fallback PNG so toolbar
buttons remain visible even without a local SVG icon.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1
Copy the 45-degree rotate-left and rotate-right icons from the
colibre_svg theme (light and dark variants) so the toolbar
buttons in the Floating Area Style popup render crisp SVGs
instead of falling back to base64 PNGs.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2
@github-project-automation github-project-automation bot moved this from To Review to To Test in Collabora Online Apr 7, 2026
@eszkadev eszkadev merged commit 4156331 into main Apr 8, 2026
17 checks passed
@eszkadev eszkadev deleted the private/timar/transparency_gradient_popover branch April 8, 2026 08:24
@github-project-automation github-project-automation bot moved this from To Test to Done in Collabora Online Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants