mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Fix color of setting hints. Minor tweak to clipboard notifications
See #21223
This commit is contained in:
1 parent
c89582cfd6
commit
e65013201f
5 files changed
+5
-4
No files matched your search
@@ -214,7 +214,7 @@ void DeveloperToolsScreen::CreateGeneralTab(UI::LinearLayout *list) {
|
||||
std::string configStr = g_Config.GetConfigAsString();
|
||||
if (!configStr.empty()) {
|
||||
System_CopyStringToClipboard(configStr);
|
||||
g_OSD.Show(OSDType::MESSAGE_INFO, ApplySafeSubstitutions(di->T("Copied to clipboard: %1"), "ppsspp.ini"), 1.0f);
|
||||
g_OSD.Show(OSDType::MESSAGE_INFO, ApplySafeSubstitutions(di->T("Copied to clipboard: %1"), "ppsspp.ini"), 0.0f, "copyToClip");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
+1
-1
@@ -315,7 +315,7 @@ void GameScreen::CreateContentViews(UI::ViewGroup *parent) {
|
||||
snprintf(buffer, sizeof(buffer), "%08X", crc);
|
||||
System_CopyStringToClipboard(buffer);
|
||||
// Success indication. Not worth a translatable string.
|
||||
g_OSD.Show(OSDType::MESSAGE_INFO, ApplySafeSubstitutions(di->T("Copied to clipboard: %1"), buffer), 1.0f);
|
||||
g_OSD.Show(OSDType::MESSAGE_INFO, ApplySafeSubstitutions(di->T("Copied to clipboard: %1"), buffer), 0.0f, "copyToClip");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -122,6 +122,7 @@ public:
|
||||
|
||||
void Draw(UIContext &dc) override {
|
||||
UI::Style style = dc.GetTheme().itemStyle;
|
||||
SetTextColor(style.fgColor); // bit hacky but works
|
||||
dc.FillRect(style.background, bounds_);
|
||||
UI::TextView::Draw(dc);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1254,7 +1254,7 @@ public:
|
||||
if (!portrait_ && (touch.flags & TouchInputFlags::DOWN) && bounds_.Contains(touch.x, touch.y) && touch.y >= bounds_.y2() - 20) {
|
||||
auto di = GetI18NCategory(I18NCat::DIALOG);
|
||||
System_CopyStringToClipboard(PPSSPP_GIT_VERSION);
|
||||
g_OSD.Show(OSDType::MESSAGE_INFO, ApplySafeSubstitutions(di->T("Copied to clipboard: %1"), PPSSPP_GIT_VERSION), 1.0f, "copyToClip");
|
||||
g_OSD.Show(OSDType::MESSAGE_INFO, ApplySafeSubstitutions(di->T("Copied to clipboard: %1"), PPSSPP_GIT_VERSION), 0.0f, "copyToClip");
|
||||
return true;
|
||||
}
|
||||
return retval;
|
||||
|
||||
@@ -68,7 +68,7 @@ static void CopySummaryToClipboard(Draw::DrawContext *draw) {
|
||||
System_CopyStringToClipboard(summary);
|
||||
delete[] summary;
|
||||
|
||||
g_OSD.Show(OSDType::MESSAGE_INFO, ApplySafeSubstitutions(di->T("Copied to clipboard: %1"), si->T("System Information")));
|
||||
g_OSD.Show(OSDType::MESSAGE_INFO, ApplySafeSubstitutions(di->T("Copied to clipboard: %1"), si->T("System Information")), 0.0f, "copyToClip");
|
||||
}
|
||||
|
||||
void SystemInfoScreen::CreateTabs() {
|
||||
|
||||
Reference in new issue
Block a user