Allow ssh connection for setting up zed (#12063)
Co-Authored-By: Mikayla <mikayla@zed.dev> Release Notes: - Magic `ssh` login feature for remote development --------- Co-authored-by: Mikayla <mikayla@zed.dev> Co-authored-by: Nate Butler <iamnbutler@gmail.com>
This commit is contained in:
parent
3382e79ef9
commit
e5b9e2044e
29 changed files with 1242 additions and 785 deletions
|
@ -4,7 +4,7 @@ use gpui::{
|
|||
use settings::Settings;
|
||||
use theme::{ActiveTheme, ThemeSettings};
|
||||
|
||||
use crate::rems_from_px;
|
||||
use crate::{rems_from_px, Color};
|
||||
|
||||
/// Extends [`gpui::Styled`] with typography-related styling methods.
|
||||
pub trait StyledTypography: Styled + Sized {
|
||||
|
@ -164,6 +164,7 @@ impl HeadlineSize {
|
|||
pub struct Headline {
|
||||
size: HeadlineSize,
|
||||
text: SharedString,
|
||||
color: Color,
|
||||
}
|
||||
|
||||
impl RenderOnce for Headline {
|
||||
|
@ -184,6 +185,7 @@ impl Headline {
|
|||
Self {
|
||||
size: HeadlineSize::default(),
|
||||
text: text.into(),
|
||||
color: Color::default(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -191,4 +193,9 @@ impl Headline {
|
|||
self.size = size;
|
||||
self
|
||||
}
|
||||
|
||||
pub fn color(mut self, color: Color) -> Self {
|
||||
self.color = color;
|
||||
self
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue