diff --git a/src/main.rs b/src/main.rs index 8289ebd..40f43fb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -67,7 +67,7 @@ fn create_genesis_if_needed(context: &Arc>, miner: &Arc>, miner: Arc>) { let file_content = include_str!("webview/index.html"); let mut styles= inline_style(include_str!("webview/bulma.css")); - styles.push_str(&inline_style(include_str!("webview/loader.css"))); + styles.push_str(&inline_style(include_str!("webview/miner.css"))); let scripts = inline_script(include_str!("webview/scripts.js")); let html = Content::Html(file_content.to_owned().replace("{styles}", &styles).replace("{scripts}", &scripts)); diff --git a/src/miner.rs b/src/miner.rs index 0091ad5..264a718 100644 --- a/src/miner.rs +++ b/src/miner.rs @@ -73,7 +73,7 @@ impl Miner { if e == Event::ActionStopMining { mining.store(false, Ordering::Relaxed); } - false + true }); } diff --git a/src/webview/loader.css b/src/webview/miner.css similarity index 87% rename from src/webview/loader.css rename to src/webview/miner.css index 4117d94..7bb0e27 100644 --- a/src/webview/loader.css +++ b/src/webview/miner.css @@ -1,13 +1,14 @@ .mining_indicator { position:absolute; - right:10px; + left:0px; + bottom:0px; width:30px; height:30px; display:inline-block; padding:0px; - text-align:right; - float:right; - z-index: 10; + text-align:left; + float:left; + z-index:10; } .mining_indicator span { position:absolute; @@ -15,7 +16,7 @@ width:30px; height:30px; border-radius:100%; - background:#3273dc; + background:#ee3333; -webkit-animation:mining_indicator 1.6s linear infinite; animation:mining_indicator 1.6s linear infinite; }