@@ -192,6 +192,7 @@ StatusSectionLayout {
192192 }
193193 }
194194
195+ backgroundColor: Theme .palette .statusAppNavBar .backgroundColor
195196 centerPanel: Rectangle {
196197 id: browserWindow
197198 anchors .fill : parent
@@ -240,11 +241,9 @@ StatusSectionLayout {
240241 onDisconnectDapp : function (dappUrl ) {
241242 connectorBridge .disconnect (dappUrl)
242243 }
243- onAddNewFavoriteClicked : function (xPos ) {
244+ onAddNewFavoriteClicked : function () {
244245 Global .openPopup (addFavoriteModal,
245246 {
246- x: xPos - 30 ,
247- y: browserHeader .y + browserHeader .height + 4 ,
248247 modifiyModal: !! browserHeader .currentFavorite ,
249248 toolbarMode: true ,
250249 ogUrl: !! browserHeader .currentFavorite ? browserHeader .currentFavorite .url : _internal .currentWebView .url ,
@@ -271,7 +270,6 @@ StatusSectionLayout {
271270 id: tabs
272271 anchors .top : parent .top
273272 anchors .bottom : devToolsView .top
274- anchors .bottomMargin : browserHeader .height
275273 anchors .left : parent .left
276274 anchors .right : parent .right
277275 z: 50
@@ -374,9 +372,12 @@ StatusSectionLayout {
374372
375373 BrowserSettingsMenu {
376374 id: settingsMenu
377- x: parent .width - width
378- y: browserHeader .y + browserHeader .height
379- isIncognito: _internal .currentWebView && _internal .currentWebView .profile === connectorBridge .otrProfile
375+
376+ parent: browserHeader
377+ x: parent .width - width - Theme .halfPadding
378+ y: browserHeader .height + 4
379+
380+ incognitoMode: _internal .currentWebView && _internal .currentWebView .profile === connectorBridge .otrProfile
380381 zoomFactor: _internal .currentWebView ? _internal .currentWebView .zoomFactor : 1
381382 onAddNewTab: _internal .addNewTab ()
382383 onAddNewDownloadTab: _internal .addNewDownloadTab ()
@@ -418,11 +419,13 @@ StatusSectionLayout {
418419 Component {
419420 id: browserWalletMenu
420421 BrowserWalletMenu {
422+ parent: browserHeader
423+ x: browserHeader .width - width - Theme .halfPadding
424+ y: browserHeader .height + 4
425+
426+ incognitoMode: _internal .currentWebView && _internal .currentWebView .profile === connectorBridge .otrProfile
421427 browserWalletStore: root .browserWalletStore
422- property point headerPoint: Qt .point (browserHeader .x , browserHeader .y )
423- x: (parent .width - width - Theme .halfPadding )
424- y: (Math .abs (browserHeader .mapFromGlobal (headerPoint).y ) +
425- browserHeader .anchors .topMargin + Theme .halfPadding )
428+
426429 onSendTriggered : (address ) => root .sendToRecipientRequested (address)
427430 onAccountChanged : (newAddress ) => connectorBridge .connectorManager .changeAccount (newAddress)
428431 onReload: {
@@ -437,6 +440,10 @@ StatusSectionLayout {
437440 Component {
438441 id: addFavoriteModal
439442 AddFavoriteModal {
443+ parent: browserHeader
444+ x: browserHeader .width - width - Theme .halfPadding
445+ y: browserHeader .height + 4
446+ incognitoMode: _internal .currentWebView && _internal .currentWebView .profile === connectorBridge .otrProfile
440447 bookmarksStore: root .bookmarksStore
441448 }
442449 }
@@ -508,8 +515,6 @@ StatusSectionLayout {
508515 Component {
509516 id: webEngineView
510517 BrowserWebEngineView {
511- anchors .top : parent ? parent .top : undefined
512- anchors .topMargin : browserHeader .height
513518 bookmarksStore: root .bookmarksStore
514519 downloadsStore: root .downloadsStore
515520 currentWebView: _internal .currentWebView
0 commit comments