all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Tim Marx <t.marx@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
	Aaron Lauterer <a.lauterer@proxmox.com>
Subject: Re: [pve-devel] [PATCH pve_flutter_frontend 1/3] add class for Proxmox corporate identity colors
Date: Wed, 30 Sep 2020 12:54:34 +0200 (CEST)	[thread overview]
Message-ID: <444711761.793.1601463274808@webmail.proxmox.com> (raw)
In-Reply-To: <20200928122825.21547-2-a.lauterer@proxmox.com>


> Aaron Lauterer <a.lauterer@proxmox.com> hat am 28.09.2020 14:28 geschrieben:
> 
>  
> Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
> ---
>  lib/main.dart                              |  3 ++-
>  lib/utils/promox_colors.dart               | 10 ++++++++++
>  lib/widgets/pve_guest_overview_header.dart |  3 ++-
>  lib/widgets/pve_node_overview.dart         |  3 ++-
>  4 files changed, 16 insertions(+), 3 deletions(-)
>  create mode 100644 lib/utils/promox_colors.dart
> 
> diff --git a/lib/main.dart b/lib/main.dart
> index d720225..8cd6c36 100644
> --- a/lib/main.dart
> +++ b/lib/main.dart
> @@ -28,6 +28,7 @@ import 'package:pve_flutter_frontend/widgets/pve_lxc_overview.dart';
>  import 'package:pve_flutter_frontend/widgets/pve_node_overview.dart';
>  import 'package:pve_flutter_frontend/widgets/pve_qemu_overview.dart';
>  import 'package:pve_flutter_frontend/widgets/pve_splash_screen.dart';
> +import 'utils/promox_colors.dart';
>  
>  void main() async {
>    WidgetsFlutterBinding.ensureInitialized();
> @@ -91,7 +92,7 @@ class MyApp extends StatelessWidget {
>            brightness: Brightness.light,
>            fontFamily: "Open Sans",
>            primarySwatch: Colors.blue,
> -          primaryColor: Color(0xFF00617F),
> +          primaryColor: ProxmoxColors.supportBlue,
>            primaryTextTheme: TextTheme(
>              headline6:
>                  TextStyle(fontFamily: "Open Sans", fontWeight: FontWeight.w700),
> diff --git a/lib/utils/promox_colors.dart b/lib/utils/promox_colors.dart
> new file mode 100644
> index 0000000..f45ef3d
> --- /dev/null
> +++ b/lib/utils/promox_colors.dart
> @@ -0,0 +1,10 @@
> +import 'package:flutter/material.dart';
> +
> +class ProxmoxColors {
> +  static final Color orange = Color(0xFFE57000);
> +  static final Color black = Color(0xFF000000);
> +  static final Color supportLightOrange = Color(0xFFFF9100);
> +  static final Color supportGrey = Color(0xFFABBABA);
> +  static final Color supportBlue = Color(0xFF00617F);
> +  static final Color supportDarkGrey = Color(0xFF464D4D);
> +}

With the exception of supportBlue (why support?) none of these colors are used why should we add them if they aren't used anywhere?

Black is definitely not a color we need to define.

> diff --git a/lib/widgets/pve_guest_overview_header.dart b/lib/widgets/pve_guest_overview_header.dart
> index c5bff16..8ed9d5d 100644
> --- a/lib/widgets/pve_guest_overview_header.dart
> +++ b/lib/widgets/pve_guest_overview_header.dart
> @@ -4,6 +4,7 @@ import 'package:built_collection/built_collection.dart';
>  import 'package:flutter/material.dart';
>  import 'package:font_awesome_flutter/font_awesome_flutter.dart';
>  import 'package:proxmox_dart_api_client/proxmox_dart_api_client.dart';
> +import 'package:pve_flutter_frontend/utils/promox_colors.dart';
>  import 'package:pve_flutter_frontend/utils/renderers.dart';
>  import 'package:pve_flutter_frontend/widgets/pve_guest_icon_widget.dart';
>  
> @@ -41,7 +42,7 @@ class PveGuestOverviewHeader extends StatelessWidget {
>        height: 250,
>        width: width,
>        decoration: BoxDecoration(
> -        color: Color(0xFF00617F),
> +        color: ProxmoxColors.supportBlue,
>        ),
>        child: Stack(
>            fit: StackFit.expand,
> diff --git a/lib/widgets/pve_node_overview.dart b/lib/widgets/pve_node_overview.dart
> index e193193..f7c334b 100644
> --- a/lib/widgets/pve_node_overview.dart
> +++ b/lib/widgets/pve_node_overview.dart
> @@ -5,6 +5,7 @@ import 'package:pve_flutter_frontend/bloc/pve_node_overview_bloc.dart';
>  import 'package:pve_flutter_frontend/bloc/pve_task_log_bloc.dart';
>  import 'package:pve_flutter_frontend/states/pve_node_overview_state.dart';
>  import 'package:pve_flutter_frontend/states/pve_task_log_state.dart';
> +import 'package:pve_flutter_frontend/utils/promox_colors.dart';
>  import 'package:pve_flutter_frontend/utils/renderers.dart';
>  import 'package:pve_flutter_frontend/utils/utils.dart';
>  import 'package:pve_flutter_frontend/widgets/proxmox_capacity_indicator.dart';
> @@ -46,7 +47,7 @@ class PveNodeOverview extends StatelessWidget {
>                  overflow: TextOverflow.ellipsis,
>                ),
>              ),
> -            backgroundColor: Color(0xFF00617F),
> +            backgroundColor: ProxmoxColors.supportBlue,
>              body: SingleChildScrollView(
>                child: Column(
>                  children: <Widget>[
> -- 
> 2.20.1
> 
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel




  reply	other threads:[~2020-09-30 10:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-28 12:28 [pve-devel] [PATCH pve_flutter_frontend 0/3] Add first welcome screen Aaron Lauterer
2020-09-28 12:28 ` [pve-devel] [PATCH pve_flutter_frontend 1/3] add class for Proxmox corporate identity colors Aaron Lauterer
2020-09-30 10:54   ` Tim Marx [this message]
2020-09-30 11:13     ` Aaron Lauterer
2020-09-28 12:28 ` [pve-devel] [PATCH pve_flutter_frontend 2/3] add Proxmox symbol logo white orange Aaron Lauterer
2020-09-30 11:08   ` Tim Marx
2020-09-30 11:22     ` Aaron Lauterer
2020-09-28 12:28 ` [pve-devel] [PATCH pve_flutter_frontend 3/3] Add first welcome screen Aaron Lauterer
2020-09-28 13:41   ` Aaron Lauterer
2020-09-30 12:04     ` Tim Marx

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=444711761.793.1601463274808@webmail.proxmox.com \
    --to=t.marx@proxmox.com \
    --cc=a.lauterer@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal