-
-
Notifications
You must be signed in to change notification settings - Fork 576
First set of UI tweaks #3002
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
Merged
Merged
First set of UI tweaks #3002
Changes from 17 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b37653f
Tweak frame corner radius
Iemand005 30446c3
Adjust settings panel corner radius
Iemand005 a64f33a
Square reset buttons
Iemand005 33a7e09
Switch scale fix
Iemand005 d54ad3f
Fixed slider value misalignment
Iemand005 fc600b9
Formatting and cleanup
Iemand005 2407488
Variable rename
Iemand005 05896ba
Formatting
Iemand005 83d18b0
Formatting and small rename
Iemand005 23734b7
Undo automatic clang formatting
Iemand005 d8372d4
Undo more automatic clang formatting
Iemand005 b1ae160
Undo header formatting
Iemand005 81b4781
Theme scrollbar and toggle constants and removed unnecessary scope.
Iemand005 0850b08
Set switch dot diameter to scrollbar dot diameter
Iemand005 30c07d7
Move corner radius inline
Iemand005 a51dcf5
Remove redundant clone and extract settings tab frame margin to theme.rs
Iemand005 b3fcefd
Formatting
Iemand005 fc9299a
Move tab margin constant and remove comment
Iemand005 6387e07
Extract frame padding to a constant in `theme.rs` instead of hard cod…
Iemand005 9cbfa39
Add back text spacing
Iemand005 dcb9d1c
Make settings tabs padding and radius match that of other frames. Set…
Iemand005 06c4b91
Formatting
Iemand005 90be8cb
Setting display name updates
Iemand005 31afe73
UI tweaks
zmerp 136e3fd
Refactor number.rs and fix textbox handling
zmerp b864cce
Fix wrong presets names
zmerp 8c5cb5e
Merge branch 'ui-tweaks' of https://github.com/Iemand005/ALVR into ui…
Iemand005 20588f0
7Remove duplicate import
Iemand005 345ad06
Fix number.rs
Iemand005 6276869
Formatting
Iemand005 64000b1
Address comments
zmerp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 7 additions & 3 deletions
10
alvr/dashboard/src/dashboard/components/settings_controls/reset.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,18 @@ | ||
| use eframe::{ | ||
| egui::{Button, Layout, Response, Ui}, | ||
| egui::{self, Button, Layout, Response, Ui}, | ||
| emath::Align, | ||
| }; | ||
|
|
||
| pub fn reset_button(ui: &mut Ui, enabled: bool, default_str: &str) -> Response { | ||
| ui.with_layout(Layout::right_to_left(Align::Center), |ui| { | ||
| ui.add_space(5.0); | ||
|
|
||
| ui.add_enabled(enabled, Button::new("⟲")) | ||
| .on_hover_text(format!("Reset to {default_str}")) | ||
| let height = ui.spacing().interact_size.y; | ||
| ui.add_enabled( | ||
| enabled, | ||
| Button::new("⟲").min_size(egui::vec2(height, height)), | ||
| ) | ||
| .on_hover_text(format!("Reset to {default_str}")) | ||
| }) | ||
| .inner | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.