@@ -108,20 +108,25 @@ static bool CreateShortcut(const std::string &entryName, int index, const std::s
108
108
const std::vector<std::string> &sizes: Const Reference to the download sizes as a vector of strings.
109
109
*/
110
110
void StoreUtils::DrawDownList (const std::vector<std::string> &entries, bool fetch, const std::unique_ptr<StoreEntry> &entry, const std::vector<std::string> &sizes, const std::vector<bool > &installs) {
111
+ uint32_t accentColor = 0 ;
112
+
111
113
/* For the Top Screen. */
112
114
if (StoreUtils::store && StoreUtils::store->GetValid () && !fetch && entry) {
113
115
if (entries.size () > 0 ) {
114
- Gui::Draw_Rect (0 , 174 , 400 , 66 , UIThemes->DownListPrev ());
116
+ accentColor = config->useAccentColor () ? entry->GetAccentColor () : 0 ;
117
+
118
+ if (accentColor) Gui::Draw_Rect (0 , 173 , 400 , 1 , UIThemes->EntryOutline ());
119
+ Gui::Draw_Rect (0 , 174 , 400 , 66 , accentColor ? accentColor : UIThemes->DownListPrev ());
115
120
const C2D_Image tempImg = entry->GetIcon ();
116
121
const uint8_t offsetW = (48 - tempImg.subtex ->width ) / 2 ; // Center W.
117
122
const uint8_t offsetH = (48 - tempImg.subtex ->height ) / 2 ; // Center H.
118
123
C2D_DrawImageAt (tempImg, 9 + offsetW, 174 + 9 + offsetH, 0.5 );
119
124
120
- Gui::DrawString (70 , 174 + 15 , 0 .45f , UIThemes->TextColor (), entries[StoreUtils::store->GetDownloadIndex ()], 310 , 0 , font);
125
+ Gui::DrawString (70 , 174 + 15 , 0 .45f , accentColor ? WHITE : UIThemes->TextColor (), entries[StoreUtils::store->GetDownloadIndex ()], 310 , 0 , font);
121
126
122
127
if (!sizes.empty ()) {
123
128
if (sizes[StoreUtils::store->GetDownloadIndex ()] != " " ) {
124
- Gui::DrawString (70 , 174 + 30 , 0 .45f , UIThemes->TextColor (), Lang::get (" SIZE" ) + " : " + sizes[StoreUtils::store->GetDownloadIndex ()], 310 , 0 , font);
129
+ Gui::DrawString (70 , 174 + 30 , 0 .45f , accentColor ? WHITE : UIThemes->TextColor (), Lang::get (" SIZE" ) + " : " + sizes[StoreUtils::store->GetDownloadIndex ()], 310 , 0 , font);
125
130
}
126
131
}
127
132
}
@@ -133,9 +138,9 @@ void StoreUtils::DrawDownList(const std::vector<std::string> &entries, bool fetc
133
138
Animation::QueueEntryDone ();
134
139
135
140
GFX::DrawBottom ();
136
- Gui::Draw_Rect (40 , 0 , 280 , 25 , UIThemes->EntryBar ());
141
+ Gui::Draw_Rect (40 , 0 , 280 , 25 , accentColor ? accentColor : UIThemes->EntryBar ());
137
142
Gui::Draw_Rect (40 , 25 , 280 , 1 , UIThemes->EntryOutline ());
138
- Gui::DrawStringCentered (17 , 2 , 0.6 , UIThemes->TextColor (), Lang::get (" AVAILABLE_DOWNLOADS" ), 273 , 0 , font);
143
+ Gui::DrawStringCentered (17 , 2 , 0.6 , accentColor ? WHITE : UIThemes->TextColor (), Lang::get (" AVAILABLE_DOWNLOADS" ), 273 , 0 , font);
139
144
140
145
if (StoreUtils::store && StoreUtils::store->GetValid () && !fetch && entry) {
141
146
if (entries.size () > 0 ) {
0 commit comments