Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: UI enhancement - Custom Titlebar #50

Merged
merged 4 commits into from
Aug 31, 2023

Conversation

aL0NEW0LF
Copy link
Contributor

To be honest the default titlebar just annoyed me, so i made a custom component to emulate it that can blend it with the UI and its colors.

To be honest the default titlebar just annoyed me, so i made a custom component to emulate it that can blend it with the UI and its colors
In the TitleBar component, this line was returning false when fullscreen is true:
return (
  !fullscreen && (
    // ...
  )
);

Since false is not a valid JSX element, we were getting an error.
To fix this, i made sure TitleBar always returns JSX.
Copy link
Contributor

@Stormix Stormix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all, thank you for your contributions to the Athan app!

But, I think you can achieve the same behavior using the packages we already have, namely: tailwind and radix-icons. So I invite you to try and refactor your code to use these packages and please leave the permissions list as detailed as it currently is (so it doesn't cause us issues when submitting to the microsoft store).

Kind Regards,
Anas

@Stormix Stormix added the enhancement New feature or request label Aug 30, 2023
…rmissions

Removed the heavy packages, re-done styling with tailwindcss, refactored permissions, refactored the TitleBar component to be optimal and efficient, fixed the SideBar that was breaking at a certain height (exactly 850px) when the view height is less than that, the Sidebar doesn't take 100% of the window height anymore, so i fixed the min-height at 850px.
@aL0NEW0LF
Copy link
Contributor Author

Here is a preview of what the UI has become.
athan-screen-1
athan-screen-2
athan-screen-3
athan-screen-4

@Stormix Stormix merged commit f447f14 into embassy-collective:main Aug 31, 2023
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants