Merge branch 'main' into n/t2
This commit is contained in:
commit
d0975aacac
56 changed files with 17406 additions and 4298 deletions
|
@ -4,21 +4,12 @@ pub use gpui2::{
|
|||
};
|
||||
|
||||
pub use crate::elevation::*;
|
||||
use crate::settings::user_settings;
|
||||
pub use crate::ButtonVariant;
|
||||
pub use theme2::ActiveTheme;
|
||||
|
||||
use gpui2::{rems, Hsla, Rems};
|
||||
use gpui2::Hsla;
|
||||
use strum::EnumIter;
|
||||
|
||||
pub fn ui_size(cx: &mut WindowContext, size: f32) -> Rems {
|
||||
const UI_SCALE_RATIO: f32 = 0.875;
|
||||
|
||||
let settings = user_settings(cx);
|
||||
|
||||
rems(*settings.ui_scale * UI_SCALE_RATIO * size)
|
||||
}
|
||||
|
||||
/// Represents a person with a Zed account's public profile.
|
||||
/// All data in this struct should be considered public.
|
||||
pub struct PublicActor {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue