Load round rect radius from theme. Set it to 0 in 1995.

This commit is contained in:
Henrik Rydgård committed 2026-10-29 15:28:37 +01:00
1 parent 9c5f87f33d
commit b319b1783a
2 files changed
+7

No files matched your search

+5
View File
@@ -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<Path> &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() {
+2
View File
@@ -42,3 +42,5 @@ PopupTitleStyleFg = "#FFFFFFFF"
PopupTitleStyleBg = "#000080FF"
PopupSliderColor = "#000000FF"
PopupSliderFocusedColor = "#0000FFFF"
ChoiceRoundRadius = 0.0