diff --git a/UI/Theme.cpp b/UI/Theme.cpp index acd85e18de..f04edcca2f 100644 --- a/UI/Theme.cpp +++ b/UI/Theme.cpp @@ -61,6 +61,7 @@ struct ThemeInfo { uint32_t uScrollbarColor = 0x80FFFFFF; uint32_t uPopupSliderColor = 0xFFFFFFFF; uint32_t uPopupSliderFocusedColor = 0xFFEDC24C; + float choiceRoundRadius = 12.0f; bool operator == (const std::string &other) { return name == other; @@ -161,6 +162,8 @@ static void LoadThemeInfo(const std::vector &directories) { section.Get("PopupSliderColor", &info.uPopupSliderColor); section.Get("PopupSliderFocusedColor", &info.uPopupSliderFocusedColor); + section.Get("ChoiceRoundRadius", &info.choiceRoundRadius); + appendTheme(info); } } @@ -246,6 +249,8 @@ void UpdateTheme() { ui_theme.popupSliderColor = themeInfo.uPopupSliderColor; ui_theme.popupSliderFocusedColor = themeInfo.uPopupSliderFocusedColor; + + ui_theme.choiceRoundRadius = themeInfo.choiceRoundRadius; } const UI::Theme *GetTheme() { diff --git a/assets/themes/1995.ini b/assets/themes/1995.ini index 6a3fa1cf87..7cf5aa08d8 100644 --- a/assets/themes/1995.ini +++ b/assets/themes/1995.ini @@ -42,3 +42,5 @@ PopupTitleStyleFg = "#FFFFFFFF" PopupTitleStyleBg = "#000080FF" PopupSliderColor = "#000000FF" PopupSliderFocusedColor = "#0000FFFF" + +ChoiceRoundRadius = 0.0