You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.7KB

  1. #pragma once
  2. #include <JuceHeader.h>
  3. struct SelectorComponentStyle {
  4. const juce::Colour backgroundColour;
  5. const juce::Colour buttonBackgroundColour;
  6. const juce::Colour neutralColour;
  7. const juce::Colour highlightColour;
  8. const juce::Colour disabledColour;
  9. const std::unique_ptr<juce::LookAndFeel> searchBarLookAndFeel;
  10. const std::unique_ptr<juce::LookAndFeel> headerButtonLookAndFeel;
  11. const std::unique_ptr<juce::LookAndFeel> scanButtonLookAndFeel;
  12. const std::unique_ptr<juce::LookAndFeel> tableHeaderLookAndFeel;
  13. SelectorComponentStyle(juce::Colour newBackgroundColour,
  14. juce::Colour newButtonBackgroundColour,
  15. juce::Colour newNeutralColour,
  16. juce::Colour newHighlightColour,
  17. juce::Colour newDisabledColour,
  18. std::unique_ptr<juce::LookAndFeel> newSearchBarLookAndFeel,
  19. std::unique_ptr<juce::LookAndFeel> newHeaderButtonLookAndFeel,
  20. std::unique_ptr<juce::LookAndFeel> newScanButtonLookAndFeel,
  21. std::unique_ptr<juce::LookAndFeel> newTableHeaderLookAndFeel) :
  22. backgroundColour(newBackgroundColour),
  23. buttonBackgroundColour(newButtonBackgroundColour),
  24. neutralColour(newNeutralColour),
  25. highlightColour(newHighlightColour),
  26. disabledColour(newDisabledColour),
  27. searchBarLookAndFeel(std::move(newSearchBarLookAndFeel)),
  28. headerButtonLookAndFeel(std::move(newHeaderButtonLookAndFeel)),
  29. scanButtonLookAndFeel(std::move(newScanButtonLookAndFeel)),
  30. tableHeaderLookAndFeel(std::move(newTableHeaderLookAndFeel)) { }
  31. };