Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Notch support #403

Open
wants to merge 4 commits into
base: xenial
Choose a base branch
from

Conversation

capsia37
Copy link
Contributor

@capsia37 capsia37 commented Jul 7, 2021

This PR contains code changes to support devices with a notch without the need of tweaks:

  • Added top margin on the shell to prevent the notch from overlapping the indicators
  • Read parameter for top margin height from the device configuration
  • Added a Gsetting to allow reverting changes to the previous behavior

This PR is ready as a fix for the issue, but integrating the notch permanently in UT would need some more discussion and design.

@capsia37 capsia37 changed the title Notch support WIP: Notch support Jul 29, 2021
@capsia37 capsia37 changed the title WIP: Notch support Notch support Aug 3, 2021
@UniversalSuperBox
Copy link
Member

This PR now conflicts on the .gitignore and clickable.json added by #398. Please update this PR to drop d8c48c4.

- Add a top margin to avoid hiding indicators behind a notch
- Add an option in gsettings to revert to the previous behavior
- Get the margin in pixels from the device configuration
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants