From: Aaron Lauterer <a.lauterer@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve_flutter_frontend v3 1/3] add class for Proxmox corporate identity colors
Date: Fri, 11 Dec 2020 11:37:06 +0100 [thread overview]
Message-ID: <20201211103708.32431-2-a.lauterer@proxmox.com> (raw)
In-Reply-To: <20201211103708.32431-1-a.lauterer@proxmox.com>
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
---
lib/main.dart | 3 ++-
lib/utils/promox_colors.dart | 10 ++++++++++
| 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);
+}
--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
next prev parent reply other threads:[~2020-12-11 10:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-11 10:37 [pve-devel] [PATCH pve_flutter_frontend v3 0/3] Add first welcome screen Aaron Lauterer
2020-12-11 10:37 ` Aaron Lauterer [this message]
2020-12-11 10:37 ` [pve-devel] [PATCH pve_flutter_frontend v3 2/3] add Proxmox symbol logo white orange Aaron Lauterer
2020-12-11 10:37 ` [pve-devel] [PATCH pve_flutter_frontend v3 3/3] Add first welcome screen Aaron Lauterer
2021-03-14 17:49 ` [pve-devel] applied-series: [PATCH pve_flutter_frontend v3 0/3] " Thomas Lamprecht
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=20201211103708.32431-2-a.lauterer@proxmox.com \
--to=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox