@@ -40,10 +40,14 @@ ApplicationWindow {
40
40
// Takes care of loading all default plugins
41
41
Component .onCompleted : {
42
42
43
- catalog = addPlugin (" ./views/catalog.qml" , {noAdd: true , close: false , section: " begin" });
44
- var wallet = addPlugin (" ./views/wallet.qml" , {noAdd: true , close: false , section: " ethereum" , active : true });
43
+ catalog = addPlugin (" ./views/catalog.qml" , {noAdd: true , close: false , section: " begin" , active : true });
44
+ var wallet = addPlugin (" ./views/wallet.qml" , {noAdd: true , close: false , section: " ethereum" });
45
45
46
- addPlugin (" ./views/miner.qml" , {noAdd: true , close: false , section: " ethereum" , active: true });
46
+ var walletWeb = addPlugin (" ./views/browser.qml" , {noAdd: true , close: false , section: " ethereum" , active: false });
47
+ walletWeb .view .url = " http://ethereum-dapp-wallet.meteor.com/" ;
48
+ walletWeb .menuItem .title = " Wallet" ;
49
+
50
+ addPlugin (" ./views/miner.qml" , {noAdd: true , close: false , section: " ethereum" , active: false });
47
51
addPlugin (" ./views/transaction.qml" , {noAdd: true , close: false , section: " legacy" });
48
52
addPlugin (" ./views/whisper.qml" , {noAdd: true , close: false , section: " legacy" });
49
53
addPlugin (" ./views/chain.qml" , {noAdd: true , close: false , section: " legacy" });
@@ -443,10 +447,14 @@ ApplicationWindow {
443
447
property var view;
444
448
property var path;
445
449
property var closable;
450
+ property var badgeContent;
446
451
447
452
property alias title: label .text
448
453
property alias icon: icon .source
449
454
property alias secondaryTitle: secondary .text
455
+ property alias badgeNumber: badgeNumberLabel .text
456
+ property alias badgeIcon: badgeIconLabel .text
457
+
450
458
function setSelection (on ) {
451
459
sel .visible = on
452
460
@@ -539,9 +547,6 @@ ApplicationWindow {
539
547
if (parent .closable == true ) {
540
548
closeIcon .visible = sel .visible
541
549
}
542
- /* if(view.hasOwnProperty("iconSource")) {
543
- icon.source = view.iconSource;
544
- }*/
545
550
}
546
551
onExited: {
547
552
closeIcon .visible = false
@@ -550,8 +555,8 @@ ApplicationWindow {
550
555
551
556
Image {
552
557
id: icon
553
- height: 24
554
- width: 24
558
+ height: 28
559
+ width: 28
555
560
anchors {
556
561
left: parent .left
557
562
verticalCenter: parent .verticalCenter
@@ -581,7 +586,7 @@ ApplicationWindow {
581
586
verticalCenter: parent .verticalCenter
582
587
leftMargin: 6
583
588
rightMargin: 8
584
- // verticalCenterOffset: -10
589
+ verticalCenterOffset: (secondaryTitle == " " ) ? 0 : - 10 ;
585
590
}
586
591
x: 250
587
592
color: " #665F5F"
@@ -607,7 +612,7 @@ ApplicationWindow {
607
612
visible: false
608
613
width: 10
609
614
height: 10
610
- color: " #FFFFFF "
615
+ color: " #FAFAFA "
611
616
anchors {
612
617
fill: icon
613
618
}
@@ -626,9 +631,49 @@ ApplicationWindow {
626
631
centerIn: parent
627
632
}
628
633
color: " #665F5F"
629
- font .pixelSize : 18
634
+ font .pixelSize : 20
630
635
text: " \ue082 "
631
636
}
637
+ }
638
+
639
+ Rectangle {
640
+ id: badge
641
+ visible: (badgeContent == " icon" || badgeContent == " number" )? true : false
642
+ width: 32
643
+ color: " #05000000"
644
+ anchors {
645
+ right: parent .right ;
646
+ top: parent .top ;
647
+ bottom: parent .bottom ;
648
+ rightMargin: 4 ;
649
+ }
650
+
651
+ Text {
652
+ id: badgeIconLabel
653
+ visible: (badgeContent == " icon" ) ? true : false ;
654
+ font .family : simpleLineIcons .name
655
+ anchors {
656
+ centerIn: parent
657
+ }
658
+ horizontalAlignment: Text .AlignCenter
659
+ color: " #AAA0A0"
660
+ font .pixelSize : 20
661
+ text: badgeIcon
662
+ }
663
+
664
+ Text {
665
+ id: badgeNumberLabel
666
+ visible: (badgeContent == " number" ) ? true : false ;
667
+ anchors {
668
+ centerIn: parent
669
+ }
670
+ horizontalAlignment: Text .AlignCenter
671
+ font .family : sourceSansPro .name
672
+ font .weight : Font .Light
673
+ color: " #AAA0A0"
674
+ font .pixelSize : 18
675
+ text: badgeNumber
676
+ }
632
677
}
633
678
634
679
0 commit comments