mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-01 05:44:17 +00:00
Restore removed ColorScaleStep ALL that was breaking the build
This commit is contained in:
parent
e020d7ca11
commit
cb24062e79
1 changed files with 28 additions and 12 deletions
|
@ -9,18 +9,34 @@ use crate::{ActiveTheme, Appearance};
|
|||
pub struct ColorScaleStep(usize);
|
||||
|
||||
impl ColorScaleStep {
|
||||
const ONE: Self = Self(1);
|
||||
const TWO: Self = Self(2);
|
||||
const THREE: Self = Self(3);
|
||||
const FOUR: Self = Self(4);
|
||||
const FIVE: Self = Self(5);
|
||||
const SIX: Self = Self(6);
|
||||
const SEVEN: Self = Self(7);
|
||||
const EIGHT: Self = Self(8);
|
||||
const NINE: Self = Self(9);
|
||||
const TEN: Self = Self(10);
|
||||
const ELEVEN: Self = Self(11);
|
||||
const TWELVE: Self = Self(12);
|
||||
pub const ONE: Self = Self(1);
|
||||
pub const TWO: Self = Self(2);
|
||||
pub const THREE: Self = Self(3);
|
||||
pub const FOUR: Self = Self(4);
|
||||
pub const FIVE: Self = Self(5);
|
||||
pub const SIX: Self = Self(6);
|
||||
pub const SEVEN: Self = Self(7);
|
||||
pub const EIGHT: Self = Self(8);
|
||||
pub const NINE: Self = Self(9);
|
||||
pub const TEN: Self = Self(10);
|
||||
pub const ELEVEN: Self = Self(11);
|
||||
pub const TWELVE: Self = Self(12);
|
||||
|
||||
/// All of the steps in a [`ColorScale`].
|
||||
pub const ALL: [ColorScaleStep; 12] = [
|
||||
Self::ONE,
|
||||
Self::TWO,
|
||||
Self::THREE,
|
||||
Self::FOUR,
|
||||
Self::FIVE,
|
||||
Self::SIX,
|
||||
Self::SEVEN,
|
||||
Self::EIGHT,
|
||||
Self::NINE,
|
||||
Self::TEN,
|
||||
Self::ELEVEN,
|
||||
Self::TWELVE,
|
||||
];
|
||||
}
|
||||
|
||||
/// A scale of colors for a given [ColorScaleSet].
|
||||
|
|
Loading…
Reference in a new issue