Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App architecture makeover #8

Closed
wants to merge 39 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
5b181a9
Deletes app entirely and recreates basic structure
baumths Sep 7, 2021
7079f75
Moves images into its own folder
baumths Sep 20, 2021
16a0fa3
Fixes logo path
baumths Sep 20, 2021
7dfd7bf
Removes trailing lines from analysis_options.yaml
baumths Sep 26, 2021
7a2b606
Adds base theme constants
baumths Sep 26, 2021
cafd1aa
Adds app widget
baumths Sep 26, 2021
725bba5
Adds SVG images to assets and some constants
baumths Sep 26, 2021
69ee4a5
Adds AnimatedState and mixin helpers
baumths Sep 26, 2021
98741bd
Adds Box and AnimatedBox
baumths Sep 26, 2021
9977dab
Adds ResponsiveBuilder
baumths Sep 26, 2021
1f18aa6
Adds Sidebar basic component
baumths Sep 26, 2021
e8c346b
Adds placeholder LoadingView
baumths Sep 26, 2021
8c9ca8f
Adds in-progress SettingsView
baumths Sep 26, 2021
7832ae6
Adds in-progress MainView
baumths Sep 26, 2021
8239b08
Fixes logo image path in README.md
baumths Sep 26, 2021
e647b4d
Adjusts app colors
baumths Sep 28, 2021
04d92c0
Setups sidebar to use generic values
baumths Sep 28, 2021
bfbd2f7
Updates MainSidebarMenu to new Sidebar generics
baumths Sep 28, 2021
a355a06
Adds scale animation to SettingsView
baumths Sep 28, 2021
9b8549c
Updates primary color
baumths Oct 3, 2021
7330573
Adds AppEdgeInsets to metrics
baumths Oct 3, 2021
7192375
Adds NavigationRail theme
baumths Oct 3, 2021
2375a42
[Refactor] Moves Settings from menu to features
baumths Oct 4, 2021
ad85bf0
[Feature] Adds Menu for large screens
baumths Oct 4, 2021
179782e
Deletes Sidebar
baumths Oct 4, 2021
1520fd7
[Refactor] Updates some texts and styling
baumths Oct 4, 2021
cdf7cca
[Refactor] Updates "browser" to "browse"
baumths Oct 4, 2021
d53e2e2
[Refactor] Renames MenuDestinationsModel
baumths Oct 4, 2021
223014c
[Design] Updates some theme defaults
baumths Oct 6, 2021
eaf538d
[Design] Improves settings UI
baumths Oct 6, 2021
df83889
[Design] Adds bottom option to AppBorderRadius
baumths Oct 8, 2021
0b3560e
[Design] Settings UI enhancements
baumths Oct 8, 2021
562c6b5
[Refactor] Extract BrowserType selection logic
baumths Oct 8, 2021
e41d451
[Refactor] Extract Codearq logic
baumths Oct 8, 2021
a8450a1
[Refactor] Lift Material to surround menu content
baumths Oct 10, 2021
81f35a9
[Refactor] Rename AppEdgeInsets to AppInsets
baumths Oct 10, 2021
1f7808b
[Design] Tweaks to Theme and Components
baumths Oct 11, 2021
127ed78
[Design] Adds initial UI for Transfer
baumths Oct 11, 2021
d090e17
previous work that was never commited
baumths May 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Design] Updates some theme defaults
- Adds a couple variants to primary color
- Adds extra small option to edge insets metrics
- Adds Divider theme
  • Loading branch information
baumths committed Oct 6, 2021
commit 223014cedacb6e6074f7e5656f11d2248692a337
4 changes: 4 additions & 0 deletions lib/src/presentation/theme/_colors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ abstract class AppColors {
static const Color white = Color(0xFFFFFFFF);
static const Color background = Color(0xFFE6E6E6);

static const Color primaryLight = Color(0xFF8F96A3);
static const Color primary = Color(0xFF000026);
static const Color primaryDarker = Color(0xFF00001A);

static const Color info = Color(0xFF0156B3);
static const Color success = Color(0xFF29634B);
static const Color warning = Color(0xFFF0B53C);
static const Color danger = Color(0xFFB00020);

// Reduced Opacity (hover colors)
static const Color primary15 = Color(0x26000026);
}

const ColorScheme kColorScheme = ColorScheme.light(
Expand Down
1 change: 1 addition & 0 deletions lib/src/presentation/theme/_metrics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ abstract class AppBorderRadius {
}

abstract class AppEdgeInsets {
static const double xSmall = 4;
static const double small = 8;
static const double medium = 16;
static const double large = 24;
Expand Down
14 changes: 11 additions & 3 deletions lib/src/presentation/theme/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ final ThemeData kLightTheme = ThemeData(
errorColor: AppColors.danger,
tooltipTheme: tooltipTheme,
navigationRailTheme: navigationRailTheme,
dividerTheme: dividerTheme,
hoverColor: AppColors.primary15,
);

const DividerThemeData dividerTheme = DividerThemeData(
color: AppColors.primaryLight,
space: 1.5,
thickness: 1.5,
);

final TooltipThemeData tooltipTheme = TooltipThemeData(
Expand All @@ -21,7 +29,7 @@ final TooltipThemeData tooltipTheme = TooltipThemeData(

NavigationRailThemeData get navigationRailTheme {
final Color selectedColor = kColorScheme.onPrimary;
final Color unselectedColor = kColorScheme.onPrimary.withOpacity(.4);
const Color unselectedColor = AppColors.primaryLight;
const double iconSize = 32.0;

return NavigationRailThemeData(
Expand All @@ -30,14 +38,14 @@ NavigationRailThemeData get navigationRailTheme {
color: selectedColor,
size: iconSize,
),
unselectedIconTheme: IconThemeData(
unselectedIconTheme: const IconThemeData(
color: unselectedColor,
size: iconSize,
),
selectedLabelTextStyle: TextStyle(
color: selectedColor,
),
unselectedLabelTextStyle: TextStyle(
unselectedLabelTextStyle: const TextStyle(
color: unselectedColor,
),
);
Expand Down