|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- /*
- * PatchBay Canvas Themes
- * Copyright (C) 2010-2019 Filipe Coelho <falktx@falktx.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * For a full copy of the GNU General Public License see the doc/GPL.txt file.
- */
-
- #ifndef CARLA_PATCHBAY_THEME_HPP_INCLUDED
- #define CARLA_PATCHBAY_THEME_HPP_INCLUDED
-
- //---------------------------------------------------------------------------------------------------------------------
- // Imports (Global)
-
- //---------------------------------------------------------------------------------------------------------------------
- // Imports (Custom)
-
- #include "CarlaJuceUtils.hpp"
-
- //---------------------------------------------------------------------------------------------------------------------
-
- class Theme
- {
- public:
- enum PortType {
- THEME_PORT_SQUARE,
- THEME_PORT_POLYGON
- };
-
- enum List {
- THEME_MODERN_DARK,
- THEME_MODERN_DARK_TINY,
- THEME_MODERN_LIGHT,
- THEME_CLASSIC_DARK,
- THEME_OOSTUDIO,
- THEME_MAX
- };
-
- enum BackgroundType {
- THEME_BG_SOLID,
- THEME_BG_GRADIENT
- };
-
- Theme(Theme::List idx);
- ~Theme();
-
- private:
- struct PrivateData;
- PrivateData* const self;
-
- CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(Theme)
- };
-
- //---------------------------------------------------------------------------------------------------------------------
-
- static inline
- Theme::List getDefaultTheme()
- {
- return Theme::THEME_MODERN_DARK;
- }
-
- static inline
- const char* getDefaultThemeName()
- {
- return "Modern Dark";
- }
-
- static inline
- const char* getThemeName(const Theme::List idx)
- {
- switch (idx)
- {
- case Theme::THEME_MODERN_DARK:
- return "Modern Dark";
- case Theme::THEME_MODERN_DARK_TINY:
- return "Modern Dark (Tiny)";
- case Theme::THEME_MODERN_LIGHT:
- return "Modern Light";
- case Theme::THEME_CLASSIC_DARK:
- return "Classic Dark";
- case Theme::THEME_OOSTUDIO:
- return "OpenOctave Studio";
- default:
- return "";
- }
- }
-
- //---------------------------------------------------------------------------------------------------------------------
-
- #endif // CARLA_PATCHBAY_THEME_HPP_INCLUDED
|