diff --git a/crates/theme2/src/default_colors.rs b/crates/theme2/src/default_colors.rs index 15c09e212b..cad75f9935 100644 --- a/crates/theme2/src/default_colors.rs +++ b/crates/theme2/src/default_colors.rs @@ -1,10 +1,9 @@ -use gpui2::{hsla, Hsla, Rgba}; +use gpui2::{hsla, Rgba}; use crate::{ colors::{GitStatusColors, PlayerColor, PlayerColors, StatusColors, SystemColors, ThemeColors}, scale::{ColorScaleSet, ColorScales}, syntax::SyntaxTheme, - ColorScaleStep, }; fn neutral() -> ColorScaleSet { @@ -292,24 +291,6 @@ struct DefaultColorScaleSet { dark_alpha: [&'static str; 12], } -impl DefaultColorScaleSet { - pub fn light(&self, index: ColorScaleStep) -> Hsla { - Rgba::try_from(self.light[index - 1]).unwrap().into() - } - - pub fn light_alpha(&self, index: ColorScaleStep) -> Hsla { - Rgba::try_from(self.light_alpha[index - 1]).unwrap().into() - } - - pub fn dark(&self, index: ColorScaleStep) -> Hsla { - Rgba::try_from(self.dark[index - 1]).unwrap().into() - } - - pub fn dark_alpha(&self, index: ColorScaleStep) -> Hsla { - Rgba::try_from(self.dark_alpha[index - 1]).unwrap().into() - } -} - impl From for ColorScaleSet { fn from(default: DefaultColorScaleSet) -> Self { Self::new( diff --git a/crates/ui2/src/components/tab.rs b/crates/ui2/src/components/tab.rs index fddd82b064..d7b52c7ab3 100644 --- a/crates/ui2/src/components/tab.rs +++ b/crates/ui2/src/components/tab.rs @@ -1,6 +1,6 @@ use crate::prelude::*; use crate::{Icon, IconColor, IconElement, Label, LabelColor}; -use gpui2::{black, red, Div, ElementId, Render, View, VisualContext}; +use gpui2::{red, Div, ElementId, Render, View, VisualContext}; #[derive(Component, Clone)] pub struct Tab {