Skip to content

Commit

Permalink
Update theme, icon, branding
Browse files Browse the repository at this point in the history
  • Loading branch information
danielchalmers committed Oct 12, 2024
1 parent 017f1ec commit 2ff71a8
Show file tree
Hide file tree
Showing 18 changed files with 10,438 additions and 10,378 deletions.
2 changes: 1 addition & 1 deletion JournalApp/Components/EditCategoryDialog.razor
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
else if (Group == "Medications")
{
<div class="d-flex flex-row flex-grow-1" style="gap: 0.75em">
<div class="d-flex flex-row flex-grow-1" style="gap: 1em">
<MudNumericField @bind-Value="MedicationDose" HideSpinButtons Label="Dose" MaxLength="6" Immediate />

<MudTextField @bind-Value="MedicationUnit" Label="Unit" MaxLength="8" Immediate />
Expand Down
2 changes: 1 addition & 1 deletion JournalApp/Components/EditDoseDialog.razor
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<DialogContent>
<MudForm>
<MudText Align="Align.Center" Typo="Typo.subtitle2">
<MudText Align="Align.Center" Typo="Typo.subtitle2" Class="mud-text-secondary">
To change this for all days, go to "Edit medications" from the home screen.
</MudText>

Expand Down
6 changes: 3 additions & 3 deletions JournalApp/JournalApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<EnableDefaultCssItems>false</EnableDefaultCssItems>

<ApplicationTitle>JournalApp</ApplicationTitle>
<ApplicationTitle>Journal App</ApplicationTitle>
<ApplicationId>com.danielchalmers.journalapp</ApplicationId>
<ApplicationId Condition="'$(Configuration)' == 'DEBUG'">com.danielchalmers.journalapp.debug</ApplicationId>
<ApplicationIdGuid>2B30B066-B4D9-4C17-8A4B-C72E1ABC4BF3</ApplicationIdGuid>
Expand All @@ -22,8 +22,8 @@
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg_debug.svg" Condition="'$(Configuration)' == 'DEBUG'" />

<!-- Splash Screen -->
<MauiSplashScreen Include="Resources\AppIcon\appiconfg.svg" Color="#776be7" Condition="'$(Configuration)' != 'DEBUG'" />
<MauiSplashScreen Include="Resources\AppIcon\appiconfg_debug.svg" Color="#776be7" Condition="'$(Configuration)' == 'DEBUG'" />
<MauiSplashScreen Include="Resources\AppIcon\appiconfg.svg" Color="#9389e8" Condition="'$(Configuration)' != 'DEBUG'" />
<MauiSplashScreen Include="Resources\AppIcon\appiconfg_debug.svg" Color="#9389e8" Condition="'$(Configuration)' == 'DEBUG'" />

<!-- Images -->
<MauiImage Include="Resources\Images\*" />
Expand Down
28 changes: 15 additions & 13 deletions JournalApp/Pages/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,31 @@
{
PaletteLight = new PaletteLight()
{
Primary = "#776be7",
PrimaryLighten = "#978dec",
Info = "#776be7",
AppbarText = "#ffffffe6",
Background = "#f7f6fb",
TextDisabled = "#424242",
// https://material-foundation.github.io/material-theme-builder
Primary = "#9389e8",
Secondary = "#928ea6",
Tertiary = "#b48399",
Info = "#b48399",
AppbarText = "#ffffffff",
HoverOpacity = 0.1,
},

PaletteDark = new PaletteDark()
{
Primary = "#776be7",
Info = "#776be7",
AppbarText = "#ffffffe6",
TextPrimary = "#ffffffcc",
TextSecondary = "#ffffff99",
TextDisabled = "#ffffffb2",
// https://material-foundation.github.io/material-theme-builder
Primary = "#9389e8",
Secondary = "#928ea6",
Tertiary = "#b48399",
Info = "#b48399",
AppbarText = "#ffffffff",
HoverOpacity = 0.1,

TextPrimary = "#ffffffde",
TextSecondary = "#ffffff99",
},

LayoutProperties = new()
{
AppbarHeight = "4em",
DefaultBorderRadius = "2.0em",
},

Expand Down
4 changes: 3 additions & 1 deletion JournalApp/Pages/SafetyPlanning/SafetyPlanItem.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

<section class="@($"safety-plan-item safety-plan-item-{MarkupUtil.ToClassName(Title)}")">
<MudText Typo="Typo.h5">@Title</MudText>
<MudText Typo="Typo.caption">@Subtitle</MudText>

<MudText Typo="Typo.subtitle2">@Subtitle</MudText>

<MudTextField T="string" @bind-Text="Text" Placeholder="@Placeholder"
Typo="Typo.body2" Variant="Variant.Outlined" Immediate Underline="false"
AutoGrow Lines="3" MaxLines="10" />
Expand Down
3 changes: 1 addition & 2 deletions JournalApp/Pages/SafetyPlanning/SafetyPlanPage.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@namespace JournalApp
@page "/safetyplan"
@using ApexCharts
@inherits JaPage
@implements IDisposable
@inject ILogger<SafetyPlanPage> logger
Expand All @@ -15,7 +14,7 @@

<main class="page-body">
<div class="safety-plan-items-container">
<MudText Align="MudBlazor.Align.Center">
<MudText Align="Align.Center" Class="mud-text-secondary">
Your coping strategies and sources of support that can be used before or during a crisis to help yourself stay safe.
</MudText>

Expand Down
2 changes: 1 addition & 1 deletion JournalApp/Pages/Trends/TrendCategoryView.razor
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ else
Mode = PreferenceService.IsDarkMode ? Mode.Dark : Mode.Light,
Monochrome = new ThemeMonochrome
{
Color = "#776be7",
Color = "#9389e8",
Enabled = true,
},
},
Expand Down
1 change: 1 addition & 0 deletions JournalApp/Pages/Worksheets/WorksheetsPage.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
display: flex;
flex-direction: column;
gap: 2em;
padding-bottom: 1em;
}

.worksheet-group-toc {
Expand Down
6 changes: 3 additions & 3 deletions JournalApp/Platforms/Android/Resources/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#594ae2</color>
<color name="colorPrimaryDark">#776be7</color>
<color name="colorAccent">#ff4081</color>
<color name="colorPrimary">#9389e8</color>
<color name="colorPrimaryDark">#9389e8</color>
<color name="colorAccent">#b48399</color>
</resources>
2 changes: 1 addition & 1 deletion JournalApp/Resources/AppIcon/appicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion JournalApp/Resources/AppIcon/appiconfg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion JournalApp/Resources/AppIcon/appiconfg_debug.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2ff71a8

Please sign in to comment.