mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-22 03:17:58 +00:00
feat: update ui-settings to use dark/light theme values
- Change UITHEME_DEFAULT from 'polkadot'/'substrate' to 'light' - Update UITHEMES options to use 'dark'/'light' values - Update ICONS to use 'pezkuwi'/'bizinikiwi' branding - Add isPezkuwi check for domain detection - Bump ui-settings version to 3.16.9
This commit is contained in:
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/react-identicon', path: 'auto', type: 'auto', version: '3.16.6' };
|
||||
export const packageInfo = { name: '@pezkuwi/react-identicon', path: 'auto', type: 'auto', version: '3.16.8' };
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/react-qr', path: 'auto', type: 'auto', version: '3.16.6' };
|
||||
export const packageInfo = { name: '@pezkuwi/react-qr', path: 'auto', type: 'auto', version: '3.16.8' };
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/reactnative-identicon', path: 'auto', type: 'auto', version: '3.16.6' };
|
||||
export const packageInfo = { name: '@pezkuwi/reactnative-identicon', path: 'auto', type: 'auto', version: '3.16.8' };
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/ui-keyring', path: 'auto', type: 'auto', version: '3.16.6' };
|
||||
export const packageInfo = { name: '@pezkuwi/ui-keyring', path: 'auto', type: 'auto', version: '3.16.8' };
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"./packageDetect.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "3.16.8",
|
||||
"version": "3.16.9",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@pezkuwi/networks": "^14.0.5",
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// matches https://polkadot.js.org & https://*.polkadot.io
|
||||
export const isPolkadot = typeof window !== 'undefined' && window.location.host.includes('polkadot');
|
||||
// matches https://pezkuwichain.io & https://*.pezkuwichain.io
|
||||
export const isPezkuwi = typeof window !== 'undefined' && window.location.host.includes('pezkuwi');
|
||||
|
||||
// Backward compatibility alias
|
||||
export const isPolkadot = isPezkuwi;
|
||||
|
||||
@@ -24,28 +24,24 @@ export const UIMODES: Option[] = [
|
||||
}
|
||||
];
|
||||
|
||||
export const UITHEME_DEFAULT = isPolkadot
|
||||
? 'polkadot'
|
||||
: 'substrate';
|
||||
export const UITHEME_DEFAULT = 'light';
|
||||
|
||||
export const UITHEMES: Option[] = [
|
||||
{
|
||||
info: 'polkadot',
|
||||
text: 'Polkadot',
|
||||
value: 'polkadot'
|
||||
info: 'light',
|
||||
text: 'Light theme',
|
||||
value: 'light'
|
||||
},
|
||||
{
|
||||
info: 'substrate',
|
||||
text: 'Substrate',
|
||||
value: 'substrate'
|
||||
info: 'dark',
|
||||
text: 'Dark theme',
|
||||
value: 'dark'
|
||||
}
|
||||
];
|
||||
|
||||
export const ICON_DEFAULT = 'default';
|
||||
|
||||
export const ICON_DEFAULT_HOST = isPolkadot
|
||||
? 'polkadot'
|
||||
: 'substrate';
|
||||
export const ICON_DEFAULT_HOST = 'pezkuwi';
|
||||
|
||||
export const ICONS: Option[] = [
|
||||
{
|
||||
@@ -54,14 +50,14 @@ export const ICONS: Option[] = [
|
||||
value: 'default'
|
||||
},
|
||||
{
|
||||
info: 'polkadot',
|
||||
text: 'Polkadot',
|
||||
value: 'polkadot'
|
||||
info: 'pezkuwi',
|
||||
text: 'Pezkuwi',
|
||||
value: 'pezkuwi'
|
||||
},
|
||||
{
|
||||
info: 'substrate',
|
||||
text: 'Substrate',
|
||||
value: 'substrate'
|
||||
info: 'bizinikiwi',
|
||||
text: 'Bizinikiwi',
|
||||
value: 'bizinikiwi'
|
||||
},
|
||||
{
|
||||
info: 'beachball',
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/ui-settings', path: 'auto', type: 'auto', version: '3.16.6' };
|
||||
export const packageInfo = { name: '@pezkuwi/ui-settings', path: 'auto', type: 'auto', version: '3.16.9' };
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/ui-shared', path: 'auto', type: 'auto', version: '3.16.6' };
|
||||
export const packageInfo = { name: '@pezkuwi/ui-shared', path: 'auto', type: 'auto', version: '3.16.8' };
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
|
||||
// Do not edit, auto-generated by @pezkuwi/dev
|
||||
|
||||
export const packageInfo = { name: '@pezkuwi/vue-identicon', path: 'auto', type: 'auto', version: '3.16.6' };
|
||||
export const packageInfo = { name: '@pezkuwi/vue-identicon', path: 'auto', type: 'auto', version: '3.16.8' };
|
||||
|
||||
Reference in New Issue
Block a user