Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Commit

Permalink
feat: scale system bar and navbar down
Browse files Browse the repository at this point in the history
  • Loading branch information
RossComputerGuy committed May 19, 2024
1 parent a751346 commit 81a1d66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/widgets/system_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import '../logic/outputs.dart';
import 'clock.dart';
import 'power.dart';

const kSystemBarHeight = kToolbarHeight / 1.5;
const kSystemBarHeight = kToolbarHeight / 2.0;

class SystemBar extends StatelessWidget implements PreferredSizeWidget {
const SystemBar({
Expand Down Expand Up @@ -72,6 +72,6 @@ class SystemBar extends StatelessWidget implements PreferredSizeWidget {

static double heightFor(BuildContext context) {
final theme = AppBarTheme.of(context);
return (theme.toolbarHeight ?? kToolbarHeight) / 1.5;
return (theme.toolbarHeight ?? kToolbarHeight) / 2.0;
}
}
4 changes: 2 additions & 2 deletions lib/widgets/system_navbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:libtokyo/libtokyo.dart' hide TokyoApp, Scaffold;

import 'activity_drawer.dart';

const kSystemNavbarHeight = kToolbarHeight / 1.4;
const kSystemNavbarHeight = kToolbarHeight / 2.0;

class SystemNavbar extends StatefulWidget {
const SystemNavbar({
Expand All @@ -29,7 +29,7 @@ class SystemNavbar extends StatefulWidget {

static double heightFor(BuildContext context) {
final theme = BottomAppBarTheme.of(context);
return (theme.height ?? 80) / 1.4;
return (theme.height ?? kToolbarHeight) / 2.0;
}
}

Expand Down

0 comments on commit 81a1d66

Please sign in to comment.