hotkeys F1–F6: notificacions localitzades, centralitzades a global_inputs

This commit is contained in:
2026-05-17 17:38:00 +02:00
parent 415ce17f3b
commit 7006207b7e
7 changed files with 114 additions and 29 deletions
-18
View File
@@ -570,10 +570,6 @@ void Screen::setShaderEnabled(bool enabled) {
// Si enabled=false, blit() forçarà POSTFX+zero per frame — no cal tocar
// res ara.
#endif
const Color CYAN = {0x00, 0xFF, 0xFF};
const Color BLACK = {0x00, 0x00, 0x00};
const Uint32 DUR_MS = 1500;
notify(enabled ? "Shader: ON" : "Shader: OFF", CYAN, BLACK, DUR_MS);
}
void Screen::toggleShaderEnabled() {
@@ -590,10 +586,6 @@ void Screen::setActiveShader(Rendering::ShaderType type) {
if (Options::video.shader.enabled) {
applyShaderParams();
}
const Color MAGENTA = {0xFF, 0x00, 0xFF};
const Color BLACK = {0x00, 0x00, 0x00};
const Uint32 DUR_MS = 1500;
notify(type == Rendering::ShaderType::CRTPI ? "Shader: CRTPI" : "Shader: POSTFX", MAGENTA, BLACK, DUR_MS);
}
auto Screen::getActiveShader() -> Rendering::ShaderType {
@@ -706,11 +698,6 @@ auto Screen::nextPreset() -> bool {
Options::crtpi_presets[Options::current_crtpi_preset].name;
applyCurrentCrtPiPreset();
}
const Color GREEN = {0x00, 0xFF, 0x80};
const Color BLACK = {0x00, 0x00, 0x00};
const Uint32 DUR_MS = 1500;
notify(std::string("Preset: ") + getCurrentPresetName(), GREEN, BLACK, DUR_MS);
return true;
#else
return false;
@@ -737,11 +724,6 @@ auto Screen::prevPreset() -> bool {
Options::crtpi_presets[Options::current_crtpi_preset].name;
applyCurrentCrtPiPreset();
}
const Color GREEN = {0x00, 0xFF, 0x80};
const Color BLACK = {0x00, 0x00, 0x00};
const Uint32 DUR_MS = 1500;
notify(std::string("Preset: ") + getCurrentPresetName(), GREEN, BLACK, DUR_MS);
return true;
#else
return false;