-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Improve settings menu display and remove theme menu #96958
Conversation
Some changes occurred in HTML/CSS/JS. |
This comment has been minimized.
This comment has been minimized.
511b7c7
to
74dd1b0
Compare
Fixed eslint errors. :) |
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.
Looks great! The UI interaction works very nicely. All tab selection works as it should, plus opening/closing, clicking outside the dropdown to dismiss, hitting Escape, etc.
The CSS on settings.html
is broken in your demo: https://rustdoc.crud.net/imperio/settings-menu-display/doc/settings.html.
Also once this lands we should consider revamping the Help interface to use the same styles. Right now it's weird that the two buttons bring up overlays with two different styles.
Indeed, #96939 was merged after. I'll rebase on it so it's all clean. :)
Good idea. :) |
74dd1b0
to
dee2947
Compare
Updated! Also updated the demo. |
@bors r+ rollup |
📌 Commit dee2947 has been approved by |
…y, r=jsha Improve settings menu display and remove theme menu We talked about improving the settings menu and we mentioned that firefox pocket was a nice inspiration so I implemented it. The result looks like this: ![Screenshot from 2022-05-11 23-59-53](https://user-images.githubusercontent.com/3050060/167954743-438c0a06-4628-478c-bf0c-d20313c1fdfc.png) You can test it [here](https://rustdoc.crud.net/imperio/settings-menu-display/doc/foo/index.html). Only question I have is: should I re-assign the shortcut `T` to this setting menu now that the theme menu is gone? For now I simply removed it. Important to be noted: the full settings page (at `settings.html`) is still rendered the same as currently. r? `@jsha`
…askrgr Rollup of 3 pull requests Successful merges: - rust-lang#96958 (Improve settings menu display and remove theme menu) - rust-lang#97032 (Allow the unused_macro_rules lint for now) - rust-lang#97041 (Fix `download-ci-llvm` NixOS patching for `.so`s.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…me-display, r=jsha Improve settings theme display This is a follow-up of rust-lang#96958. In this PR, I changed how the theme radio buttons are displayed and improved their look as well. It now looks like this: ![Screenshot from 2022-05-17 20-46-20](https://user-images.githubusercontent.com/3050060/168887703-a01e3bd5-9644-4012-ac11-2ae7bacd6be6.png) ![Screenshot from 2022-05-17 20-46-12](https://user-images.githubusercontent.com/3050060/168887707-132f8b2d-1163-462f-b7dd-f861121bdee7.png) You can test it [here](https://rustdoc.crud.net/imperio/improve-settings-theme-display/doc/foo/index.html). r? `@jsha`
We talked about improving the settings menu and we mentioned that firefox pocket was a nice inspiration so I implemented it. The result looks like this:
You can test it here.
Only question I have is: should I re-assign the shortcut
T
to this setting menu now that the theme menu is gone? For now I simply removed it.Important to be noted: the full settings page (at
settings.html
) is still rendered the same as currently.r? @jsha