Skip to content

Commit

Permalink
brighten connectors in light mode, remove changelog from wasm32 build…
Browse files Browse the repository at this point in the history
…s, update README, add updated icons.
  • Loading branch information
aspect committed Jan 22, 2024
1 parent 5f59323 commit fdcc3df
Show file tree
Hide file tree
Showing 10 changed files with 178 additions and 38 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[<img alt="github" src="https://img.shields.io/badge/github-aspectron/kaspa--ng-8da0cb?style=for-the-badge&labelColor=555555&color=8da0cb&logo=github" height="20">](https://github.com/aspectron/kaspa-ng)
<img src="https://img.shields.io/badge/platform-native-informational?style=for-the-badge&color=50a0f0" height="20">
<img src="https://img.shields.io/badge/platform-wasm32-informational?style=for-the-badge&color=50a0f0" height="20">
<img src="https://img.shields.io/github/actions/workflow/status/aspectron/kaspa-ng/ci.yaml?style=for-the-badge" height="20">

<p align="center" style="margin:32px auto 0px auto;text-align:center;font-size:10px;color:#888;">
<img src="https://aspectron.com/images/projects/kaspa-ng-screen-01.png" style="display:block;max-height:320px;max-width:524px;width:524px;height:auto;object-fit:cover;margin: 0px auto 0px auto;"><br/><sup>RUSTY KASPA P2P NODE &bull; KASPA WALLET &bull; BLOCKDAG VISUALIZER</sup></p>
Expand Down Expand Up @@ -78,4 +79,3 @@ additional terms or conditions.
If you are a Kaspa investor, please consider supporting this project. The funds will be used to cover operational costs and further the project's functionality.

`kaspa:qq2efzv0j7vt9gz9gfq44e6ggemjvvcuewhzqpm4ekf4fs5smruvs3c8ur9rp`

6 changes: 3 additions & 3 deletions Servers.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ name = "kaspa-ng.org"
location = "US"
protocol = "borsh"
network = "mainnet"
address = "wss://us-west-1.kaspa-ng.org/mainnet"
address = "wss://us-1.kaspa-ng.org/mainnet"

[[server]]
name = "kaspa-ng.org"
location = "US"
protocol = "borsh"
network = "testnet-10"
address = "wss://us-west-1.kaspa-ng.org/testnet-10"
address = "wss://us-1.kaspa-ng.org/testnet-10"

[[server]]
name = "kaspa-ng.org"
location = "US"
protocol = "borsh"
network = "testnet-11"
address = "wss://us-west-1.kaspa-ng.org/testnet-11"
address = "wss://us-1.kaspa-ng.org/testnet-11"

[[server]]
name = "kaspa-ng.io"
Expand Down
2 changes: 1 addition & 1 deletion core/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use workflow_i18n::*;
use workflow_log::*;

// pub const KASPA_NG_ICON_SVG: &[u8] = include_bytes!("../../resources/images/kaspa.svg");
pub const KASPA_NG_ICON_SVG: &[u8] = include_bytes!("../../resources/images/kaspa-node.svg");
pub const KASPA_NG_ICON_SVG: &[u8] = include_bytes!("../../resources/images/kaspa-node-dark.svg");
pub const KASPA_NG_LOGO_SVG: &[u8] = include_bytes!("../../resources/images/kaspa-ng.svg");
pub const I18N_EMBEDDED: &str = include_str!("../../resources/i18n/i18n.json");
pub const BUILD_TIMESTAMP: &str = env!("VERGEN_BUILD_TIMESTAMP");
Expand Down
2 changes: 1 addition & 1 deletion core/src/egui/theme/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl ThemeColor {
block_dag_block_fill_color: Color32::from_rgb(201, 230, 240),
block_dag_block_stroke_color: Color32::from_rgb(42, 51, 50),
block_dag_vspc_connect_color: Color32::from_rgb(11, 77, 70),
block_dag_parent_connect_color: Color32::from_rgba_premultiplied(0, 0, 0, 220),
block_dag_parent_connect_color: Color32::from_rgba_premultiplied(0, 0, 0, 64),
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions core/src/modules/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ kaspa_ng_macros::register_modules!(
account_create,
account_manager,
block_dag,
changelog,
donations,
export,
import,
Expand All @@ -27,7 +26,7 @@ kaspa_ng_macros::register_modules!(
);

#[cfg(not(target_arch = "wasm32"))]
kaspa_ng_macros::register_modules!(register_native_modules, [logs, node,]);
kaspa_ng_macros::register_modules!(register_native_modules, [changelog, logs, node,]);

pub enum ModuleStyle {
Mobile,
Expand Down
8 changes: 7 additions & 1 deletion core/src/modules/welcome.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,13 @@ impl Welcome {
self.runtime.kaspa_service().update_services(&self.settings.node, None);
core.settings = settings.clone();
core.get_mut::<modules::Settings>().load(settings);
core.select::<modules::Changelog>();
cfg_if!{
if #[cfg(not(target_arch = "wasm32"))] {
core.select::<modules::Changelog>();
} else {
core.select::<modules::Overview>();
}
}
}
});
}
Expand Down
54 changes: 54 additions & 0 deletions resources/images/kaspa-node-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions resources/images/kaspa-node-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions resources/images/kaspa-node-transparent.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 0 additions & 29 deletions resources/images/kaspa-node.svg

This file was deleted.

0 comments on commit fdcc3df

Please sign in to comment.