diff --git a/include/guisan/widget.hpp b/include/guisan/widget.hpp index f5ee277..1311906 100644 --- a/include/guisan/widget.hpp +++ b/include/guisan/widget.hpp @@ -720,10 +720,34 @@ namespace gcn * @since 0.1.0 */ static void setGlobalFont(Font* font); - static void setGlobalBaseColor(Color color); - static void setGlobalForegroundColor(Color color); - static void setGlobalBackgroundColor(Color color); - static void setGlobalSelectionColor(Color color); + + /** + * Set the base color for all widgets + * + * @param color The color to use + */ + static void setWidgetsBaseColor(Color color); + + /** + * Set the foreground color for all widgets + * + * @param color The color to use + */ + static void setWidgetsForegroundColor(Color color); + + /** + * Set the background color for all widgets + * + * @param color The color to use + */ + static void setWidgetsBackgroundColor(Color color); + + /** + * Set the selection color for all widgets + * + * @param color The color to use + */ + static void setWidgetsSelectionColor(Color color); /** * Sets the font for the widget. If nullptr is passed, the global font diff --git a/src/widget.cpp b/src/widget.cpp index 21955c6..7b5c329 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -513,7 +513,7 @@ namespace gcn } } - void Widget::setGlobalBaseColor(Color color) + void Widget::setWidgetsBaseColor(Color color) { for (Widget* w : mWidgetInstances) { @@ -521,7 +521,7 @@ namespace gcn } } - void Widget::setGlobalForegroundColor(Color color) + void Widget::setWidgetsForegroundColor(Color color) { for (Widget* w : mWidgetInstances) { @@ -529,7 +529,7 @@ namespace gcn } } - void Widget::setGlobalBackgroundColor(Color color) + void Widget::setWidgetsBackgroundColor(Color color) { for (Widget* w : mWidgetInstances) { @@ -537,7 +537,7 @@ namespace gcn } } - void Widget::setGlobalSelectionColor(Color color) + void Widget::setWidgetsSelectionColor(Color color) { for (Widget* w : mWidgetInstances) {