diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-08-05 15:19:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-05 15:19:42 +0300 |
commit | 693c217da5aa6d405dd62c9bbed006074747983c (patch) | |
tree | 44b2406c9b5e26b558caf415e69977baa8f6a112 /indra/llui/lluicolortable.h | |
parent | 4a702182daf872e77797a1ff7e6e3040c3c5806d (diff) | |
parent | f63a371f92c90e73fd6e0bc42d33b75500a7e1c0 (diff) |
Merge pull request #2190 from RyeMutt/color-debug-floater
Introduce LLUIColorTable debug-settings-alike floater and fix various color system bugs
Diffstat (limited to 'indra/llui/lluicolortable.h')
-rw-r--r-- | indra/llui/lluicolortable.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llui/lluicolortable.h b/indra/llui/lluicolortable.h index ca1ca9eaa7..0c6286e5eb 100644 --- a/indra/llui/lluicolortable.h +++ b/indra/llui/lluicolortable.h @@ -83,12 +83,19 @@ public: // returns true if color_name exists in the table bool colorExists(std::string_view color_name) const; + bool isDefault(std::string_view color_name) const; + + void resetToDefault(std::string_view color_name); + // loads colors from settings files bool loadFromSettings(); // saves colors specified by the user to the users skin directory void saveUserSettings() const; + const auto& getLoadedColors() { return mLoadedColors; } + const auto& getUserColors() { return mUserSetColors; } + private: bool loadFromFilename(const std::string& filename, string_color_map_t& table); |