#include <color.h>
Classes | |
| struct | HSL |
Public Member Functions | |
| operator ImVec4 () const | |
| HSL | ToHSL () const |
| Color | WithHue (float new_hue) const |
| Color | WithSaturation (float new_sat) const |
| Color | WithLightness (float new_light) const |
| Color | Lighter (float amount) const |
| Color | Darker (float amount) const |
| Color | Saturate (float amount) const |
| Color | Desaturate (float amount) const |
| Color | ShiftHue (float degrees) const |
| Color | WithAlpha (float new_alpha) const |
Static Public Member Functions | |
| static Color | FromHSL (float h, float s, float l, float a=1.0f) |
Public Attributes | |
| float | red = 0.0f |
| float | green = 0.0f |
| float | blue = 0.0f |
| float | alpha = 1.0f |
|
inline |
|
inline |
Definition at line 31 of file color.h.
References blue, green, yaze::gui::Color::HSL::h, yaze::gui::Color::HSL::l, red, and yaze::gui::Color::HSL::s.
Referenced by Darker(), Desaturate(), yaze::gui::ThemeManager::GenerateThemeFromAccent(), Lighter(), Saturate(), ShiftHue(), WithHue(), WithLightness(), and WithSaturation().
|
inlinestatic |
Definition at line 60 of file color.h.
References alpha, blue, green, and red.
Referenced by Darker(), Desaturate(), yaze::gui::ThemeManager::GenerateThemeFromAccent(), Lighter(), Saturate(), ShiftHue(), WithHue(), WithLightness(), and WithSaturation().
|
inline |
Definition at line 87 of file color.h.
References alpha, FromHSL(), yaze::gui::Color::HSL::l, yaze::gui::Color::HSL::s, and ToHSL().

|
inline |
Definition at line 92 of file color.h.
References alpha, FromHSL(), yaze::gui::Color::HSL::h, yaze::gui::Color::HSL::l, and ToHSL().

|
inline |
Definition at line 97 of file color.h.
References alpha, FromHSL(), yaze::gui::Color::HSL::h, yaze::gui::Color::HSL::s, and ToHSL().

|
inline |
Definition at line 102 of file color.h.
References alpha, FromHSL(), yaze::gui::Color::HSL::h, yaze::gui::Color::HSL::l, yaze::gui::Color::HSL::s, and ToHSL().
Referenced by yaze::gui::ThemeManager::GenerateThemeFromAccent().

|
inline |
Definition at line 107 of file color.h.
References alpha, FromHSL(), yaze::gui::Color::HSL::h, yaze::gui::Color::HSL::l, yaze::gui::Color::HSL::s, and ToHSL().
Referenced by yaze::gui::ThemeManager::GenerateThemeFromAccent().

|
inline |
Definition at line 112 of file color.h.
References alpha, FromHSL(), yaze::gui::Color::HSL::h, yaze::gui::Color::HSL::l, yaze::gui::Color::HSL::s, and ToHSL().

|
inline |
Definition at line 117 of file color.h.
References alpha, FromHSL(), yaze::gui::Color::HSL::h, yaze::gui::Color::HSL::l, yaze::gui::Color::HSL::s, and ToHSL().
Referenced by yaze::gui::ThemeManager::GenerateThemeFromAccent().

|
inline |
Definition at line 122 of file color.h.
References alpha, FromHSL(), yaze::gui::Color::HSL::h, yaze::gui::Color::HSL::l, yaze::gui::Color::HSL::s, and ToHSL().
Referenced by yaze::gui::ThemeManager::GenerateThemeFromAccent().

|
inline |
| float yaze::gui::Color::red = 0.0f |
Definition at line 17 of file color.h.
Referenced by yaze::gui::ThemeManager::ApplySmartDefaults(), yaze::gui::BackgroundRenderer::BlendColorWithFade(), yaze::gui::ColorToHexString(), yaze::gui::ConvertColorToImVec4(), FromHSL(), yaze::gui::ThemeManager::GetWelcomeScreenBackground(), operator ImVec4(), yaze::gui::anonymous_namespace{style.cc}::ParseColor(), yaze::gui::BackgroundRenderer::RenderDockingBackground(), yaze::gui::BackgroundRenderer::RenderGridBackground(), yaze::gui::BackgroundRenderer::RenderRadialGradient(), yaze::gui::ThemeManager::ShowSimpleThemeEditor(), ToHSL(), yaze::gui::BackgroundRenderer::UpdateForTheme(), and WithAlpha().
| float yaze::gui::Color::green = 0.0f |
Definition at line 18 of file color.h.
Referenced by yaze::gui::ThemeManager::ApplySmartDefaults(), yaze::gui::BackgroundRenderer::BlendColorWithFade(), yaze::gui::ColorToHexString(), yaze::gui::ConvertColorToImVec4(), FromHSL(), yaze::gui::ThemeManager::GetWelcomeScreenBackground(), operator ImVec4(), yaze::gui::anonymous_namespace{style.cc}::ParseColor(), yaze::gui::BackgroundRenderer::RenderGridBackground(), yaze::gui::BackgroundRenderer::RenderRadialGradient(), yaze::gui::ThemeManager::ShowSimpleThemeEditor(), ToHSL(), yaze::gui::BackgroundRenderer::UpdateForTheme(), and WithAlpha().
| float yaze::gui::Color::blue = 0.0f |
Definition at line 19 of file color.h.
Referenced by yaze::gui::ThemeManager::ApplySmartDefaults(), yaze::gui::BackgroundRenderer::BlendColorWithFade(), yaze::gui::ColorToHexString(), yaze::gui::ConvertColorToImVec4(), FromHSL(), yaze::gui::ThemeManager::GetWelcomeScreenBackground(), operator ImVec4(), yaze::gui::anonymous_namespace{style.cc}::ParseColor(), yaze::gui::BackgroundRenderer::RenderGridBackground(), yaze::gui::BackgroundRenderer::RenderRadialGradient(), yaze::gui::ThemeManager::ShowSimpleThemeEditor(), ToHSL(), yaze::gui::BackgroundRenderer::UpdateForTheme(), and WithAlpha().
| float yaze::gui::Color::alpha = 1.0f |
Definition at line 20 of file color.h.
Referenced by yaze::gui::ThemeManager::ApplySmartDefaults(), yaze::gui::BackgroundRenderer::BlendColorWithFade(), yaze::gui::ColorToHexString(), yaze::gui::ConvertColorToImVec4(), Darker(), Desaturate(), FromHSL(), yaze::editor::music::anonymous_namespace{tracker_view.cc}::GetColorBeatHighlight(), yaze::editor::music::anonymous_namespace{tracker_view.cc}::GetColorSelection(), yaze::gui::ThemeManager::GetWelcomeScreenBackground(), Lighter(), operator ImVec4(), yaze::gui::BackgroundRenderer::RenderDockingBackground(), yaze::gui::BackgroundRenderer::RenderGridBackground(), yaze::gui::BackgroundRenderer::RenderRadialGradient(), Saturate(), ShiftHue(), WithHue(), WithLightness(), and WithSaturation().