summaryrefslogtreecommitdiffstats
path: root/core/src/theme
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-03-16 19:52:34 +0100
committerLibravatar GitHub <noreply@github.com>2024-03-16 19:52:34 +0100
commit9d79d7b96bb133820a097a6503a9003075ef714a (patch)
tree80d346f14fcc3b99aa60b85df230723db226d849 /core/src/theme
parent36b73781f1fed0b4918d34932c2dcd17fa55cbe5 (diff)
parent7da06056fac9fb26b9b61dc08ee48f6816340f9b (diff)
downloadiced-9d79d7b96bb133820a097a6503a9003075ef714a.tar.gz
iced-9d79d7b96bb133820a097a6503a9003075ef714a.tar.bz2
iced-9d79d7b96bb133820a097a6503a9003075ef714a.zip
Merge pull request #2329 from casperstorm/feat/ferra
feat: added Ferra theme
Diffstat (limited to 'core/src/theme')
-rw-r--r--core/src/theme/palette.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/src/theme/palette.rs b/core/src/theme/palette.rs
index 985a54a8..ca91c248 100644
--- a/core/src/theme/palette.rs
+++ b/core/src/theme/palette.rs
@@ -276,6 +276,17 @@ impl Palette {
success: color!(0x00c15a),
danger: color!(0xf62d0f),
};
+
+ /// The built-in [Ferra] variant of a [`Palette`].
+ ///
+ /// [Ferra]: https://github.com/casperstorm/ferra
+ pub const FERRA: Self = Self {
+ background: color!(0x2b292d),
+ text: color!(0xfecdb2),
+ primary: color!(0xd1d1e0),
+ success: color!(0xb1b695),
+ danger: color!(0xe06b75),
+ };
}
/// An extended set of colors generated from a [`Palette`].
@@ -379,6 +390,10 @@ pub static EXTENDED_NIGHTFLY: Lazy<Extended> =
pub static EXTENDED_OXOCARBON: Lazy<Extended> =
Lazy::new(|| Extended::generate(Palette::OXOCARBON));
+/// The built-in Ferra variant of an [`Extended`] palette.
+pub static EXTENDED_FERRA: Lazy<Extended> =
+ Lazy::new(|| Extended::generate(Palette::FERRA));
+
impl Extended {
/// Generates an [`Extended`] palette from a simple [`Palette`].
pub fn generate(palette: Palette) -> Self {