Moved mining indicator to left-bottom corner, fixed mining canceling.
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ fn create_genesis_if_needed(context: &Arc<Mutex<Context>>, miner: &Arc<Mutex<Min
|
||||
fn run_interface(context: Arc<Mutex<Context>>, miner: Arc<Mutex<Miner>>) {
|
||||
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));
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ impl Miner {
|
||||
if e == Event::ActionStopMining {
|
||||
mining.store(false, Ordering::Relaxed);
|
||||
}
|
||||
false
|
||||
true
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user