feature: HTPC mode startup argument (#358)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2025-06-01 15:30:34 +02:00 committed by GitHub
parent a8795cf0c9
commit 69a5e3db7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 416 additions and 151 deletions

View file

@ -58,7 +58,7 @@ class _SideNavigationBarState extends ConsumerState<SideNavigationBar> {
void stopTimer() {
timer?.cancel();
timer = Timer(const Duration(milliseconds: 350), () {
timer = Timer(const Duration(milliseconds: 125), () {
setState(() {
showOnHover = false;
});
@ -93,6 +93,7 @@ class _SideNavigationBarState extends ConsumerState<SideNavigationBar> {
child: MouseRegion(
onEnter: (value) => startTimer(),
onExit: (event) => stopTimer(),
onHover: (value) => startTimer(),
child: Column(
children: [
if (isDesktop && AdaptiveLayout.of(context).platform != TargetPlatform.macOS) ...{