-
-
Notifications
You must be signed in to change notification settings - Fork 278
enhancement: Further popup styling improvements. #853
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
Conversation
ec27707
to
5978054
Compare
5978054
to
7558244
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ezio-Sarthak This is a nice self-contained improvement compared to the other PR 👍
There is currently an issue with the popup height, but more importantly I'd really also like to avoid the gaps at the top - perhaps we could just put a linebox around the scrolling content to avoid the difference at the edge of that area and the title. We could also use the top of that linebox to make a slight half-box line above the content to give a small gap at the top between the title and the first line of content.
I also noticed that this looks strange in color-depth=1 at the top.
7558244
to
c471bb0
Compare
546c20a
to
b56c4be
Compare
b56c4be
to
4d8b886
Compare
4d8b886
to
322ff07
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ezio-Sarthak This looks cleaner now 👍
Layout-wise I think the remaining issue is that the title looks off-center vertically, along with the merging of the title into the background in 1-color mode. Perhaps a half-bar of border color above it?
2e5bbb1
to
20ea181
Compare
Thanks for the suggestions! I've updated the PR. I've corrected the small mistakes I did 😅 |
20ea181
to
4ad544b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ezio-Sarthak Thanks for addressing my points 👍
While you've made the header higher, the title block looks taller too, ie. a half-line of eg. green below the line of white. Could we move the 'white' half-line down to centre the title text vertically between two white bars? I'm not sure what style to use, maybe a different character with the border style? That may need investigating with respect to 1-color rendering again.
Does this look similar on all themes? I checked 'light' and the title doesn't look quite the same compared to 'default' (zt_light vs zt_dark)
bc7dccb
to
7ba8f0e
Compare
7ba8f0e
to
997cd2c
Compare
This is a follow-up commit from PR zulip#849. Visible improvements: * Title standouts more in a popup. * Popup border blends with the background.
This commit adds: * color-per-category for each popup box * A sementic option in show_pop_up function call The categories as of now are help, error, message and stream. Fixes zulip#684.
997cd2c
to
ae6ab91
Compare
@Ezio-Sarthak Merged with adjusted commit text as e08fbeb and prior commit 🎉 I also slightly adjusted the 1-bit style in the first commit to match that used later (title -> area), and moved the top border style & character from the second to the first commit. If you haven't already I'd recommend giving |
|
This is a follow-up PR from #849. It aims the following:
Popup border and title styling.
Popup color styling.
Fixes #684 (for now) :)
The palettes added with this PR might help in styling of footer notifications in #782