Package_html_media.mk | 1 + help3xsl/default.css | 3 ++- help3xsl/online_transform.xsl | 15 +++++++++++---- source/media/helpimg/donate.png |binary 4 files changed, 14 insertions(+), 5 deletions(-)
New commits: commit ea6da5edc4ca811439cda50a022592a9ce1245f1 Author: Olivier Hallot <[email protected]> AuthorDate: Sun Jan 4 20:26:08 2026 -0300 Commit: Olivier Hallot <[email protected]> CommitDate: Mon Jan 5 00:29:01 2026 +0100 Add icon to donation button in Help pages. Change-Id: I3f565f9245252c4ca417dff9b49df272b4733648 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/196526 Tested-by: Jenkins Reviewed-by: Olivier Hallot <[email protected]> diff --git a/Package_html_media.mk b/Package_html_media.mk index 71c891b0ce..d278dd19c7 100644 --- a/Package_html_media.mk +++ b/Package_html_media.mk @@ -51,6 +51,7 @@ $(eval $(call gb_Package_add_files_with_dir,helpcontent2_html_media,$(LIBO_SHARE helpimg/dircurscent.png \ helpimg/dircursleft.png \ helpimg/dircursright.png \ + helpimg/donate.png \ helpimg/ein.png \ helpimg/feldalle.png \ helpimg/feldbrei.png \ diff --git a/help3xsl/default.css b/help3xsl/default.css index d0c167e8f5..24cf0edffb 100644 --- a/help3xsl/default.css +++ b/help3xsl/default.css @@ -706,10 +706,11 @@ li.disabled a { .donation { border: 1px solid #f1c62a; border-radius: 2px; - padding: 10px; + padding: 5px 10px; margin: 5px 10px; max-width: 200px; color: white; + align-items:center; } .donation:hover { background: linear-gradient(90deg, #1c71d8 0%, #30c877 100%); diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 162b9d50eb..22ced0e2e2 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -92,6 +92,7 @@ <xsl:variable name="note_img" select="concat($img_url_prefix,'icon-themes/res/helpimg/note.svg')"/> <xsl:variable name="tip_img" select="concat($img_url_prefix,'icon-themes/res/helpimg/tip.svg')"/> <xsl:variable name="warning_img" select="concat($img_url_prefix,'icon-themes/res/helpimg/warning.svg')"/> +<xsl:variable name="donate_img" select="concat($img_url_prefix,'helpimg/donate.png')"/> <!-- Strings for the help UI page --> <xsl:variable name="tmp_href_ui"><xsl:value-of select="concat($urlpre,'text/shared/help/browserhelp.xhp')"/></xsl:variable> @@ -275,12 +276,18 @@ <xsl:apply-templates select="/helpdocument/body"/> </div> <div id="DonationFrame"> - <xsl:if test="$online"> - <div class="donation"> - <p dir="auto"><a href="https://www.libreoffice.org/donate/?pk_campaign=help" target ="_blank"><xsl:value-of select="$ui_donate"/></a></p> + <a href="https://www.libreoffice.org/donate/?pk_campaign=help" target ="_blank"> + <div class="icontable donation"> + <div class="iconcell"> + <img class="iconimage" src="{$donate_img}" alt="{$ui_donate}" style="{$iconsizestyle}"/> </div> - </xsl:if> + <div class="iconcell"> + <p dir="auto"><xsl:value-of select="$ui_donate"/></p> + </div> + </div> + </a> </div> + <footer> <h2 style="text-align: center;"><a href="https://books.libreoffice.org" target="_blank"><xsl:value-of select="$ui_books"/></a></h2> <div class="noteicon" dir="auto" style="display:flex;justify-content:center;flex-wrap:wrap;row-gap:15px;"> diff --git a/source/media/helpimg/donate.png b/source/media/helpimg/donate.png new file mode 100644 index 0000000000..570309eb85 Binary files /dev/null and b/source/media/helpimg/donate.png differ
