diff --git a/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/utilities/BackgroundColorBehavior.java b/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/utilities/BackgroundColorBehavior.java index 3c3fb33f9..9adc78497 100644 --- a/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/utilities/BackgroundColorBehavior.java +++ b/bootstrap-core/src/main/java/de/agilecoders/wicket/core/markup/html/bootstrap/utilities/BackgroundColorBehavior.java @@ -18,16 +18,29 @@ public class BackgroundColorBehavior extends BootstrapBaseBehavior { /** * Enumeration of all possible background colors. + * https://getbootstrap.com/docs/5.3/utilities/background/ */ public enum Color implements ICssClassNameProvider { Primary("primary"), + Primary_subtle("primary-subtle"), Secondary("secondary"), + Secondary_subtle("secondary-subtle"), + Success("success"), + Success_subtle("success-subtle"), Danger("danger"), + Danger_subtle("danger-subtle"), Warning("warning"), + Warning_subtle("warning-subtle"), Info("info"), - Success("success"), + Info_subtle("info-subtle"), Light("light"), + Light_subtle("light-subtle"), Dark("dark"), + Dark_subtle("dark-subtle"), + Body_secondary("body-secondary"), + Body_tertiary("body-tertiary"), + Body("body"), + Black("black"), White("white"), Transparent("transparent"); @@ -110,7 +123,6 @@ public Color getColor() { public IModel getColorModel() { return colorModel; } - /** * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Primary} to component * @@ -120,6 +132,15 @@ public static BackgroundColorBehavior primary() { return new BackgroundColorBehavior(Color.Primary); } + /** + * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Primary_subtle} to component + * + * @return behavior that adds primary subtle background color to component + */ + public static BackgroundColorBehavior primarySubtle() { + return new BackgroundColorBehavior(Color.Primary_subtle); + } + /** * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Secondary} to component * @@ -129,6 +150,33 @@ public static BackgroundColorBehavior secondary() { return new BackgroundColorBehavior(Color.Secondary); } + /** + * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Secondary_subtle} to component + * + * @return behavior that adds secondary subtle background color to component + */ + public static BackgroundColorBehavior secondarySubtle() { + return new BackgroundColorBehavior(Color.Secondary_subtle); + } + + /** + * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Success} to component + * + * @return behavior that adds success background color to component + */ + public static BackgroundColorBehavior success() { + return new BackgroundColorBehavior(Color.Success); + } + + /** + * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Success_subtle} to component + * + * @return behavior that adds success subtle background color to component + */ + public static BackgroundColorBehavior successSubtle() { + return new BackgroundColorBehavior(Color.Success_subtle); + } + /** * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Danger} to component * @@ -138,6 +186,15 @@ public static BackgroundColorBehavior danger() { return new BackgroundColorBehavior(Color.Danger); } + /** + * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Danger_subtle} to component + * + * @return behavior that adds danger subtle background color to component + */ + public static BackgroundColorBehavior dangerSubtle() { + return new BackgroundColorBehavior(Color.Danger_subtle); + } + /** * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Warning} to component * @@ -148,12 +205,12 @@ public static BackgroundColorBehavior warning() { } /** - * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Success} to component + * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Warning_subtle} to component * - * @return behavior that adds success background color to component + * @return behavior that adds warning subtle background color to component */ - public static BackgroundColorBehavior success() { - return new BackgroundColorBehavior(Color.Success); + public static BackgroundColorBehavior warningSubtle() { + return new BackgroundColorBehavior(Color.Warning_subtle); } /** @@ -165,6 +222,15 @@ public static BackgroundColorBehavior info() { return new BackgroundColorBehavior(Color.Info); } + /** + * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Info_subtle} to component + * + * @return behavior that adds info subtle background color to component + */ + public static BackgroundColorBehavior infoSubtle() { + return new BackgroundColorBehavior(Color.Info_subtle); + } + /** * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Light} to component * @@ -174,6 +240,15 @@ public static BackgroundColorBehavior light() { return new BackgroundColorBehavior(Color.Light); } + /** + * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Light_subtle} to component + * + * @return behavior that adds light subtle background color to component + */ + public static BackgroundColorBehavior lightSubtle() { + return new BackgroundColorBehavior(Color.Light_subtle); + } + /** * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Dark} to component * @@ -183,6 +258,51 @@ public static BackgroundColorBehavior dark() { return new BackgroundColorBehavior(Color.Dark); } + /** + * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Dark_subtle} to component + * + * @return behavior that adds dark subtle background color to component + */ + public static BackgroundColorBehavior darkSubtle() { + return new BackgroundColorBehavior(Color.Dark_subtle); + } + + /** + * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Body_secondary} to component + * + * @return behavior that adds body secondary background color to component + */ + public static BackgroundColorBehavior bodySecondary() { + return new BackgroundColorBehavior(Color.Body_secondary); + } + + /** + * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Body_tertiary} to component + * + * @return behavior that adds body tertiary background color to component + */ + public static BackgroundColorBehavior bodyTertiary() { + return new BackgroundColorBehavior(Color.Body_tertiary); + } + + /** + * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Body} to component + * + * @return behavior that adds body background color to component + */ + public static BackgroundColorBehavior body() { + return new BackgroundColorBehavior(Color.Body); + } + + /** + * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#Black} to component + * + * @return behavior that adds black background color to component + */ + public static BackgroundColorBehavior black() { + return new BackgroundColorBehavior(Color.Black); + } + /** * Constructs new behavior that adds {@link BackgroundColorBehavior.Color#White} to component * @@ -200,4 +320,5 @@ public static BackgroundColorBehavior white() { public static BackgroundColorBehavior transparent() { return new BackgroundColorBehavior(Color.Transparent); } + }