Skip to content

Commit af78dd3

Browse files
committed
feat(branding): add accentColorLight and gravatarDefault
why not in themes? well, accentColor is already here, so this keeps parallel with that (and it's a generic enough theme concept that it seems to be "okay" as a core concept that any frontend *could* use. And gravatar? well again, it's kinda similar to a logo or icon as a bit of "branding", and any frontend that's using gravatar *may* want to use it, so ... not 100% solid from the "they belong here" POV, but, those are the justifications - 80% just a "feel" thing.
1 parent 599fd81 commit af78dd3

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/model/metadata/branding/QBrandingMetaData.java

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public class QBrandingMetaData implements TopLevelMetaDataInterface, Cloneable,
4141
private String logo;
4242
private String icon;
4343
private String accentColor;
44+
private String accentColorLight;
45+
private String gravatarDefault;
4446

4547
@Deprecated(since = "migrate to use banners map instead")
4648
private String environmentBannerText;
@@ -427,4 +429,82 @@ public QBrandingMetaData withBanner(BannerSlot slot, Banner banner)
427429
}
428430

429431

432+
433+
/*******************************************************************************
434+
* Getter for accentColorLight
435+
* @see #withAccentColorLight(String)
436+
*******************************************************************************/
437+
public String getAccentColorLight()
438+
{
439+
return (this.accentColorLight);
440+
}
441+
442+
443+
444+
/*******************************************************************************
445+
* Setter for accentColorLight
446+
* @see #withAccentColorLight(String)
447+
*******************************************************************************/
448+
public void setAccentColorLight(String accentColorLight)
449+
{
450+
this.accentColorLight = accentColorLight;
451+
}
452+
453+
454+
455+
/*******************************************************************************
456+
* Fluent setter for accentColorLight
457+
*
458+
* @param accentColorLight
459+
* A lighter shade of the accent color, use for UI elements in an alternate mode,
460+
* such as a 'dirty' quick-filter.
461+
* @return this
462+
*******************************************************************************/
463+
public QBrandingMetaData withAccentColorLight(String accentColorLight)
464+
{
465+
this.accentColorLight = accentColorLight;
466+
return (this);
467+
}
468+
469+
470+
471+
/*******************************************************************************
472+
* Getter for gravatarDefault
473+
* @see #withGravatarDefault(String)
474+
*******************************************************************************/
475+
public String getGravatarDefault()
476+
{
477+
return (this.gravatarDefault);
478+
}
479+
480+
481+
482+
/*******************************************************************************
483+
* Setter for gravatarDefault
484+
* @see #withGravatarDefault(String)
485+
*******************************************************************************/
486+
public void setGravatarDefault(String gravatarDefault)
487+
{
488+
this.gravatarDefault = gravatarDefault;
489+
}
490+
491+
492+
493+
/*******************************************************************************
494+
* Fluent setter for gravatarDefault
495+
*
496+
* @param gravatarDefault
497+
* value to be appended to the gravatar URL as the 'default' parameter. See
498+
* See <a href=https://docs.gravatar.com/sdk/images/>Gravatar docs</a> for details.
499+
* The short version is - can be a url-encoded URL to an image, or a keyword
500+
* defined by gravatar, like initials, identicon, or blank.
501+
* @return this
502+
*******************************************************************************/
503+
public QBrandingMetaData withGravatarDefault(String gravatarDefault)
504+
{
505+
this.gravatarDefault = gravatarDefault;
506+
return (this);
507+
}
508+
509+
430510
}

0 commit comments

Comments
 (0)