Skip to content

Commit a22711a

Browse files
author
Alexandre Van de Sande
committed
badge support
1 parent c4b8c11 commit a22711a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

cmd/mist/assets/qml/main.qml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,9 @@ ApplicationWindow {
580580
font.family: sourceSansPro.name
581581
font.weight: Font.DemiBold
582582
elide: Text.ElideRight
583+
x:250
584+
color: "#665F5F"
585+
font.pixelSize: 14
583586
anchors {
584587
left: icon.right
585588
right: parent.right
@@ -588,12 +591,12 @@ ApplicationWindow {
588591
rightMargin: 8
589592
verticalCenterOffset: (secondaryTitle == "") ? 0 : -10;
590593
}
591-
x:250
592-
color: "#665F5F"
593-
font.pixelSize: 14
594-
}
595594

596595

596+
597+
598+
}
599+
597600
Text {
598601
id: secondary
599602
font.family: sourceSansPro.name

cmd/mist/assets/qml/views/browser.qml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,9 @@ Rectangle {
387387
menuItem.badgeIcon = "\ue09a"
388388
menuItem.badgeContent = "icon"
389389

390+
} else {
391+
menuItem.badgeContent = ""
390392
}
391-
392-
393-
console.log(menuItem.badgeContent);
394393
} else {
395394
menuItem.badgeContent = ""
396395
}
@@ -407,9 +406,7 @@ Rectangle {
407406
webView.runJavaScript("try{document.querySelector(\"link[rel='icon']\").getAttribute(\"href\")}catch(e){}", function(sideIcon){
408407
if(sideIcon){
409408
menuItem.icon = webview.url + sideIcon;
410-
console.log("icon: " + webview.url + sideIcon );
411409
};
412-
console.log("no icon!" );
413410
});
414411

415412
webView.runJavaScript("try{document.querySelector(\"meta[name='ethereum-dapp-url-bar-style']\").getAttribute(\"content\")}catch(e){}", function(topBarStyle){

0 commit comments

Comments
 (0)