HomeWolfplex

Design API: refactoring, new KibaOneAccents class
740308978cf6Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Design API: refactoring, new KibaOneAccents class

[ Feature description ]

KibaOneAccent is a static class with which provides helper methods
to get accents information.

  • KibaOneAccents::WHITE

    The color to use as white
  • KibaOneAccents::BLACK

    The color to use as black
  • KibaOneAccents::getAccents()

    Returns an array of all available accents.

    Each item is an array of 3 values:
    • the accent name
    • the accent color
    • the headings color (appliable for footer headings)
  • KibaOneAccents::exists ($accentName)

    Determines if an accent exists
  • KibaOneAccents::getAccentColor ($accentName)

    Gets the accent color of the specified accent
  • KibaOneAccents::getHeadingColor ($accentName)

    Gets the headings color of the specified accent

[ Public API code change ]

The API code nows use the KibaOneAccents::getAccents() method.

[ Goal ]

To allow the use by our header/footer API of the accents information.

Details

Provenance
derecksonAuthored on
Parents
rAPI0220c950c1a6: /design/kibaone/accents API: output now uses JSON_PRETTY_PRINT
Branches
Unknown
Tags
Unknown