27#include <utility/graphic/color.hpp>
117 utility::graphic::Color32Bit
contentColor(std::size_t variant);
188 template<
typename VariantType> utility::graphic::Color32Bit
203 template<
typename VariantType>
The table lookups behind the templates, taking the enumerator as an index. Call the templated functio...
float borderRadius(std::size_t size)
Corner radius of the container.
float labelFontSize(std::size_t size)
Font size of the label and icon of an extended FAB.
utility::graphic::Color32Bit contentColor(std::size_t variant)
Color of the icon and of the label.
utility::graphic::Color32Bit containerColor(std::size_t variant, bool lowered)
Fill color of the container.
float iconFontSize(std::size_t size)
Font size of the icon of a regular FAB.
float containerSize(std::size_t size)
Width and height of the container at its default size.
Maps a FAB size and variant to Material 3 metrics and scheme colors, for the regular and the extended...
utility::graphic::Color32Bit getContentColor(VariantType variant)
Color of the icon and of the label of a FAB: Primary for the Surface variant, the "on container" role...
float getLabelFontSize(SizeType size)
Font size shared by the label and the icon of an extended FAB: 18 dp for Small, 24 dp for Medium,...
float getContainerSize(SizeType size)
Width and height of the container of a FAB at its default size: 40 dp for Small, 56 dp for Medium,...
utility::graphic::Color32Bit getContainerColor(VariantType variant, bool lowered)
Fill color of the container of a FAB.
float getBorderRadius(SizeType size)
Corner radius of the container: the Medium, Large and ExtraLarge shape of the active theme for a Smal...
float getIconFontSize(SizeType size)
Font size of the icon of a regular FAB: 24 dp for Small and Medium, 36 dp for Large.