FullscreenUI: Align toggles with text

Signed-off-by: SternXD <stern@sidestore.io>
This commit is contained in:
SternXD authored and lightningterror committed 2026-04-15 21:00:48 +02:00
1 parent 6477a2d62e
commit fee5ab8e99
1 file changed
+3 -5
+3 -5
View File
@@ -1616,10 +1616,9 @@ bool ImGuiFullscreen::ToggleButton(
const float toggle_width = LayoutScale(50.0f);
const float toggle_height = LayoutScale(25.0f);
const float toggle_x = LayoutScale(8.0f);
const float toggle_y = (LayoutScale(height) - toggle_height) * 0.5f;
const float toggle_radius = toggle_height * 0.5f;
const ImVec2 toggle_pos(bb.Max.x - toggle_width - toggle_x, bb.Min.y + toggle_y);
const ImVec2 toggle_pos(bb.Max.x - toggle_width, bb.Min.y + toggle_y);
if (pressed)
*v = !*v;
@@ -1687,10 +1686,9 @@ bool ImGuiFullscreen::ThreeWayToggleButton(
const float toggle_width = LayoutScale(50.0f);
const float toggle_height = LayoutScale(25.0f);
const float toggle_x = LayoutScale(8.0f);
const float toggle_y = (LayoutScale(LAYOUT_MENU_BUTTON_HEIGHT) - toggle_height) * 0.5f;
const float toggle_y = (LayoutScale(height) - toggle_height) * 0.5f;
const float toggle_radius = toggle_height * 0.5f;
const ImVec2 toggle_pos(bb.Max.x - toggle_width - toggle_x, bb.Min.y + toggle_y);
const ImVec2 toggle_pos(bb.Max.x - toggle_width, bb.Min.y + toggle_y);
if (pressed)
{