@@ -78,8 +78,8 @@ void StoreUtils::ProcessReleaseNotes(std::string releaseNotes) {
78
78
} while (splitPos != std::string::npos);
79
79
}
80
80
81
- void StoreUtils::DrawReleaseNotes (const int &scrollOffset, const std::string &title ) {
82
- if (title != " " && StoreUtils::store) {
81
+ void StoreUtils::DrawReleaseNotes (const int &scrollOffset, const std::unique_ptr<StoreEntry> &entry ) {
82
+ if (entry && StoreUtils::store) {
83
83
Gui::ScreenDraw (Bottom);
84
84
Gui::Draw_Rect (0 , 26 , 320 , 214 , UIThemes->BGColor ());
85
85
@@ -88,10 +88,11 @@ void StoreUtils::DrawReleaseNotes(const int &scrollOffset, const std::string &ti
88
88
if (25 + i * fontHeight > scrollOffset && 25 + i * fontHeight < scrollOffset + 240 .0f )
89
89
Gui::DrawString (5 , 25 + i * fontHeight - scrollOffset, 0 .5f , UIThemes->TextColor (), wrappedNotes[i], 310 , 0 , font);
90
90
}
91
+ uint32_t accentColor = config->useAccentColor () && !config->changelog () ? entry->GetAccentColor () : 0 ;
91
92
92
- Gui::Draw_Rect (0 , 0 , 320 , 25 , UIThemes->BarColor ());
93
+ Gui::Draw_Rect (0 , 0 , 320 , 25 , accentColor ? accentColor : UIThemes->EntryBar ());
93
94
Gui::Draw_Rect (0 , 25 , 320 , 1 , UIThemes->BarOutline ());
94
- Gui::DrawStringCentered (0 , 1 , 0 .7f , UIThemes->TextColor (), title , 310 , 0 , font);
95
+ Gui::DrawStringCentered (0 , 1 , 0 .7f , accentColor ? WHITE : UIThemes->TextColor (), config-> changelog () ? std::string ( " Universal-Updater " ) + C_V : entry-> GetTitle () , 310 , 0 , font);
95
96
96
97
GFX::DrawIcon (sprites_arrow_idx, back.x , back.y , UIThemes->TextColor ());
97
98
0 commit comments