mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-11 08:39:28 +01:00
Load round rect radius from theme. Set it to 0 in 1995.
This commit is contained in:
1 parent
9c5f87f33d
commit
b319b1783a
2 files changed
+7
No files matched your search
@@ -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() {
|
||||
|
||||
@@ -42,3 +42,5 @@ PopupTitleStyleFg = "#FFFFFFFF"
|
||||
PopupTitleStyleBg = "#000080FF"
|
||||
PopupSliderColor = "#000000FF"
|
||||
PopupSliderFocusedColor = "#0000FFFF"
|
||||
|
||||
ChoiceRoundRadius = 0.0
|
||||
Reference in new issue
Block a user