Task #3867
openImplement a donate banner on part of the Start Center
0%
Description
LibreOffice has a Start Center showing recently opened documents. We can add a small banner there (bottom third) explaining that LibreOffice is a community-driven project, and donations help to support the community. Structure:
- Banner = 1/3 of the Start Center
- 10-20 word message, with picture on the right
- Two buttons: Donate, and Dismiss
- Show after every update, or once per month
For testing, I've attached an example image (we'll choose the final one later). And a message for testing: "LibreOffice is made by a worldwide community. Support us today!"
Files
Updated by Heiko Tietze 22 days ago
- Project changed from Infrastructure to Marketing
- Assignee changed from Mike Saunders to Heiko Tietze
Taking over the coding part.
Updated by Heiko Tietze 3 days ago
- Status changed from New to In Progress
The first patch uses hard-coded values at include/sfx2/strings.hrc with
STR_DONATIONBANNER: the text
DONATIONBANNER_HEIGHT: the percentage of the window height with a default of 0.25
DONATIONBANNER_FREQ: the frequency when the donation banner is shown; it calculates as current day mod FREQ, meaning 1 shows the banner always, 2 only on even days, 3 on days since 1.1.1970 that can be divided by 3 without remainder, etc. At this day, the banner will be shown any time the start center opens.
The image is icon-themes/colibre/brand/shell/donatebanner.png. It is proportionally scaled to the height of the banner and drawn at the right edge (independently from LTR/RTL). The text wraps into multiple lines and calculates its font size so it fits into the available space starting with 48px down to a minimum of 12px.
This patch has no interactive elements (the image also does not respond on clicks) but ensures the donate button left-hand to be shown.
Updated by Mike Saunders 3 days ago
Thanks! When you say the "donate button left-hand", do you mean the one we've had for a while, on the left-hand column in the Start Center? It might be worth having a dedicated "Donate" button in this banner as well (along with a "Don't show me again") – what do you think?
Updated by Heiko Tietze 3 days ago
I cannot draw a control (button) onto another object (image). If you want interactions in the banner we have to make space for it.
And why do you want a "[ ] Don't show me again" option? I mean sure, users do not want to see a nag screen. But that's rather my POV and not what marketing wants :-).
Updated by Mike Saunders 3 days ago
Heiko Tietze wrote in #note-4:
I cannot draw a control (button) onto another object (image). If you want interactions in the banner we have to make space for it.
And why do you want a "[ ] Don't show me again" option? I mean sure, users do not want to see a nag screen. But that's rather my POV and not what marketing wants :-).
Ah, I thought we'd have a button under the text. Just "Donate" (or "Support us") on its own would be good :-)