More compilation fixes
This commit is contained in:
parent
61d6cb880c
commit
a238368296
6 changed files with 244 additions and 205 deletions
|
@ -1,4 +1,4 @@
|
|||
use gpui::{AppContext, FontFeatures};
|
||||
use gpui::{AppContext, FontFeatures, Pixels};
|
||||
use schemars::JsonSchema;
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
use std::{collections::HashMap, path::PathBuf};
|
||||
|
@ -15,7 +15,7 @@ pub enum TerminalDockPosition {
|
|||
pub struct TerminalSettings {
|
||||
pub shell: Shell,
|
||||
pub working_directory: WorkingDirectory,
|
||||
font_size: Option<f32>,
|
||||
pub font_size: Option<Pixels>,
|
||||
pub font_family: Option<String>,
|
||||
pub line_height: TerminalLineHeight,
|
||||
pub font_features: Option<FontFeatures>,
|
||||
|
@ -90,14 +90,6 @@ pub struct TerminalSettingsContent {
|
|||
pub detect_venv: Option<VenvSettings>,
|
||||
}
|
||||
|
||||
impl TerminalSettings {
|
||||
// todo!("move to terminal element")
|
||||
// pub fn font_size(&self, cx: &AppContext) -> Option<f32> {
|
||||
// self.font_size
|
||||
// .map(|size| theme2::adjusted_font_size(size, cx))
|
||||
// }
|
||||
}
|
||||
|
||||
impl settings::Settings for TerminalSettings {
|
||||
const KEY: Option<&'static str> = Some("terminal");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue