From d25dd8870b57f294942d65d558ba0850ab846a6c Mon Sep 17 00:00:00 2001 From: CodeDoctorDE Date: Tue, 21 May 2024 15:28:59 +0200 Subject: [PATCH] Modernize home page gradient colors --- README.md | 1 + SECURITY.md | 2 +- app/lib/theme.dart | 4 ++-- app/lib/views/home.dart | 9 ++++----- docs/README.md | 14 ++------------ metadata/en-US/changelogs/106.txt | 2 ++ 6 files changed, 12 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 3c55f22802d2..8bcf399ef570 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ DiscordMastodonBluesky • + LinwoodContribute

diff --git a/SECURITY.md b/SECURITY.md index 0d4e1b9fce5e..f3d00c7da8b7 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -4,7 +4,7 @@ | Version | Supported | | | --------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------- | -| 2.1.0-dev | :warning: | [Docs](https://butterfly.linwood.dev/docs/2.1/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.1.0-rc.3) | +| 2.1.1-dev | :warning: | [Docs](https://butterfly.linwood.dev/docs/2.1/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.1.1-rc.1) | | 2.1.0 | :white_check_mark: | [Docs](https://butterfly.linwood.dev/docs/2.1/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.1.0) | | 2.0.3 | :white_check_mark: | [Docs](https://butterfly.linwood.dev/docs/2.0/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.0.3) | | 1.6.1 | :x: | [Docs](https://butterfly.linwood.dev/docs/1.6/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v1.6.1) | diff --git a/app/lib/theme.dart b/app/lib/theme.dart index 7a3804d5dc99..308a4d466856 100644 --- a/app/lib/theme.dart +++ b/app/lib/theme.dart @@ -3,8 +3,8 @@ import 'package:flutter/material.dart'; import 'main.dart'; -const kClassicFirstColor = Color(0xFFf2b138); -const kClassicSecondColor = Color(0xFFbe5050); +const kClassicFirstColor = Color(0xFFc4840d); +const kClassicSecondColor = Color(0xFF7b8f96); const kClassicThemePrimary = isNightly ? kClassicSecondColor : kClassicFirstColor; const kClassicThemeSecondary = diff --git a/app/lib/views/home.dart b/app/lib/views/home.dart index c1bb6af33c87..5ba1ef42e834 100644 --- a/app/lib/views/home.dart +++ b/app/lib/views/home.dart @@ -361,14 +361,13 @@ class _HeaderHomeViewState extends State<_HeaderHomeView> decoration: BoxDecoration( borderRadius: BorderRadius.circular(24), gradient: LinearGradient( - begin: Alignment.topCenter, - end: Alignment.bottomCenter, + begin: Alignment.topLeft, + end: Alignment.bottomRight, colors: [ - Color.alphaBlend(colorScheme.inverseSurface.withOpacity(0.3), - colorScheme.surface), + colorScheme.secondary, colorScheme.primary, ], - stops: const [0, 0.8], + stops: const [0.2, 0.8], ), ), child: innerCard, diff --git a/docs/README.md b/docs/README.md index b51abaabcd43..4a8b39be8290 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,20 +1,10 @@ -# Starlight Starter Kit: Basics +# Butterfly Documentation [![Built with Starlight](https://astro.badg.es/v2/built-with-starlight/tiny.svg)](https://starlight.astro.build) -``` -npm create astro@latest -- --template starlight -``` - -[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/starlight/tree/main/examples/basics) -[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/starlight/tree/main/examples/basics) -[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fwithastro%2Fstarlight%2Ftree%2Fmain%2Fexamples%2Fbasics&project-name=my-starlight-docs&repository-name=my-starlight-docs) - -> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun! - ## 🚀 Project Structure -Inside of your Astro + Starlight project, you'll see the following folders and files: +Inside of the docs directory, you'll see the following folders and files: ``` . diff --git a/metadata/en-US/changelogs/106.txt b/metadata/en-US/changelogs/106.txt index 65f48fbf1401..90dba2d2e189 100644 --- a/metadata/en-US/changelogs/106.txt +++ b/metadata/en-US/changelogs/106.txt @@ -2,11 +2,13 @@ * Improve pdf import performance ([#702](https://github.com/LinwoodDev/Butterfly/pull/702)) * Reimplement quality in pdf import ([#702](https://github.com/LinwoodDev/Butterfly/pull/702)) * Center grid items in home page +* Modernize home page header gradient to use secondary and primary color * Improve webdav requests ([#703](https://github.com/LinwoodDev/Butterfly/pull/703)) * Improve image quality ([#704](https://github.com/LinwoodDev/Butterfly/issues/704)) * Improve baked image quality * Improve responsiveness * Improve path eraser performance +* Use a blue/gray for secondary color in classic theme * Fix launching url does nothing * Fix settings on mobile fill full height * Fix grid switch on file view will be shown in navigator