@@ -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 ,
@@ -374,9 +373,12 @@ StatusSectionLayout {
374373
375374 BrowserSettingsMenu {
376375 id: settingsMenu
377- x: parent .width - width
378- y: browserHeader .y + browserHeader .height
379- isIncognito: _internal .currentWebView && _internal .currentWebView .profile === connectorBridge .otrProfile
376+
377+ parent: browserHeader
378+ x: parent .width - width - Theme .halfPadding
379+ y: browserHeader .height + 4
380+
381+ incognitoMode: _internal .currentWebView && _internal .currentWebView .profile === connectorBridge .otrProfile
380382 zoomFactor: _internal .currentWebView ? _internal .currentWebView .zoomFactor : 1
381383 onAddNewTab: _internal .addNewTab ()
382384 onAddNewDownloadTab: _internal .addNewDownloadTab ()
@@ -418,11 +420,13 @@ StatusSectionLayout {
418420 Component {
419421 id: browserWalletMenu
420422 BrowserWalletMenu {
423+ parent: browserHeader
424+ x: browserHeader .width - width - Theme .halfPadding
425+ y: browserHeader .height + 4
426+
427+ incognitoMode: _internal .currentWebView && _internal .currentWebView .profile === connectorBridge .otrProfile
421428 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 )
429+
426430 onSendTriggered : (address ) => root .sendToRecipientRequested (address)
427431 onAccountChanged : (newAddress ) => connectorBridge .connectorManager .changeAccount (newAddress)
428432 onReload: {
@@ -437,6 +441,10 @@ StatusSectionLayout {
437441 Component {
438442 id: addFavoriteModal
439443 AddFavoriteModal {
444+ parent: browserHeader
445+ x: browserHeader .width - width - Theme .halfPadding
446+ y: browserHeader .height + 4
447+ incognitoMode: _internal .currentWebView && _internal .currentWebView .profile === connectorBridge .otrProfile
440448 bookmarksStore: root .bookmarksStore
441449 }
442450 }
0 commit comments