good morning!!!!

Skip to content
Snippets Groups Projects
Commit a22711a7 authored by Alexandre Van de Sande's avatar Alexandre Van de Sande
Browse files

badge support

parent c4b8c115
No related branches found
No related tags found
No related merge requests found
......@@ -580,6 +580,9 @@ ApplicationWindow {
font.family: sourceSansPro.name
font.weight: Font.DemiBold
elide: Text.ElideRight
x:250
color: "#665F5F"
font.pixelSize: 14
anchors {
left: icon.right
right: parent.right
......@@ -588,12 +591,12 @@ ApplicationWindow {
rightMargin: 8
verticalCenterOffset: (secondaryTitle == "") ? 0 : -10;
}
x:250
color: "#665F5F"
font.pixelSize: 14
}
}
Text {
id: secondary
font.family: sourceSansPro.name
......
......@@ -387,10 +387,9 @@ Rectangle {
menuItem.badgeIcon = "\ue09a"
menuItem.badgeContent = "icon"
} else {
menuItem.badgeContent = ""
}
console.log(menuItem.badgeContent);
} else {
menuItem.badgeContent = ""
}
......@@ -407,9 +406,7 @@ Rectangle {
webView.runJavaScript("try{document.querySelector(\"link[rel='icon']\").getAttribute(\"href\")}catch(e){}", function(sideIcon){
if(sideIcon){
menuItem.icon = webview.url + sideIcon;
console.log("icon: " + webview.url + sideIcon );
};
console.log("no icon!" );
});
webView.runJavaScript("try{document.querySelector(\"meta[name='ethereum-dapp-url-bar-style']\").getAttribute(\"content\")}catch(e){}", function(topBarStyle){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment