From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id CCD196171F for ; Fri, 20 Nov 2020 14:28:25 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id C438811E1B for ; Fri, 20 Nov 2020 14:27:55 +0100 (CET) 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)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 76D3E11E0E for ; Fri, 20 Nov 2020 14:27:54 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 3886E43B27 for ; Fri, 20 Nov 2020 14:27:54 +0100 (CET) From: Aaron Lauterer To: pve-devel@lists.proxmox.com Date: Fri, 20 Nov 2020 14:27:51 +0100 Message-Id: <20201120132753.20966-2-a.lauterer@proxmox.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201120132753.20966-1-a.lauterer@proxmox.com> References: <20201120132753.20966-1-a.lauterer@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.005 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 Subject: [pve-devel] [PATCH pve_flutter_frontend v2 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2020 13:28:25 -0000 Signed-off-by: Aaron Lauterer --- 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); +} 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: [ -- 2.20.1