Package org.polyfrost.polyui.color
Interface Colors
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classColors.Pagepublic final classColors.Brandpublic final classColors.OnBrandpublic final classColors.Statepublic final classColors.Componentpublic final classColors.Textpublic classColors.PaletteA color palette represents a set of four colors in PolyUI representing the four key states that a component can have.
-
Method Summary
Modifier and Type Method Description Colors.PalettegetNewPalette(Colors.Palette currentPalette, Colors current)Calculate and return the new Palette for the given currentPalette based on the current and new Colors. PolyColorgetNewColor(PolyColor currentColor, Colors current)Calculate and return the new Color for the given currentColor based on the current and new Colors. abstract StringgetName()abstract Colors.PagegetPage()abstract Colors.BrandgetBrand()abstract Colors.OnBrandgetOnBrand()abstract Colors.StategetState()abstract Colors.ComponentgetComponent()abstract Colors.TextgetText()-
-
Method Detail
-
getNewPalette
Colors.Palette getNewPalette(Colors.Palette currentPalette, Colors current)
Calculate and return the new Palette for the given currentPalette based on the current and new Colors. This is useful for theming, where you want to change the palette of a component based on the current theme. If the currentPalette is not found in the current Colors, it will return null.
- Since:
1.8.3
-
getNewColor
PolyColor getNewColor(PolyColor currentColor, Colors current)
Calculate and return the new Color for the given currentColor based on the current and new Colors. This is useful for theming, where you want to change the color of a component based on the current theme. If the currentColor is not found in the current Colors, it will return null.
- Since:
1.8.3
-
getPage
abstract Colors.Page getPage()
-
getBrand
abstract Colors.Brand getBrand()
-
getOnBrand
abstract Colors.OnBrand getOnBrand()
-
getState
abstract Colors.State getState()
-
getComponent
abstract Colors.Component getComponent()
-
getText
abstract Colors.Text getText()
-
-
-
-