mirror of
https://github.com/tgeorgiadis/quiver-launcher.git
synced 2026-12-06 03:38:02 -05:00
- Introduce Android app - Migrate project files to .NET 10, updating dependencies and workflows. - Migrate project to Avalonia 12 - Refactor App.axaml to include a ResourceDictionary for theme management. - Introduce new styles for gamepad navigation and focus rings. - Implement hosted main view management for better application lifecycle handling. - Remove deprecated MainWindow.Mods.cs file and related code. - Update README to reflect changes in project structure and requirements. Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
729 B
C#
24 lines
729 B
C#
namespace QuiverLauncher.Services;
|
|
|
|
/// <summary>
|
|
/// Caps the Create/Edit App Entry field scroller so tall screens show more
|
|
/// fields, while short screens still leave room for title and buttons.
|
|
/// </summary>
|
|
internal static class EntryFormOverlayLayout
|
|
{
|
|
public const double ChromeAllowance = 240;
|
|
public const double MinScrollHeight = 400;
|
|
public const double MaxScrollHeight = 760;
|
|
|
|
public static double? ResolveScrollMaxHeight(double availableHeight, bool fillAvailable)
|
|
{
|
|
if (fillAvailable)
|
|
return null;
|
|
|
|
if (availableHeight <= 0)
|
|
return MaxScrollHeight;
|
|
|
|
return Math.Clamp(availableHeight - ChromeAllowance, MinScrollHeight, MaxScrollHeight);
|
|
}
|
|
}
|