From 416d7bbb16dc11d93e92304abf51fd5f133878c4 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 13 Sep 2018 13:10:31 +0200 Subject: [PATCH] Parity Substrate theming (#296) * Parity Substrate logo (THEME) * Remove unused type * Adjust page title based on theme * Allow theme overrides * Allow theme overrides on Modals * Remove debug console log * Page title hangs off renamed UI_THEME * FIXME for Identicon * UI_MODE removal of apps * Update deps (after merge) * Bump deps --- packages/app-democracy/package.json | 4 +- packages/app-example/package.json | 4 +- packages/app-explorer/package.json | 4 +- packages/app-extrinsics/package.json | 2 +- packages/app-staking/package.json | 4 +- packages/apps/public/index.html | 2 +- packages/apps/src/SideBar/SideBar.css | 39 +++-- packages/apps/src/SideBar/index.tsx | 10 +- packages/apps/src/index.tsx | 3 +- packages/apps/src/routing/index.ts | 21 ++- .../src/static/parity-substrate-white.svg | 1 + packages/apps/src/static/parity-substrate.svg | 1 + packages/apps/webpack.config.js | 7 +- packages/ui-app/package.json | 4 +- packages/ui-app/src/Modal.tsx | 28 ++- packages/ui-app/src/styles.ts | 2 + .../ui-app/src/styles/partials/_variables.css | 25 --- packages/ui-app/src/styles/semantic.css | 76 --------- .../src/styles/theme/_colors-polkadot.css | 29 ++++ .../src/styles/theme/_colors-substrate.css | 3 + packages/ui-app/src/styles/theme/polkadot.css | 84 +++++++++ .../ui-app/src/styles/theme/substrate.css | 8 + packages/ui-identicon/package.json | 2 +- packages/ui-keyring/package.json | 2 +- packages/ui-react-rx/package.json | 6 +- packages/ui-react/package.json | 2 +- packages/ui-react/src/IdentityIcon/index.tsx | 5 +- packages/ui-signer/package.json | 2 +- yarn.lock | 160 +++++++++--------- 29 files changed, 316 insertions(+), 224 deletions(-) create mode 100644 packages/apps/src/static/parity-substrate-white.svg create mode 100644 packages/apps/src/static/parity-substrate.svg create mode 100644 packages/ui-app/src/styles/theme/_colors-polkadot.css create mode 100644 packages/ui-app/src/styles/theme/_colors-substrate.css create mode 100644 packages/ui-app/src/styles/theme/polkadot.css create mode 100644 packages/ui-app/src/styles/theme/substrate.css diff --git a/packages/app-democracy/package.json b/packages/app-democracy/package.json index e2a809b77e..cc43b16cb8 100644 --- a/packages/app-democracy/package.json +++ b/packages/app-democracy/package.json @@ -11,9 +11,9 @@ "license": "ISC", "dependencies": { "@babel/runtime": "^7.0.0", - "@polkadot/storage": "^0.28.29", + "@polkadot/storage": "^0.28.34", "@polkadot/ui-react": "^0.20.2", "@polkadot/ui-react-rx": "^0.20.2", - "@polkadot/util-keyring": "^0.29.33" + "@polkadot/util-keyring": "^0.30.2" } } diff --git a/packages/app-example/package.json b/packages/app-example/package.json index 7daff474c4..68b008c731 100644 --- a/packages/app-example/package.json +++ b/packages/app-example/package.json @@ -11,9 +11,9 @@ "license": "ISC", "dependencies": { "@babel/runtime": "^7.0.0", - "@polkadot/storage": "^0.28.29", + "@polkadot/storage": "^0.28.34", "@polkadot/ui-react": "^0.20.2", "@polkadot/ui-react-rx": "^0.20.2", - "@polkadot/util-keyring": "^0.29.33" + "@polkadot/util-keyring": "^0.30.2" } } diff --git a/packages/app-explorer/package.json b/packages/app-explorer/package.json index 55476c30ba..c9cdfbc0d9 100644 --- a/packages/app-explorer/package.json +++ b/packages/app-explorer/package.json @@ -11,8 +11,8 @@ "license": "ISC", "dependencies": { "@babel/runtime": "^7.0.0", - "@polkadot/primitives": "^0.28.29", + "@polkadot/primitives": "^0.28.34", "@polkadot/ui-app": "^0.20.2", - "@polkadot/util-crypto": "^0.29.33" + "@polkadot/util-crypto": "^0.30.2" } } diff --git a/packages/app-extrinsics/package.json b/packages/app-extrinsics/package.json index 59c9a78d90..9e529118a9 100644 --- a/packages/app-extrinsics/package.json +++ b/packages/app-extrinsics/package.json @@ -11,7 +11,7 @@ "license": "ISC", "dependencies": { "@babel/runtime": "^7.0.0", - "@polkadot/extrinsics": "^0.28.29", + "@polkadot/extrinsics": "^0.28.34", "@polkadot/ui-app": "^0.20.2", "@polkadot/ui-signer": "^0.20.2" } diff --git a/packages/app-staking/package.json b/packages/app-staking/package.json index 4d2f2c2aef..98844b3328 100644 --- a/packages/app-staking/package.json +++ b/packages/app-staking/package.json @@ -12,11 +12,11 @@ "dependencies": { "@babel/runtime": "^7.0.0", "@polkadot/app-extrinsics": "^0.20.2", - "@polkadot/storage": "^0.28.29", + "@polkadot/storage": "^0.28.34", "@polkadot/ui-app": "^0.20.2", "@polkadot/ui-keyring": "^0.20.2", "@polkadot/ui-react": "^0.20.2", "@polkadot/ui-react-rx": "^0.20.2", - "@polkadot/util-keyring": "^0.29.33" + "@polkadot/util-keyring": "^0.30.2" } } diff --git a/packages/apps/public/index.html b/packages/apps/public/index.html index bcb1e111c9..4110f68845 100644 --- a/packages/apps/public/index.html +++ b/packages/apps/public/index.html @@ -6,7 +6,7 @@ - Polkadot Apps Portal + <%= htmlWebpackPlugin.options.PAGE_TITLE %>