daybreak: Add a setting to bypass the firmware version check
Let users turn off the Exosphere compatibility gate from the main menu when installing firmware newer than this Atmosphere build supports.
This commit is contained in:
4 files changed
+135
-5
No files matched your search
@@ -129,6 +129,27 @@ namespace dbk {
|
||||
}
|
||||
}
|
||||
|
||||
void DrawToggle(NVGcontext *vg, float x, float y, float w, float h, bool on, bool selected) {
|
||||
const float radius = h * 0.5f;
|
||||
|
||||
nvgBeginPath(vg);
|
||||
nvgRoundedRect(vg, x, y, w, h, radius);
|
||||
if (on) {
|
||||
nvgFillColor(vg, selected ? nvgRGB(255, 255, 255) : nvgRGB(83, 71, 185));
|
||||
} else {
|
||||
nvgFillColor(vg, selected ? nvgRGBA(255, 255, 255, 80) : nvgRGBA(0, 0, 0, 48));
|
||||
}
|
||||
nvgFill(vg);
|
||||
|
||||
const float pad = 3.0f;
|
||||
const float knob = h - pad * 2.0f;
|
||||
const float knob_x = on ? (x + w - pad - knob) : (x + pad);
|
||||
nvgBeginPath(vg);
|
||||
nvgRoundedRect(vg, knob_x, y + pad, knob, knob, knob * 0.5f);
|
||||
nvgFillColor(vg, on && selected ? nvgRGB(83, 71, 185) : nvgRGB(255, 255, 255));
|
||||
nvgFill(vg);
|
||||
}
|
||||
|
||||
void DrawTextBackground(NVGcontext *vg, float x, float y, float w, float h) {
|
||||
nvgBeginPath(vg);
|
||||
nvgRoundedRect(vg, x, y, w, h, TextAreaCornerRadius);
|
||||
|
||||
Reference in new issue
Block a user