badge support

This commit is contained in:
Alexandre Van de Sande 2015-02-17 11:22:52 +01:00
parent c4b8c11529
commit a22711a7b5
2 changed files with 9 additions and 9 deletions

View File

@ -580,6 +580,9 @@ ApplicationWindow {
font.family: sourceSansPro.name font.family: sourceSansPro.name
font.weight: Font.DemiBold font.weight: Font.DemiBold
elide: Text.ElideRight elide: Text.ElideRight
x:250
color: "#665F5F"
font.pixelSize: 14
anchors { anchors {
left: icon.right left: icon.right
right: parent.right right: parent.right
@ -588,12 +591,12 @@ ApplicationWindow {
rightMargin: 8 rightMargin: 8
verticalCenterOffset: (secondaryTitle == "") ? 0 : -10; verticalCenterOffset: (secondaryTitle == "") ? 0 : -10;
} }
x:250
color: "#665F5F"
font.pixelSize: 14
}
}
Text { Text {
id: secondary id: secondary
font.family: sourceSansPro.name font.family: sourceSansPro.name

View File

@ -387,10 +387,9 @@ Rectangle {
menuItem.badgeIcon = "\ue09a" menuItem.badgeIcon = "\ue09a"
menuItem.badgeContent = "icon" menuItem.badgeContent = "icon"
} else {
menuItem.badgeContent = ""
} }
console.log(menuItem.badgeContent);
} else { } else {
menuItem.badgeContent = "" menuItem.badgeContent = ""
} }
@ -407,9 +406,7 @@ Rectangle {
webView.runJavaScript("try{document.querySelector(\"link[rel='icon']\").getAttribute(\"href\")}catch(e){}", function(sideIcon){ webView.runJavaScript("try{document.querySelector(\"link[rel='icon']\").getAttribute(\"href\")}catch(e){}", function(sideIcon){
if(sideIcon){ if(sideIcon){
menuItem.icon = webview.url + 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){ webView.runJavaScript("try{document.querySelector(\"meta[name='ethereum-dapp-url-bar-style']\").getAttribute(\"content\")}catch(e){}", function(topBarStyle){