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

re_ui crate to encapsulate our own egui theme #476

Merged
merged 12 commits into from Dec 6, 2022
Merged

re_ui crate to encapsulate our own egui theme #476

merged 12 commits into from Dec 6, 2022

Conversation

emilk
Copy link
Member

@emilk emilk commented Dec 6, 2022

Part of #400

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I've added a line to CHANGELOG.md (if this is a big enough change to warrant it)

@emilk emilk added the ui concerns graphical user interface label Dec 6, 2022
@emilk emilk marked this pull request as ready for review December 6, 2022 13:16
@@ -18,6 +18,17 @@ version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "330223a1aecc308757b9926e9391c9b47f8ef2dbd8aea9df88312aea18c5e8d6"

[[package]]
name = "accesskit"
Copy link
Member Author

Choose a reason for hiding this comment

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

It's a bit weird that Cargo pulls this in even though we don't enable the accesskit features of egui and eframe 🤔

Cargo.lock Show resolved Hide resolved
@Wumpf Wumpf self-requested a review December 6, 2022 18:50
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

oh my! this is super nice, great refactor even without the fact that this allows faster design iteration!
Fairly trusting on the moved code, didn't go through everything again. Callsite patching up seemed straight forward to me.

fn main() {
let native_options = eframe::NativeOptions {
initial_window_size: Some([1200.0, 800.0].into()),
follow_system_theme: false,
Copy link
Member

Choose a reason for hiding this comment

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

so we're looked to dark theme in this sample? Why do we distinguish in a few places then?

Copy link
Member Author

Choose a reason for hiding this comment

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

We are using dark theme everywhere for now. We had light theme support at the start, and I didn't see any reason to remove that support, since we will perhaps want to add it again in the future.

@emilk emilk merged commit 91b1b41 into main Dec 6, 2022
@emilk emilk deleted the re_ui branch December 6, 2022 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui concerns graphical user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants