Skip to content

Commit

Permalink
Move prompt dialogs closer to the window
Browse files Browse the repository at this point in the history
Set the Z translation of prompt windows, including the one with the
list of tabs, to be the same as the tray.
  • Loading branch information
felipeerias committed Jan 7, 2025
1 parent ed176e7 commit 4ce2ede
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected void initializeWidgetPlacement(WidgetPlacement aPlacement) {

@Override
public void updatePlacementTranslationZ() {
getPlacement().translationZ = WidgetPlacement.unitFromMeters(getContext(), R.dimen.settings_world_z) -
getPlacement().translationZ = WidgetPlacement.unitFromMeters(getContext(), R.dimen.tray_world_z) -
WidgetPlacement.getWindowWorldZMeters(getContext());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected void initializeWidgetPlacement(WidgetPlacement aPlacement) {

@Override
public void updatePlacementTranslationZ() {
getPlacement().translationZ = WidgetPlacement.unitFromMeters(getContext(), R.dimen.settings_world_z) -
getPlacement().translationZ = WidgetPlacement.unitFromMeters(getContext(), R.dimen.tray_world_z) -
WidgetPlacement.getWindowWorldZMeters(getContext());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ protected void initializeWidgetPlacement(WidgetPlacement aPlacement) {

@Override
public void updatePlacementTranslationZ() {
getPlacement().translationZ = WidgetPlacement.unitFromMeters(getContext(), R.dimen.settings_world_z) -
getPlacement().translationZ = WidgetPlacement.unitFromMeters(getContext(), R.dimen.tray_world_z) -
WidgetPlacement.getWindowWorldZMeters(getContext());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ protected void initializeWidgetPlacement(WidgetPlacement aPlacement) {

@Override
public void updatePlacementTranslationZ() {
getPlacement().translationZ = WidgetPlacement.unitFromMeters(getContext(), R.dimen.settings_world_z) -
getPlacement().translationZ = WidgetPlacement.unitFromMeters(getContext(), R.dimen.tray_world_z) -
WidgetPlacement.getWindowWorldZMeters(getContext());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ protected void initializeWidgetPlacement(WidgetPlacement aPlacement) {

@Override
public void updatePlacementTranslationZ() {
getPlacement().translationZ = WidgetPlacement.unitFromMeters(getContext(), R.dimen.settings_world_z) -
getPlacement().translationZ = WidgetPlacement.unitFromMeters(getContext(), R.dimen.tray_world_z) -
WidgetPlacement.getWindowWorldZMeters(getContext());
}

Expand Down

0 comments on commit 4ce2ede

Please sign in to comment.