From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <t.marx@proxmox.com>
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by lists.proxmox.com (Postfix) with ESMTPS id 0974462631
 for <pve-devel@lists.proxmox.com>; Wed, 30 Sep 2020 12:55:16 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
 by firstgate.proxmox.com (Proxmox) with ESMTP id EA0FC18178
 for <pve-devel@lists.proxmox.com>; Wed, 30 Sep 2020 12:54:45 +0200 (CEST)
Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com
 [212.186.127.180])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by firstgate.proxmox.com (Proxmox) with ESMTPS id D33111816A
 for <pve-devel@lists.proxmox.com>; Wed, 30 Sep 2020 12:54:44 +0200 (CEST)
Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1])
 by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 74F0145996
 for <pve-devel@lists.proxmox.com>; Wed, 30 Sep 2020 12:54:44 +0200 (CEST)
Date: Wed, 30 Sep 2020 12:54:34 +0200 (CEST)
From: Tim Marx <t.marx@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
 Aaron Lauterer <a.lauterer@proxmox.com>
Message-ID: <444711761.793.1601463274808@webmail.proxmox.com>
In-Reply-To: <20200928122825.21547-2-a.lauterer@proxmox.com>
References: <20200928122825.21547-1-a.lauterer@proxmox.com>
 <20200928122825.21547-2-a.lauterer@proxmox.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Priority: 3
Importance: Normal
X-Mailer: Open-Xchange Mailer v7.10.3-Rev22
X-Originating-Client: open-xchange-appsuite
X-SPAM-LEVEL: Spam detection results:  0
 AWL 1.619 Adjusted score from AWL reputation of From: address
 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment
 RCVD_IN_DNSWL_MED        -2.3 Sender listed at https://www.dnswl.org/,
 medium trust
 SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
 SPF_PASS               -0.001 SPF: sender matches SPF record
 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See
 http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more
 information. [proxmox.com]
Subject: Re: [pve-devel] [PATCH pve_flutter_frontend 1/3] add class for
 Proxmox corporate identity colors
X-BeenThere: pve-devel@lists.proxmox.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/>
List-Post: <mailto:pve-devel@lists.proxmox.com>
List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help>
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe>
X-List-Received-Date: Wed, 30 Sep 2020 10:55:16 -0000


> 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