mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-12-04 20:03:31 +01:00
FullscreenUI: Align toggles with text
Signed-off-by: SternXD <stern@sidestore.io>
This commit is contained in:
1 parent
6477a2d62e
commit
fee5ab8e99
1 file changed
+3
-5
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user